Emerald

Emerald docs

Everything you need to use Emerald 2.3.0. 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: Start writing (opens a short Welcome note with two tips), Use a folder I already have, or Get my notes from my Emerald server.
  3. Press Ctrl+N for a new note and start typing. Notes save by themselves about a second after you stop.

The search box sits at the top of the sidebar with New note and New folder below it, then the Files, Search and Tags tabs. The bar at the bottom of the sidebar opens Today’s daily note, the Graph and Commands. The status bar holds the vault switcher, the note count and the sync status; the gear at its left opens Settings. The panel on the right shows the note’s backlinks, outline and a local graph.

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. Click the vault name in the status bar to switch in one click, or choose All vaults, new vault, import… for the vault screen, which shows every vault as a card with its note count and sync status. You can also add vaults 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. Short links such as [[Plan]] find the note in the same folder or anywhere in the vault, the way Obsidian does. Links to attachments such as ![[chart.png]] open the file in its own app. Plugins, canvas boards and rich embeds don’t carry over. 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 (recent ones first) or run a command
Ctrl+GGraph view
Ctrl+WClose the tab
Ctrl+SSave and sync now
Ctrl+\Show or hide the sidebar
Alt+↑ / Alt+↓Previous or next note in the file tree
Ctrl+Shift+LCopy a link to the current line or selection
Click / Shift+click a linkPreview the note on the side / open it
Ctrl+= / − / 0Zoom in, out, reset

Sync

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

Connecting a device

Open Settings › Sync (or click Sync off in the status bar) and choose one of:

Remote servers need HTTPS. Plain HTTP works for this computer and for addresses on a home or office network (192.168.x.x, 10.x.x.x, .local names); that traffic isn’t encrypted, so use it only on networks you trust.

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 status bar then shows an amber ⚠ 1 conflict: review. Click it to open Compare: it highlights each part that differs and lets you take the other computer’s version, this computer’s, or both, part by part, then Save merged note (the copy moves to the Trash). Settings › Sync lists every conflict too. An edit always wins over a deletion made at the same time.

Updates

Emerald checks GitHub for a new release twice a day. The update window lists What’s new in every release since your version. 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. At home, one computer running Emerald can be the server for the others (Settings › Sync › This computer is the server). You can also use a folder that OneDrive, iCloud or Dropbox already syncs. The standalone server is for syncing from anywhere.

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.