Emerald

Emerald docs

Everything you need to use Emerald 2.2.2. For the full server reference see SERVER_SETUP.md on GitHub.

Getting started

  1. Download and install Emerald for your system. The download page shows what to click at the first-launch warning.
  2. On first launch Emerald asks how to start: an empty vault, import an existing folder, or open a vault from your server.
  3. Press Ctrl+N for a new note and start typing. Notes save by themselves about a second after you stop.

A short tour shows you around the first time. The search box sits at the top of the sidebar with New note and New folder below it. The bottom bar holds the vault switcher, the note count and the sync status. The gear opens Settings.

Vaults and importing

A vault is a folder of notes. The first one is Documents/Emerald. You can keep several, for example work and personal, and switch from the vault name in the bottom bar. Add one at any time from Settings › Vaults:

Remove… in the vault list either takes a vault off the list (its folder stays) or, after you type its name, moves the folder to the system trash.

Coming from Obsidian

Import your Obsidian vault folder. Notes, folders, [[wiki links]], backlinks and tags carry over because they’re all plain Markdown. Plugins, canvas boards and embeds don’t. Dot-folders such as .obsidian are left out of sync. Obsidian can keep working on the same folder.

Writing and linking

Shortcuts

On a Mac, use ⌘ wherever this page shows Ctrl.

KeysAction
Ctrl+NNew note, with the title selected
Ctrl+O or Ctrl+Shift+FSearch notes
Ctrl+P or Ctrl+KJump to a note or run a command
Ctrl+GGraph view
Ctrl+WClose the tab
Ctrl+SSave and sync now
Ctrl+= / − / 0Zoom in, out, reset

Sync

Sync is optional. There are two ways to have your notes on more than one computer:

With the server, connected computers sync when you press Ctrl+S, when you stop typing for three seconds, and when another program changes a file in the vault folder. One server can hold several vaults; they all share its token.

Conflicts and limits

If two computers edit the same note while offline, the remote version keeps the original name and your local edit gets a conflict filename. The bottom bar shows a conflict count. Settings › Sync lists each one with Compare…, which shows both side by side and lets you keep either or both. An edit always wins over a deletion made at the same time.

Updates

Emerald checks GitHub for a new release twice a day. Update now downloads the installer for your system, checks it against the release’s SHA256SUMS, installs it and reopens Emerald. Windows asks for permission and Linux for your password. Only the latest-release check is sent to GitHub; nothing about you or your notes. Turn the check off in Settings › About.

Where things are stored

NotesThe vault folder, Documents/Emerald by default, as plain .md files. Run emerald --vault "/path" to use another folder.
Sync connectionOne file per vault in your user configuration folder (%APPDATA%/Emerald on Windows), outside the vault. Or set EMERALD_SERVER, EMERALD_TOKEN and EMERALD_VAULT.
Vault listapp.json in the same configuration folder.
Sync state.emerald-sync-*.json inside the vault.

Agent API

An AI agent or script can use the sync server as memory it shares with you. Every request sends Authorization: Bearer <token>. Files of a named vault live under /vaults/<name> (URL-encoded, so AI Memory becomes AI%20Memory); the main vault has no prefix. Named vaults need Emerald Server 2.1 or later.

RequestWhat it does
GET /filesJSON object of every path and its SHA-256
GET /file?name=<path>The note’s raw bytes
PUT /file?name=<path>&base=Create a note; the body is the whole file
PUT /file?name=<path>&base=<hash>Update, giving the hash of the version you read
DELETE /file?name=<path>&base=<hash>Delete that version
GET /changes?after=<token>Waits up to about 25 seconds for a change (Server 2.2+)
GET /vaults · PUT /vaults/<name>List vaults, create one (on the server root)

Changes return 204. 409 means someone else changed the note: read it again and reapply your edit. 400 is a bad path or missing file, 401 a wrong token.

curl -X PUT -H "Authorization: Bearer $EMERALD_TOKEN" "$EMERALD_SERVER/vaults/AI%20Memory"
curl -H "Authorization: Bearer $EMERALD_TOKEN" "$EMERALD_SERVER/vaults/AI%20Memory/files"
curl -H "Authorization: Bearer $EMERALD_TOKEN" "$EMERALD_SERVER/vaults/AI%20Memory/file?name=notes/today.md"

Instructions written for agents themselves are in AGENTS.md.

Build from source

You need stable Rust from rustup.rs.

Terminal
git clone https://github.com/Galitube-Developement/Emerald.git
cd Emerald
cargo run --locked --release --bin emerald          # the notebook
cargo run --locked --release --bin emerald-server -- --folder ./server-vault

To install only the server on a machine without the release packages, for example a Raspberry Pi: cargo install --locked --git https://github.com/Galitube-Developement/Emerald --bin emerald-server. Packaging scripts for MSI, DMG, .deb and Flatpak are in packaging/.

FAQ

Is there a phone app?

Not yet. Emerald runs on Windows, macOS and Linux.

Do I need the sync server?

No. Emerald works fully on one computer. For several computers you can also use a folder that OneDrive, iCloud or Dropbox already syncs.

Why does my computer warn me when I open it?

The installers aren’t code-signed yet. The download page shows the clicks to get past the warning, and how to check the file against its checksum.

Are my notes encrypted?

Notes are plain files on your computer and on your server. Use HTTPS (Tailscale or Caddy) between them. End-to-end encryption is not included yet.

Does Emerald send anything about me?

No. There’s no account and no telemetry. The only outside request is the update check to GitHub, which you can turn off.