←

Epito

2026 · TypeScript, Next.js, Tauri, Rust, llama.cpp, SQLite

Epito is a desktop note-taking app with a language model built in. You write in a rich editor, your notes live in an encrypted SQLite database on your own machine, and the AI features run on a llama.cpp model that only starts when you ask for it. Nothing leaves the device. It ships for macOS, Windows and Linux.

I built it because every notes app that added AI also added a cloud dependency. I wanted something private, a place I’d be comfortable writing journal entries, meeting notes or unfinished code.

Epito editor with a note open and the insights sidebar

Why

AI note apps mostly sync everything to a vendor’s servers and run the model there. That costs you privacy. The platform can read your notes, keeps them on its infrastructure, and exposes them to its next policy change or breach. For journalists, researchers, engineers under NDA, or anyone in a sensitive job, that rules them out.

Going without AI gives up real wins, though. Searching a year of notes by meaning, summarising a long document in one click, or having a dense passage explained are useful. What I objected to was AI that needs your data.

What it does

Notes save as you type, with no save button; the file on disk is always current. In the background every note is split into chunks and embedded, so search ranks results by meaning, and falls back to plain text matching while the embeddings warm up.

Search dialog ranking notes by similarity

The AI panel can summarise the current note, explain a selected passage in plain language, or answer a question using the most relevant parts of all your notes as context. PDFs and images dropped into the app are read with OCR and stored, so they become searchable and usable as context too.

Image viewer with extracted text, topics and entities

Notes export to PDF with proper A4 pages, to DOCX for people on Word, or to a PNG snapshot. All of it works offline.

How it’s built

The interface is Next.js 14 with React 18 and TipTap, styled with Tailwind, inside a Tauri 2 shell. The Rust side owns the window, starts the Node process that runs the app logic, manages the model server, detects the GPU and its memory, handles Windows display scaling, and coordinates shutdown.

App logic lives in Next.js API routes in the embedded Node runtime, covering notes, search, OCR and AI, behind a thin layer for CSRF protection and security headers. Notes, documents, images and their metadata share a single SQLite file, and the few sensitive settings are encrypted with AES-256-GCM.

Embeddings come from all-MiniLM-L6-v2, run locally on ONNX through @xenova/transformers, and are matched by cosine similarity in memory. A small pipeline handles chunking, embedding, topic extraction and gathering context for chat, and a gate stops several models being started at once.

The model runs as a llama-server process. It starts on the first AI request, streams its answer back, clears its cache afterwards, and exits after 30 idle seconds. It prefers CUDA, then Vulkan, then the CPU, and decides how much of the model to load onto the GPU from the memory available.

Text extraction uses PaddleOCR, Tesseract.js or pdf-parse, depending on the input. Scanned PDFs are read with OCR, regular PDFs are parsed directly, and images go through Tesseract. Exports use Puppeteer-core for PDF, html-to-docx for Word, and html2canvas with jsPDF for images.

What I learned

Local models need aggressive idle management. The first version kept the model server running all session, which on a 7B model pinned more than 5 GB of video memory while you were only typing. Starting it on demand and stopping it after 30 idle seconds gives that memory straight back. The first answer after a pause takes a couple of seconds longer, which is a fair trade.

Tauri and Next.js work well together. Rust handles the native concerns, like GPU detection, processes and shutdown, and the interface keeps modern React tooling in a webview. The app is about 20 to 40 MB, against 150 MB or more for the same thing in Electron.

Simple signals beat clever IPC. Rust must not exit while Node is still writing a note. Of the approaches I tried, the simplest was the most reliable. Node writes a small file when it wants to exit, and Rust checks for it every 200 ms and acknowledges. It survives either side crashing, and it’s trivial to debug.

One person’s notes fit in memory. I designed around a disk-backed vector database, then measured. Thousands of notes fit in memory, and searching all of them takes a few milliseconds. I replaced the database with a plain array. Fewer dependencies, faster startup.

GPU detection differs on every platform. CUDA on Linux is easy and Vulkan is harder, but Windows, with its power-saving settings, needs system APIs called from Rust; part of native_win.rs exists only to make Windows behave. On a Mac, Metal is always available.