forgetting-machine is an AI-powered note system built around one principle: your brain learns better when it forgets.
Most note apps show you everything, all the time. This one hides information until your brain is ready to receive it โ surfacing notes at exactly the moment they're most likely to stick, based on semantic similarity, not just timers.
It's spaced repetition, but driven by meaning, not intervals.
The best time to see a note is not when you write it. It's when you've almost forgotten it.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ YOU WRITE A NOTE โ
โ "the observer effect means measurement changes state" โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ ๐งฌ EMBEDDING ENGINE โ
โ pgvector converts note โ semantic vector โ
โ Stored with timestamp + decay metadata โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ โฐ BULLMQ SCHEDULER โ
โ Calculates optimal resurfacing time โ
โ Queues job: show note when decay score crosses thresholdโ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ ๐ฎ RESURFACING ENGINE โ
โ Finds semantically RELATED notes you haven't seen โ
โ Surfaces them together as a "memory cluster" โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
| Layer | Technology | Purpose |
|---|---|---|
| Frontend | React + TypeScript | Note UI & memory cluster view |
| Queue | BullMQ + Redis | Spaced resurfacing scheduler |
| Embeddings | pgvector (PostgreSQL) | Semantic note similarity |
| AI | LLM Integration | Context-aware resurfacing logic |
| Infra | Docker Compose | One-command local deployment |
docker
docker-compose
node >= 18.0.0git clone https://github.com/Ap-0007/forgetting-machine.git
cd forgetting-machine
cp .env.example .env
docker compose up --build
# App at http://localhost:3000DATABASE_URL=postgresql://user:password@localhost:5432/forgetting_machine
REDIS_URL=redis://localhost:6379
OPENAI_API_KEY=your_key_here # or OLLAMA_BASE_URL for local// Notes resurface when their "memory decay score" drops below threshold
const decayScore = (timeSinceLastSeen: number, importanceWeight: number) => {
return Math.exp(-timeSinceLastSeen / (importanceWeight * BASE_HALF_LIFE));
};
// BullMQ fires when score < RESURFACE_THRESHOLD
// pgvector finds semantically related notes to resurface alongsideMost productivity tools optimize for capturing information. This one optimizes for forgetting it correctly.
If you remember everything immediately, you learned nothing. The machine decides what you're ready to see.