Mote

module
v0.0.5 Latest Latest
Warning

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

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

README

Mote App Icon

Mote

Open-source, local-first Markdown notes, multi-view Collections, and an infinite vector Canvas — built in 100% pure Go (zero Electron, zero CGO) with a 120fps native GPU UI, SQLite WAL, E2EE cloud sync, standalone CLI, and built-in MCP server for AI agents.

Release Platforms Go License

Why Mote · Highlights · Shortcuts · Install · CLI Guide · AI & MCP · Build


Mote Block Editor with Chromatic Tags, LaTeX Math, and Live Mermaid Diagram

Why Mote?

Mote brings together the speed and clarity of a native desktop notes app, the structure of multi-view databases, the spatial freedom of an infinite vector canvas, and first-class automation for terminals and AI agents — all without Electron or cloud lock-in:

  • 100% Pure Go, Native GPU Speed — Rendered natively on Metal / OpenGL via MyGo with CGO_ENABLED=0 and backed by local SQLite WAL + FTS5. Instant launch, 120fps scrolling, and full offline ownership.
  • Plaintext Local Vault + Zero-Knowledge Cloud Sync — Your workspace lives locally in ~/.mote for instant full-text search, CLI, and MCP access. Turn on optional End-to-End Encrypted Sync (XChaCha20-Poly1305 + 64 MiB Argon2id + 160-bit recovery key) to sync seamlessly across devices through iCloud Drive, Google Drive, Dropbox, OneDrive, or Syncthing — without exposing plaintext to the cloud.
  • Notes, Databases & Infinite Canvas in One Graph — Connect rich block notes, structured Collections, and vector whiteboards through [[wikilinks]], live backlinks, chromatic #tags, reusable @Today / @Weekday templates, and lossless Markdown + .zip backup/import.
  • Desktop + CLI + MCP Parity — Every workflow works identically from the desktop app, the standalone mote CLI (even when the app is closed), and AI coding agents over the built-in 79-tool MCP server.

Highlights

Fluid Block Editor, Math & Diagrams

Write cleanly with slash commands (/), multi-column drag-and-drop layouts, callouts, toggle headings, GFM tables, [[wikilinks]], live backlinks, chromatic #tags, and full Version History with in-place preview and one-click restore. Both LaTeX math (inline & block) and Mermaid diagrams render natively on the GPU — no browser engine required.

  • Side-by-Side Margin Comments & Hover Preview (⌘⇧M): On wide windows, inline comments appear cleanly beside the document with zero prose reflow; on compact viewports, outer right-gutter badges keep text unobstructed and preview threads on hover.
  • Hover-Reveal Outline & Regex Find/Replace (⌘F / ⌘⌥F): Hover the left-edge ≡ outline trigger to jump across headings without clicking, and step through in-page matches with Enter / Shift+Enter.
  • Two Native Surface Styles: Switch between Apple Glass and Crafted Minimal, Light / Dark / System themes, and Standard / Wide / Full page widths.

Multi-View Collections & Dynamic Templates

Organize roadmaps, reading lists, or personal trackers in local structured databases with Table, Board, Gallery, and List views, 12 typed properties, filters, multi-column sorting, Side-Peek editing, embedded /collection blocks, and reusable Note & Collection Templates featuring live @Today, @Now, @Time, and @Weekday mentions.

Mote Multi-View Collections


Infinite Vector Canvas

Sketch system architectures and map ideas with shapes, pressure-sensitive freehand ink, curved connectors, sticky notes, and frames — or drag notes onto any board as live interactive NoteCards and embed /canvas blocks inside documents. Export any board to clean vector .svg.

Mote Infinite Vector Canvas


Built for Desktop Flow
  • Transparent E2EE Cloud Folder Sync — Pick any cloud-synced folder once in Settings or Onboarding; Mote syncs automatically in the background, preserves conflict copies in Version History, and protects remote files with XChaCha20-Poly1305 + Argon2id.
  • Global Quick Note (⌥ Space / Alt+Space) — Capture ideas from anywhere with persistent draft recovery, chromatic #tag autocomplete, destination/template picking, and live sync to open windows.
  • Pin Notes to Desktop — Pop out multiple notes simultaneously as always-on-top floating windows with live bidirectional sync.
  • Standalone .md File Editor — Open any external local Markdown file directly in Mote with direct disk saving and one-click Save to Mote.
  • In-App Auto-Updates — Check, SHA-256 verify, and apply new GitHub Releases right inside Settings → Updates.

Mote Pinned Desktop Note and Quick Note


Keyboard Shortcuts

Shortcut Action
⌘K / Ctrl+K Global Command Palette & instant FTS5 search
⌥ Space / Alt+Space Open Global Quick Note (customizable in Settings)
⌘N / Ctrl+N New note in current folder context
⌘F / ⌘⌥F In-page Find / Find & Replace (Enter / Shift+Enter to step)
⌘⇧M Add inline or block comment
/ · [[ · @ Slash block menu · [[wikilink]] picker · @Today / @Now date mentions
⌘S / Ctrl+S Save immediately (desktop windows, Quick Note, Pinned Note, external .md)

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

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 in the background and 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 show "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 and AI agent workflow? Install the zero-GUI standalone CLI (-tags cli, ~6 MB compressed, 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.5 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 --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