You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[](https://vercel.com/new/clone?repository-url=https://github.com/aboderinsamuel/closedNote)
6
+
5
7
---
6
8
7
-
###👋 What is closedNote?
9
+
## 👋 What is closedNote?
8
10
9
-
closedNote is a simple web app for **saving, organizing, and re-using your best prompts**, built for *students, teachers, engineers, prompt engineers, prompt tutors, and even regular folks like my mum 😅.*
11
+
closedNote is a simple web app for saving, organizing, and re-using your best prompts, built for students, teachers, engineers, prompt engineers, prompt tutors, and even parents like my mum 😅.
10
12
11
-
It's the one place you can finally dump all your fire prompts without digging through old chats or screenshots.
12
-
A calm home for all your creativity.
13
+
It's the one place you can finally dump all your fire prompts without digging through old chats or screenshots. A calm home for all your creativity.
13
14
14
15
---
15
16
16
-
###💡 The Story
17
+
## 💡 The Story
17
18
18
-
I got tired of re-engineering my "perfect ChatGPT prompts" every time I needed a particular kind of answer.
19
-
Then my mum started doing the same thing (don't ask how she got into it 😭).
20
-
Then my grandma.
21
-
Then my classmates.
19
+
I got tired of re-engineering my "perfect ChatGPT prompts" every time I needed a particular kind of answer. Then my mum started doing the same thing (don't ask how she got into it 😭). Then my grandma. Then my classmates.
22
20
23
21
Meanwhile, prompt engineers were dropping crazy tips on X (Twitter) and Stack Overflow, but I had nowhere to store them neatly.
24
22
25
-
So, I built one.
26
-
That's what **closedNote** is all about, a small home to make **prompt saving easier for everyone**. 🙂🙂
23
+
So, I built one. That's what closedNote is all about, a small home to make prompt saving easier for everyone. 🙂🙂
27
24
28
25
Completely open source, open to contributions, and continuously improving.
> fully responsive, works smoothly on mobile for on-the-go creativity
55
+
> Fully responsive. Works on the go.
66
56
67
57
---
68
58
69
-
### 🗄️ Database Setup (Supabase + PostgreSQL)
70
-
71
-
closedNote runs on **Supabase**, which provides both authentication and secure cloud storage using **Row Level Security (RLS)**, meaning no one can see your notes but you.
closedNote lets you turn screenshots, photos, and handwritten notes into prompts without retyping everything.
104
-
105
-
**How it works:**
106
-
107
-
1. You upload an image (screenshot, photo of notes, whatever)
108
-
2. The app tries to send it to **Hugging Face OCR API** (our planned primary engine)
109
-
3. If that fails or isn't set up yet, it falls back to **Tesseract.js** running right in your browser
110
-
4. The extracted text shows up, you can edit it if needed
111
-
5. One click saves it as a prompt in your library
111
+
## ⚙️ Tech Stack
112
112
113
-

114
-
115
-
**Current Status:**
116
-
117
-
Right now, Tesseract is the stable workhorse while we finalize the Hugging Face integration (API hiccups, you know how it goes). The code is structured so swapping between both or combining them later is super easy.
118
-
119
-
**Why This Matters:**
120
-
121
-
Ever find yourself screenshotting a great prompt from Twitter or a Discord server, then having to manually retype the whole thing? Yeah, me too. That's done now.
122
-
123
-
**The Details:**
124
-
125
-
When you upload an image:
126
-
***Online Mode**: Sends to Hugging Face TrOCR (Microsoft's printed/handwritten models)
127
-
***Offline Mode**: Falls back to Tesseract.js (runs locally, no internet needed)
128
-
***AI Refinement**: After extraction, you can clean up the text with Zephyr or Mixtral chat models
129
-
***Auto-Save**: Tagged with "ocr" so you can find all your screenshot-based prompts later
130
-
131
-

132
-
*Debug console showing OCR processing flow and state management*
The architecture is built with a **primary + fallback** mindset. Even if Hugging Face is down, you're not blocked. Even if you're offline on a train, Tesseract still works. No single point of failure.
0 commit comments