nota

module
v0.0.1-rc.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 23, 2026 License: MIT

README

Nota

Your notes are files. Local Markdown notes in a small Go app for desktop and web, synced through your own server.

Website · CLI · Agents · Self-hosting

The desktop app over a folder of .md files: tree, properties from the frontmatter, live preview.

[!NOTE] Nota is early software. The CLI, MCP server and sync server work today; the desktop app ships with the first release.

Highlights

  • 📄 Plain files: every note is a .md file with optional YAML frontmatter, kept byte for byte. Any editor and git work on the same folder.
  • ⌨️ CLI first: everything exists as a command before it exists as a button, and every command takes --json.
  • 🤖 Built for agents: nota mcp serves 11 MCP tools over stdio, and the sync server offers the same tools over HTTP.
  • ⚡️ Light: one 20 MB binary for the CLI, MCP and server; a search over 10,000 notes takes about 18 ms.
  • 🔄 Sync you host: three-way merge per file, conflict copies instead of lost edits, a version history for every note.
  • 🔑 No passwords: accounts are an e-mail address and a passkey, only needed for sync.
  • 🧩 Extensible: saved views without code, and hooks that run your scripts when notes change.

Install

Until the first release is out, only go install below works.

macOS (Apple silicon), with Homebrew. Installs the app and the nota CLI:

brew install --cask banjo/tap/nota

Downloads. Every release has:

File What
Nota-<version>-arm64.dmg, Nota-<version>-arm64.zip macOS app, Apple silicon; the CLI is inside at Nota.app/Contents/Resources/bin/nota
Nota-<version>-x86_64.AppImage Linux app, any distribution (chmod +x and run)
nota_<version>_amd64.deb, nota-<version>-1.x86_64.rpm Linux app packages, installed in /opt/nota
Nota-<version>-linux-amd64.tar.gz Linux app archive; sh install.sh inside installs it to ~/.local
nota_<version>_<os>_<arch>.tar.gz the CLI alone, for macOS and Linux on amd64 and arm64
checksums.txt SHA-256 of every file (sha256sum -c checksums.txt --ignore-missing)

The Linux app uses the system's WebKitGTK: sudo apt install libwebkit2gtk-4.1-0 on Debian and Ubuntu (the .deb pulls it in), webkit2gtk4.1 on Fedora.

The CLI with Go 1.27 or newer:

go install github.com/banjo/nota/cmd/nota@latest

[!IMPORTANT] The macOS app is not notarized (it is signed ad hoc, without an Apple Developer ID), so Gatekeeper blocks the first launch of a downloaded copy. The Homebrew cask clears the quarantine flag for you. For the DMG or zip, either open System Settings → Privacy & Security and click Open Anyway after the first attempt, or run xattr -dr com.apple.quarantine /Applications/Nota.app.

Quick start

Nota uses ~/Notes unless you pass --vault, set $NOTA_VAULT or set vault in ~/.config/nota/config.toml.

nota add "Call the plumber" --tag home      # A new note in Inbox/.
nota ls --tag home --sort "updated desc"    # Filter by tag, folder or frontmatter.
nota search "plumber"                       # Full-text search with snippets.
nota set "Call the plumber" status=done     # Edit frontmatter, line by line.
nota mv "Call the plumber" Home             # File it into a folder.

The full command list, configuration and exit codes are in docs/cli.md.

Agents

nota mcp is a Model Context Protocol server on stdio. Add it to any MCP client:

{
  "mcpServers": {
    "nota": { "command": "nota", "args": ["mcp"] }
  }
}

With Claude Code: claude mcp add nota -- nota mcp. The tools, resources and the HTTP endpoint of the sync server are in docs/agents.md.

Self-hosting

A vault needs no account and no server. For sync, run nota serve: one container with its state in one directory, e-mail and passkey accounts, a web app and HTTP MCP. docs/deploy.md covers Docker, configuration and the first user, and docs/sync.md covers nota sync on each machine.

Views and hooks

  • Views are saved queries in .nota/views/*.yaml, shown as virtual folders in the app and listed with nota ls --view <id>.
  • Hooks in .nota/hooks.toml run your scripts when notes change, like git hooks. A transform hook can file or tag a new inbox note before it is written.

Both sync with the vault. Details and examples: docs/hooks.md.

Documentation

  • CLI: commands, configuration, ignore rules, timestamps.
  • Agents: MCP over stdio and HTTP, the tools and resources.
  • Views and hooks: saved queries and scripts on note events.
  • Sync: remotes, conflicts, history and restore.
  • Self-hosting: the server, its configuration and the static web app.
  • Web API and sync protocol: for clients.
  • Screenshots: the app, the web app and themes.

Development

You need Go 1.27+ and Bun. See CONTRIBUTING.md.

bun install
bun run dev              # Desktop app (MyGo + Vite+).
bunx vp check            # Format, lint and types.
bunx vp run -r test      # TypeScript tests.
go test ./...            # Go tests, incl. the CLI scripts and the 10k-note budget.

License

MIT

Directories

Path Synopsis
apps
desktop command
Command desktop is the Nota desktop app.
Command desktop is the Nota desktop app.
cmd
nota command
Command nota is the Nota CLI: local-first markdown notes from the shell.
Command nota is the Nota CLI: local-first markdown notes from the shell.
internal
cli
Package cli implements the nota command line.
Package cli implements the nota command line.
edit
Package edit holds the note edits shared by the CLI, the MCP server, hooks and the app: building a new note, editing tags and properties in frontmatter, replacing or appending to the body.
Package edit holds the note edits shared by the CLI, the MCP server, hooks and the app: building a new note, editing tags and properties in frontmatter, replacing or appending to the body.
events
Package events is Nota's core event bus.
Package events is Nota's core event bus.
frontmatter
Package frontmatter reads and edits the YAML frontmatter of a markdown note.
Package frontmatter reads and edits the YAML frontmatter of a markdown note.
hooks
Package hooks runs the scripts configured in <vault>/.nota/hooks.toml when core events happen, like git hooks:
Package hooks runs the scripts configured in <vault>/.nota/hooks.toml when core events happen, like git hooks:
index
Package index is the rebuildable SQLite index of a vault: notes, tags (nested a/b included), frontmatter properties, links and full-text search.
Package index is the rebuildable SQLite index of a vault: notes, tags (nested a/b included), frontmatter properties, links and full-text search.
markdown
Package markdown extracts what the index needs from a note body: tags (#tag, nested #a/b), wikilinks ([[Title]], [[path|alias]], [[x#heading]]), embeds (![[x]]) and links to local notes (text(other.md)).
Package markdown extracts what the index needs from a note body: tags (#tag, nested #a/b), wikilinks ([[Title]], [[path|alias]], [[x#heading]]), embeds (![[x]]) and links to local notes (text(other.md)).
mcp
Package mcp exposes a vault to AI agents over the Model Context Protocol.
Package mcp exposes a vault to AI agents over the Model Context Protocol.
protocol
Package protocol defines the Nota sync protocol: the routes, headers, wire types and error codes shared by the sync server (internal/server) and the client engine (internal/sync).
Package protocol defines the Nota sync protocol: the routes, headers, wire types and error codes shared by the sync server (internal/server) and the client engine (internal/sync).
server
Package server is the Nota sync server behind `nota serve`: a multi-user store of vaults with a version log (SQLite), content addressed blobs, device-token auth and the HTTP API of the sync protocol (internal/protocol, docs/sync-protocol.md).
Package server is the Nota sync server behind `nota serve`: a multi-user store of vaults with a version log (SQLite), content addressed blobs, device-token auth and the HTTP API of the sync protocol (internal/protocol, docs/sync-protocol.md).
sync
Package sync is Nota's client sync engine.
Package sync is Nota's client sync engine.
vault
Package vault is the file layer of Nota: a vault is a folder of markdown notes, and the files on disk are the source of truth.
Package vault is the file layer of Nota: a vault is a folder of markdown notes, and the files on disk are the source of truth.
views
Package views loads saved queries from <vault>/.nota/views/*.yaml and evaluates them through the index.
Package views loads saved queries from <vault>/.nota/views/*.yaml and evaluates them through the index.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL