A Markdown editor in your browser.
Enkeep opens a folder of Markdown notes in your browser. Write, follow links, search your notes, and browse their edit history. An optional MCP server lets compatible tools work with the same files.
Archived: This repository is no longer actively maintained and is kept public as a read-only archive.
Your notes stay in their original folder as Markdown files. They remain readable in text editors, Git, and other tools that work with ordinary files.
Start in the vault to write or open a note:
- Vault groups notes by folder and opens them in a live-preview markdown editor.
- Graph maps notes, unresolved wikilinks, and the connections between them.
- History lists committed changes across the vault, including edits made by you and connected tools. Select a change to inspect its diff.
Search finds titles and note text. Settings opens or switches vaults, with
optional MCP configuration under Connect an external tool. Notes stored
under memory/ also have a grouped view. Enkeep does not require an API key.
The editor keeps raw markdown editable while rendering headings, emphasis,
tables, checkboxes, links, images, wikilinks, and embeds away from the cursor.
It includes [[ completion, backlinks, debounced autosave, conflict handling,
per-note history, and undo for eligible MCP changes.
The graph is a force-directed canvas with a keyboard-accessible explorer. It can search and filter node types, isolate orphans, focus one-hop or two-hop neighborhoods, fit visible nodes, and open real notes from the selected node.
Neutral dark and light themes use a restrained green accent for selection and actions. The theme follows your system preference until you choose one.
Any markdown folder can be a vault. Enkeep indexes every .md file outside
dotfolders, wherever it sits. A fresh vault starts with this minimal shape:
MyVault/
├── memory/
├── .enkeep/
│ ├── config.json
│ └── .gitignore
└── .git/
enkeep init creates memory/. The first open initializes git when needed,
adds Enkeep metadata, and makes a baseline commit for a new repository.
Existing vault folders keep their current note layout.
On first open, a legacy .agentkeep/ metadata directory is renamed to
.enkeep/ automatically. If both directories exist, Enkeep stops and asks
you to decide which one to keep.
See SPEC.md for the file, link, memory, migration, and MCP contracts.
The enkeep package is not yet published to npm. Install from source
with Node 22.13 or newer, Git, and pnpm:
git clone https://github.com/peakoshi/enkeep enkeep
cd enkeep
pnpm install --frozen-lockfile
pnpm build
node dist/bin/enkeep.js init ~/MyVault
node dist/bin/enkeep.js open ~/MyVaultopen builds the web app on first use and serves the vault on
http://localhost:3000. Choose another port with --port N. For MCP, run
node dist/bin/enkeep-mcp.js ~/MyVault or use the setup generated in Settings.
To expose the app through an existing Tailscale installation:
node dist/bin/enkeep.js serve ~/MyVault --tailscaleEnkeep has no web login. Keep the raw port on localhost or a private network. On normal exit, the Tailscale launcher removes the HTTPS 443 route it created.
The web app is installable as a PWA, but it has no service worker and does not cache a vault for offline use.
Settings accepts an absolute folder path and shows a read-only preflight before initializing a folder that Enkeep does not recognize. Opening a new, non-git folder:
- Initializes git.
- Writes a root
.gitignoreonly if one does not already exist. - Excludes private app configuration, trash, and rebuildable Enkeep cache files from the baseline.
- Creates tracked Enkeep metadata and commits the baseline.
An existing root .gitignore is left unchanged. An existing git vault must be
clean before Enkeep opens it.
enkeep-mcp <vault-path> serves exactly seven tools over stdio:
search · read_note · write_note · list_notes ·
get_backlinks · remember · delete_note
Settings generates terminal commands, plus YAML and JSON configuration for MCP clients, using the active vault path and the real local executable when it can resolve one. A portable JSON shape is:
{
"mcpServers": {
"enkeep": {
"command": "enkeep-mcp",
"args": ["/absolute/path/to/MyVault"],
"transport": "stdio"
}
}
}The daemon also accepts ENKEEP_VAULT when no positional path is supplied.
By default it refuses to open an existing git vault with pending changes. An
explicit opt-in can commit all pending changes before startup:
enkeep-mcp --auto-commit /absolute/path/to/MyVault
ENKEEP_AUTO_COMMIT=1 enkeep-mcp /absolute/path/to/MyVaultMCP note mutations use content-hash compare-and-swap, path validation, a
cross-process lock, atomic writes, and one git commit per change. A stale
baseHash returns a structured 409 error instead of overwriting newer bytes.
Direct filesystem edits are reindexed while Enkeep runs and bypass these
write protections. By default, MCP mutations refuse to replace uncommitted
external edits, even with the current hash. With auto-commit enabled, Enkeep
first preserves the target’s external edit in a human-attributed commit, then
applies the MCP change if its hash is valid. Unrelated edits remain untouched
by these mutation-time commits.
The optional AGENT-ROUTINE.md documents a conservative memory-maintenance routine that uses only the seven MCP tools.
pnpm build
pnpm test
pnpm typecheck
pnpm --filter @enkeep/web typecheck
pnpm --filter @enkeep/web buildTo build a local installable package with the bundled web app, run pnpm pack.
The packaging hook builds an isolated production runtime and smoke-tests its
routes and static assets before creating the tarball.
See CONTRIBUTING.md before opening a pull request.
Enkeep is local, single-user software. Anyone who can reach the web app can read and modify the active vault. Run it on localhost or a private tailnet only. See SECURITY.md.
Enkeep is created and maintained by peakoshi. It is released under the MIT License.