Mote

module
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2026 License: MIT

README

Mote App Icon

Mote

Open-source, local-first Markdown note-taking app, structured databases, and infinite whiteboard canvas — built in pure Go (no Electron) with native GPU speed, SQLite, standalone CLI, and built-in MCP server for AI agents.

Release Go License

Features · Install · CLI Guide · AI & MCP · Build from Source


Mote Block Editor with LaTeX and Live Mermaid Diagram

Why Mote?

Mote is designed to feel as fast and calm as a native Apple notes app, while giving you structured databases and collections, the spatial freedom of an infinite whiteboard, and first-class automation for terminals and AI agents:

  • Zero Electron, Zero WebView, Zero Cloud Lock-in — Pure-Go native GPU UI (MyGo) backed by a local SQLite WAL vault (~/.mote). Instant launch, 120fps scrolling, and full offline ownership.
  • Everything Lives in One Local Vault — Rich block notes, structured Collections, infinite vector canvases, inline comments, version history, and content-addressed attachments stay on your machine, exportable anytime to Markdown + .zip.
  • Desktop + CLI + MCP as First-Class Citizens — Every operation works identically from the desktop app, the mote CLI (even when the app is closed), and AI agents over MCP.

Highlights

Fluid Block Editor, Math & Diagrams

Write cleanly with slash commands (/), multi-column layouts, callouts, structured tables, toggle headings, [[wikilinks]], backlinks, inline & page comments (⌘⇧M), and full revision history. Both LaTeX math (inline & block) and Mermaid diagrams render natively on the GPU — no browser engine required.

  • Two surface styles (Apple Glass & Crafted Minimal), adaptive Light / Dark / System themes, and Standard / Wide / Full page widths.
  • Full keyboard block navigation and structured 2-step block deletion (Backspace selects block, second Backspace deletes).

Multi-View Collections & Templates

Organize roadmaps, reading lists, or personal trackers in local structured databases with Table, Board, Gallery, and List views, typed properties, filters, multi-column sorting, Side-Peek record editing, and reusable Note & Collection Templates (@Today, @Now, @Time, @Weekday, pre-filled #tags and properties).

Mote Multi-View Collections


Infinite Vector Canvas

Sketch architecture diagrams, map ideas with shapes, curved connectors, sticky notes, and frames — or drag Mote notes directly onto the canvas as live interactive note cards. Export any board to clean vector .svg.

Mote Infinite Vector Canvas


Built for Desktop Flow
  • End-to-End Encrypted Cloud Folder Sync — Sync across devices via Google Drive, iCloud Drive, Dropbox, OneDrive, or Syncthing using XChaCha20-Poly1305 + Argon2id and a 160-bit recovery key — while your local SQLite vault, CLI, and MCP stay fast and plaintext.
  • Global Quick Note (⌥ Space / Alt+Space) — Capture thoughts from anywhere (customizable or clearable in Settings) and sync live to open windows.
  • Pin Notes to Desktop — Pop out multiple notes simultaneously as calm, always-on-top floating windows with live bidirectional sync.
  • Open Any Local .md File — Open external Markdown files in standalone Mote windows with direct disk saving and one-click Save to Mote.
  • Built-in Auto-Update — Check, SHA-256 verify, and apply new GitHub Releases right inside Settings → Updates.

Mote Pinned Desktop Note and Quick Note


Install

Desktop App

macOS (recommended — one-line install, no Gatekeeper warning):

curl -fsSL https://raw.githubusercontent.com/Lynrando/Mote/main/scripts/install_macos.sh | bash

The installer automatically detects Apple Silicon (arm64) or Intel (amd64), verifies SHA256SUMS.txt, and installs Mote.app to /Applications (pass -s -- --open to launch right after installing).

Manual download (macOS .dmg, Linux, Windows):

Download the latest release archive or disk image from GitHub Releases.

  • macOS .dmg: Open Mote-<version>-darwin-<arch>.dmg and drag Mote.app to /Applications.
  • Auto-updates: Once installed, Mote checks for new releases silently in the background and applies updates in-place without re-triggering Gatekeeper (configurable in Settings → Updates).

[!NOTE] If you downloaded the .dmg via a web browser on macOS, macOS may say "Apple could not verify Mote is free of malware" because open-source builds are currently ad-hoc signed rather than Apple-notarized. Either use the one-line terminal installer above, or clear the browser quarantine attribute once after dragging Mote.app to /Applications:

xattr -dr com.apple.quarantine /Applications/Mote.app

(Alternatively, open System Settings → Privacy & Security and click Open Anyway.)

Standalone CLI + Bundled Agent Skill

Need only the terminal & AI agent workflow? Install the zero-GUI standalone CLI (-tags cli, ~14 MB, zero desktop dependencies). Every CLI install also includes Mote's bundled Agent Skill (skills/mote/SKILL.md):

# 1. One-line install from GitHub Releases (verifies SHA-256 & installs Agent Skill)
curl -fsSL https://raw.githubusercontent.com/Lynrando/Mote/main/scripts/install_cli.sh | bash

# 2. Or install directly via Go (zero GUI dependencies)
go install -tags cli github.com/Lynrando/Mote/cmd/mote@latest
mote skill install --target agents

# 3. Keep CLI & installed Agent Skills up to date anytime
mote upgrade --check
mote upgrade

[!TIP] Pass --no-skill to install_cli.sh to skip installing the Agent Skill, or --skill-target agents,claude,codex,cursor,agy,all to target specific AI coding assistants.


Mote CLI

The mote CLI works seamlessly whether or not the desktop app is running:

  • Live Sync by Default: Probes a running local Mote desktop app or mote serve (<= 150ms) so open windows refresh instantaneously via SSE.
  • Automatic Offline Direct Mode: When no app/server is running (or when --direct / --data <dir> is passed), mote opens <data_dir>/mote.db (SQLite WAL) directly in-process with zero open ports.
  • Script & Agent Friendly: Every subcommand supports --json for structured output and accepts short UUID prefixes, folder paths, or collection/board names.
# Quick capture from arguments, files, or stdin pipes (supports #tags and [[wikilinks]])
mote add "Ship v0.0.1 release notes #release" --pin
mote add --title "Sprint Plan" --folder "Work/Backend" --tag go,mcp --file ./plan.md
echo "Captured from terminal #ideas" | mote add

# List, search, inspect, and traverse backlinks
mote ls [--inbox | --folder "Work" | --tag go | --pinned | --trash] [--limit 20] --json
mote search "architecture" --folder "Work" --json
mote show 0195a3bc --json
mote backlinks 0195a3bc --json

# Update, append, organize, and soft-delete / restore
mote update 0195a3bc --title "Revised Plan" --file ./revised.md
mote append 0195a3bc "- Follow-up task #todo"
mote mv 0195a3bc --folder "Work/Archive"
mote tag 0195a3bc --add urgent --rm draft
mote rm 0195a3bc && mote restore 0195a3bc
Block-Level Editing & Revision History

Mutate individual blocks inside rich documents without touching surrounding callouts, columns, tables, or inline comments:

mote block ls 0195a3bc --json
mote block append 0195a3bc "## Next Steps"
mote block insert 0195a3bc --target 2 --pos after "Review rollout checklist"
mote block convert 0195a3bc 3 callout --variant info --emoji "💡"
mote block move 0195a3bc 4 --target 1 --pos before

# Inspect and roll back automatic revision snapshots
mote history ls 0195a3bc --json
mote history restore 0195a3bc <rev-prefix>
Collections, Templates, Whiteboards & Comments
# Collections (alias: db) — schemas, views, rows, and collection templates
mote collection create "Roadmap" --folder "Work" --template tasks
mote collection prop add "Roadmap" "Priority" --type select --options P0:rose,P1:amber,P2:blue
mote collection view add "Roadmap" "Active" --type board --group-by Status --filter "Status:neq:Done"
mote collection row add "Roadmap" --title "Standalone CLI" --set Status="In progress" --set Priority=P0
mote collection template new "Roadmap" --title "RFC: Auto-Update"

# Infinite Whiteboards (alias: canvas)
mote board new "System Architecture" --folder "Work"
mote board element add "System Architecture" --type rect --text "SQLite WAL" --x 360 --y 100
mote board attach "System Architecture" 0195a3bc --x 120 --y 80 --mode compact
mote board svg "System Architecture" --out ./architecture.svg

# Inline & page comments
mote comment add 0195a3bc "Double-check edge case" --quote "SQLite WAL"
mote comment ls 0195a3bc --status open --json
Encrypted Sync, Backup, Import, Skill & Self-Upgrade
# End-to-end encrypted cloud folder sync (Google Drive, iCloud, Dropbox, Syncthing, etc.)
mote sync set ~/Library/CloudStorage/GoogleDrive-you@gmail.com/My\ Drive/MoteSync --passphrase-stdin
mote sync status --json
mote sync now && mote sync lock && mote sync unlock --passphrase-stdin

# Lossless backup & Obsidian / Markdown import (preserves folders, local images & [[wikilinks]])
mote export --out ./mote-backup.zip [--include-trash]
mote import ./my-obsidian-vault --folder "Archive"
mote import ./mote-backup.zip

# Manage the bundled Agent Skill
mote skill status                          # check install & SHA-256 sync across agent hosts
mote skill install --target agents,claude  # targets: agents, claude, codex, cursor, agy, all
mote skill show                            # print bundled SKILL.md

# Self-upgrade Mote CLI (verifies SHA-256 & automatically syncs installed Agent Skills)
mote upgrade --check [--json]
mote upgrade [--version vX.Y.Z]

AI Agents & MCP

Mote ships with a built-in Model Context Protocol (2025-03-26 / 2025-06-18) server exposing 79 annotated tools (notes, blocks, history, folders, tags, Collections & batch upsert, templates, whiteboards & elements, comments) and 8 resources (mote://notes/recent, mote://notes/{id}, mote://folders, mote://tags, mote://collections, mote://collections/{id}, mote://whiteboards, mote://whiteboards/{id}).

Works with or without the desktop app open (auto-bridges to a running local server for live UI sync, and falls back directly to SQLite WAL when closed):

{
  "mcpServers": {
    "mote": {
      "command": "mote",
      "args": ["mcp"]
    }
  }
}
Streamable HTTP (/mcp)

When the desktop app or mote serve is running (strictly bound to 127.0.0.1:5230 with Host & Origin loopback guardrails):

{
  "mcpServers": {
    "mote": {
      "url": "http://127.0.0.1:5230/mcp"
    }
  }
}

For agent workflows using the shell directly, install the bundled skill via mote skill install (canonical source in skills/mote/SKILL.md).


Configuration

Precedence: CLI Flags > MOTE_* Environment Variables > Defaults

Flag Environment Variable Default Purpose
--data MOTE_DATA_DIR / MOTE_DATA ~/.mote Local vault directory (mote.db, assets/, desktop.json, ui_prefs.json)
--addr MOTE_ADDR 127.0.0.1:5230 Local HTTP / REST / SSE / /mcp bind address
--direct — false Force direct in-process SQLite WAL mode for CLI & MCP
--server MOTE_SERVER auto-detect Explicit HTTP server URL for CLI & MCP
--quicknote-hotkey MOTE_QUICKNOTE_HOTKEY Alt+Space Global Quick Note accelerator (editable or clearable in Settings)
— MOTE_SYNC_PASSPHRASE — Non-interactive passphrase for mote sync set and mote sync unlock
— MOTE_NO_UPDATE_CHECK false Set to 1 to disable automatic background update checks

Build from Source

Mote is 100% pure Go (CGO_ENABLED=0) — no Node.js, no Rust, no C toolchain required.

# Build & run the full native desktop app + CLI
make build
./bin/mote

# Build or install the standalone zero-GUI CLI + bundled Agent Skill
make build-cli
make install-cli

# Run the headless local REST/SSE/MCP server only
make serve

# Package macOS Mote.app and .dmg locally
make package-macos

# Run the full test suite (desktop + standalone CLI)
make test

License

MIT © 2026 Lynran

Directories

Path Synopsis
cmd
mote command
internal
assets
Package assets embeds Mote's 100% ISC-licensed Lucide SVG icon set (see LICENSE-lucide) with zero third-party UI library dependencies.
Package assets embeds Mote's 100% ISC-licensed Lucide SVG icon set (see LICENSE-lucide) with zero third-party UI library dependencies.
cli
design
Package design is a 1:1 pure-MyGo port of Mote's 12-module design system: shadcn/ui Nova Neutral colors + Vega geometry anchored on R=12 + affectUI's 5-level elevation shadow ladder, built solely on stdlib + github.com/egoist/mygo/ui + internal/theme + internal/assets.
Package design is a 1:1 pure-MyGo port of Mote's 12-module design system: shadcn/ui Nova Neutral colors + Vega geometry anchored on R=12 + affectUI's 5-level elevation shadow ladder, built solely on stdlib + github.com/egoist/mygo/ui + internal/theme + internal/assets.
gallery
Package gallery is a 1:1 pure-MyGo port of Mote's interactive component gallery (src/gallery/): every component in internal/design and internal/theme rendered live with interactive controls ("可操作") and still state matrices ("状态对照"), plus real-time Light / Dark / Light+Dark side-by-side comparison.
Package gallery is a 1:1 pure-MyGo port of Mote's interactive component gallery (src/gallery/): every component in internal/design and internal/theme rendered live with interactive controls ("可操作") and still state matrices ("状态对照"), plus real-time Light / Dark / Light+Dark side-by-side comparison.
mcp
theme
Package theme implements Mote's OKLab dark-mode adaptation engine, Craft neutral/accent palette, semantic color tokens, document hue ramps, and layout/typography metrics on top of pure MyGo (github.com/egoist/mygo/ui).
Package theme implements Mote's OKLab dark-mode adaptation engine, Craft neutral/accent palette, semantic color tokens, document hue ramps, and layout/typography metrics on top of pure MyGo (github.com/egoist/mygo/ui).
scripts
gen_icons command
Command gen_icons converts Mote's master square artwork into transparent Apple HIG 1024x1024 master PNG, multi-size Linux/runtime PNGs, multi-resolution Windows ICO, and macOS multi-resolution ICNS (via /usr/bin/iconutil).
Command gen_icons converts Mote's master square artwork into transparent Apple HIG 1024x1024 master PNG, multi-size Linux/runtime PNGs, multi-resolution Windows ICO, and macOS multi-resolution ICNS (via /usr/bin/iconutil).
gen_screenshots command

Jump to

Keyboard shortcuts

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