Open your Space folder on a computer and find .garnet/space-index-v2.sqlite. That file is Garnet's search index (newer generations may sit under .garnet/local-runtime/), and the index is disposable: deleting it loses nothing, because Garnet rebuilds it from your Markdown files. SQLite makes opening, searching, and filtering a large Space fast. It is ordinary, unencrypted SQLite, and it never syncs.
A Garnet Space is a folder of files you control: Markdown Items, Collection record files, assets, and portable Garnet settings. I wanted the database to be something Garnet can always rebuild from those files and never needs in order to recover your writing. Everything below follows from that one rule.
What the index holds and why SQLite fits
SQLite runs inside the application, with no separate database server. It supports transactions, indexes, and full-text search in one local file, which suits a desktop app that needs to answer questions about thousands of files quickly.
Garnet's index stores derived projections such as Item summaries, file fingerprints, links, dates, typed properties, and full-text-search terms. When you open a list, the app asks the index for one bounded page or count instead of reading every Markdown body. A healthy index lets Garnet show the shell and indexed results first, then reconcile changed files in the background.
Why the index can be thrown away
The index is disposable because Garnet never stores your intent there first. When you edit an Item, Garnet writes the file and updates the index afterward. If an external editor changed the file in the meantime, Garnet compares revisions and reports a conflict, so stale indexed data never overwrites the newer file.
If the index is missing, incompatible, incomplete, or corrupt, Garnet replaces it and rebuilds from the Space. Rebuilding does not change your Markdown, Collection records, assets, Versions, Restore Points, or sync state. Some apps keep your content in a database and offer Markdown only as an export; in Garnet, the readable files are the primary store, which I wrote about in Markdown Export vs Markdown-Canonical Storage.
Is the SQLite index encrypted?
No. Local Space files are plain Markdown and asset files that Garnet does not encrypt, and the desktop index is ordinary SQLite through better-sqlite3, without SQLCipher. The index can therefore contain derived plaintext from the same Space, such as search terms and summaries.
Your operating system account, device access controls, backups, and disk encryption protect both the files and the disposable index. Encrypting only the index would leave the Markdown and Collection files as readable as before, so calling that an encrypted local Space would mislead you. I would rather state the boundary: if your laptop has disk encryption, both are covered; if it does not, neither is.
Does the index sync between devices?
The index never syncs. Sync is paid and opt-in, and when you turn it on, Garnet encrypts your files on the device before upload; the server stores ciphertext and the metadata it needs to run the service. Each device decrypts the files back into plain local files and builds its own disposable index from them.
On iPhone, iPad and Android, the index lives in the app's own storage, outside the Space folder, for the same job.
How to check it on your own Space
You can see the rule at work without deleting anything by hand. In Garnet, Doctor has a Rebuild local index action, which replaces only the derived index from your files and never touches your notes or attachments. Run it, and the Space comes back with every Item where you left it. Understanding Space Health covers when you would use it, and Space file format lists which files Garnet rebuilds.
Where the disposable index has a cost
Rebuilding is real work. On the first index of a large Space, Garnet has to discover files, parse their content, and build projections. That work runs outside the window that draws the app, so Garnet stays responsive and shows its progress, but you will wait longer than on a normal open.
Later opens check file size and modification time to spot likely changes, then hash content only when needed, so unchanged Markdown bodies are not parsed again. The goal is a window that is usable quickly and an index repair that never puts the source files at risk. A disposable index costs you some time after a rebuild, and in return your writing never depends on it: the files hold your data, and SQLite only helps you find your way around them. Open your own Space folder and read one note in a text editor to see the part that matters. To try it, download Garnet.
Frequently asked questions
Why does Garnet use SQLite?
SQLite runs inside the app with no database server, and one local file gives Garnet transactions, indexes, and full-text search. Garnet uses it as a disposable index of derived data, such as summaries, links, dates, and search terms, so a large Space opens and searches quickly. Your Markdown files stay the source of truth, and Garnet can rebuild the index from them at any time.
What happens if Garnet's index is deleted or corrupt?
Garnet rebuilds it from the files in your Space. Deleting or replacing the index does not change your Markdown, Collection records, assets, Versions, Restore Points, or sync state. The first rebuild of a large Space takes a while, and search and lists may lag until it finishes. Doctor's Rebuild local index action makes a fresh index on demand.
Is my data safe if the SQLite index is unencrypted?
The index holds derived plaintext from Space files that are already plain text on your device, and Garnet does not encrypt either one. The same device protections cover both: your device login and disk encryption. Backups of the Space are your job, and the index never needs one. If you turn on paid Sync, Garnet encrypts the files on the device before upload, and the index never leaves the device.
Sources
- SQLite project overview, checked 2026-09-05: SQLite.
- Garnet's current local-data and sync boundary: Garnet privacy.
- The index file, what Garnet rebuilds, and the mobile index location, checked 2026-11-29: Space file format.
- Rebuild local index in Doctor, checked 2026-11-29: Understanding Space Health.