vellum
Download
Blog

How we made search fast without a server

Encrypted notes mean the server can't search for you. Here's how Vellum finds anything in under 30 milliseconds anyway.

Dev Patel · August 14, 2026

Because we encrypt everything, titles included, our servers can't help with search. Every device has to do it alone, on its own battery, often offline. When we rebuilt search for Vellum 3.8, our target was simple: results before you finish typing, on a five-year-old phone, with 20,000 notes.

An index that lives with your notes

Each device keeps a compact search index, encrypted at rest with the same key as your notes. It's updated as you type, a few words at a time, so there's never a big re-index after sync.

Prefixes first

Most searches are one or two words, typed one letter at a time. So the index is built around prefixes: every keystroke narrows a list that's already in memory, instead of starting a new query. Typo tolerance only kicks in when a prefix finds nothing.

Titles win

A match in a title almost always beats a match in a body, so we rank them first and stop early once we have enough. Most searches never touch note bodies at all.

The result

On an iPhone XS with 20,000 notes, the median search takes 18 milliseconds. On a Mac it's under five. No server, no network, and nothing about what you looked for ever leaves your device.

Try Vellum

Private Markdown notes for every device. Free on one.

Download