Skip to content
This repository was archived by the owner on Nov 25, 2026. It is now read-only.
peakoshiPublic archive

About

A Markdown editor in your browser. Opens a folder of plain notes, with links, search, edit history and an optional MCP server.

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Enkeep: a Markdown editor in your browser

Enkeep license: MIT Enkeep is self-hosted and local-first Enkeep has no app telemetry Enkeep serves MCP over stdio Enkeep is an installable PWA

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.

What Enkeep is

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.

A look around

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.

Files and vaults

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.

Install

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 ~/MyVault

open 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 --tailscale

Enkeep 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.

Open an existing vault

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:

  1. Initializes git.
  2. Writes a root .gitignore only if one does not already exist.
  3. Excludes private app configuration, trash, and rebuildable Enkeep cache files from the baseline.
  4. 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.

Connect MCP

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/MyVault

MCP 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.

Development

pnpm build
pnpm test
pnpm typecheck
pnpm --filter @enkeep/web typecheck
pnpm --filter @enkeep/web build

To 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.

Security

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.

Author and license

Enkeep is created and maintained by peakoshi. It is released under the MIT License.

About

A Markdown editor in your browser. Opens a folder of plain notes, with links, search, edit history and an optional MCP server.

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages