Examples · examples/notes
Notes
Personal notes in Markdown that AI agents can use too: sign in by mailed link, write with a live preview, tag, pin and search, and let an AI client read and write them over MCP.
What it shows#
- Sign-in by mailed link, with packages/auth's plugin
- Personal access tokens, stored as hashes
- An MCP server whose tools are the JSON API's endpoints, and its OpenAPI page
- Full-text search, and Markdown with a live preview
Screenshots#
What it's made of#
- Its browser half
- 330.8 KB
- wasm, brotli; 430.5 KB gzip
- Pages and endpoints
- 7 + 22
- route files' pages, and handlers
- Lines of Roc
- 3,154
- its own .roc and .rocx, blank lines left out
- Tests
- 103
- 75 expects, 28 node tests
- Weighs
- 330.8 KB of wasm, brotli (430.5 KB gzip, 1113.3 KB raw)
- Made of
- 7 pages · 22 endpoints · 3,154 lines of Roc · 75 expects · 28 node tests
- Uses
- SQLite, packages/auth, packages/crypto, packages/email, packages/guard, packages/markdown, packages/mcp, packages/testing, packages/tools
Measured on 2026-11-29 at commit 74eec5b. The wasm is the app's browser half, built with --opt=size; every page also loads start.js, the page's JavaScript, 22.8 KB brotli. All the examples says how they're measured.
Run it#
With the toolchain set up (just setup), start it from its own directory: it builds, serves at http://127.0.0.1:8080 and builds again when you save. Its README says what to look at.
cd examples/notes && ../../bin/rocx devTo build it, check it and run its tests, from the repository's root:
just examples notes
just examples-release notes # as deployed: rocx build, then the tests against a server built --opt=speed