Emerald docs
Everything you need to use Emerald 2.3.0. For the full server reference see SERVER_SETUP.md on GitHub.
Getting started
- Download and install Emerald for your system. The download page shows what to click at the first-launch warning.
- 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.
- 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:
- Import a folder… Pick a folder you already have, such as an Obsidian vault. Emerald checks every file first and lists any it can’t sync, like names containing
? * : |or files over 64 MB. It also checks every[[link]]and tells you whether they all lead somewhere, or lists the ones that don’t. The folder stays where it is: nothing is moved or copied. With Upload to my sync server checked, it also becomes a vault on your server. - Open from server… Lists the vaults on your server and downloads the one you pick. Use this on your second computer.
- New vault… An empty vault, optionally synced as a new server vault.
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
- Live preview. Headings, bold, links and code render as you type; the Markdown symbols show only on the line you’re editing. Lists and checkboxes continue when you press Enter. For a rendered, read-only page, choose Reading view in the note’s ••• menu.
- Name notes with paths such as
Projects/Ideasto put them in folders. Click a note’s title to rename it. New folder creates a real, empty folder. - Type
[[to link to another note. Click a link to preview the note on the side; Shift+click opens it (Ctrl+click in the editor). - Links can point into a note:
[[Plan#Goals]]to a heading,[[Plan#^k3x9qa]]to one line,[[Plan#some words]]to a piece of text. Right-click in the editor or press Ctrl+Shift+L to copy a link to the current line or selection; the line gets a short^idat its end so the link survives edits. - The Linked from panel lists every note that links to this one, with the sentence each link sits in.
- Ctrl+G shows the graph of how notes connect, coloured by folder. Click a dot to preview a note; Shift+click or double-click opens it.
- Write
#ideaanywhere to tag a note. The sidebar’s Tags tab lists every tag. - Search matches titles, text and tags. Enter opens the first hit, Esc clears.
- Today opens today’s dated note. The sort button orders the file tree by name, last edited or created.
- Right-click a note for Rename, Move to folder, Duplicate, Copy link, Reveal and Move to Trash. Deleting needs no confirmation: the note goes to the Trash and you get ten seconds to undo.
- Put images and other files in the vault folder with your file manager. They sync too.
Shortcuts
On a Mac, use ⌘ wherever this page shows Ctrl.
| Keys | Action |
|---|---|
| Ctrl+N | New note, with the title selected |
| Ctrl+O or Ctrl+Shift+F | Search notes |
| Ctrl+P or Ctrl+K | Jump to a note (recent ones first) or run a command |
| Ctrl+G | Graph view |
| Ctrl+W | Close the tab |
| Ctrl+S | Save and sync now |
| Ctrl+\ | Show or hide the sidebar |
| Alt+↑ / Alt+↓ | Previous or next note in the file tree |
| Ctrl+Shift+L | Copy a link to the current line or selection |
| Click / Shift+click a link | Preview the note on the side / open it |
| Ctrl+= / − / 0 | Zoom in, out, reset |
Sync
Sync is optional. There are three ways to have your notes on more than one computer:
- This computer is the server. For your home or office network, with nothing else to install. In Settings › Sync on the computer you use most, choose This computer is the server. Emerald serves its vaults to your other devices while it is open. Add another device shows the address and a one-time code to type on the next device.
- A folder you already sync. Use a folder inside OneDrive, iCloud Drive or Dropbox as your vault. Your cloud service copies the files. Fine when you use one computer at a time.
- The Emerald sync server. A small program on a machine that is always on, so you can sync from anywhere. Changes arrive on other computers in about a second, and offline edits never overwrite each other. The setup guide gives you the exact commands.
Connecting a device
Open Settings › Sync (or click Sync off in the status bar) and choose one of:
- Pair with a code. The easiest way. Enter the server’s address and a one-time code from Add another device on a computer that already syncs, or from
emerald-server --pair. Each code works once and expires after ten minutes. Pairing gives the device the server token, so it has the same access as any other client. - Address and token. Enter the address (for example
192.168.1.20:7878ornotes.example.org; Emerald addshttp://orhttps://) and the token, optionally a Server vault name, press Test, then Connect.
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.
- Files up to 64 MiB each.
- Paths starting with a dot, and symlinks, are not synced.
- Use separate folders for client and server, and one server process per server folder.
- Sync is not a backup. Back up the server folder separately.
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
| Notes | The vault folder, Documents/Emerald by default, as plain .md files. Run emerald --vault "/path" to use another folder. |
| Sync connection | One 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 list | app.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.
| Request | What it does |
|---|---|
GET /files | JSON 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"
curl -X PUT -H "Authorization: Bearer $EMERALD_TOKEN" --data-binary @today.md \
"$EMERALD_SERVER/vaults/AI%20Memory/file?name=notes/today.md&base="
Instructions written for agents themselves are in AGENTS.md.
Build from source
You need stable Rust from rustup.rs.
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.