Read it.
src/ is ten small files. One schema, one builder, one store, two doors.
src/schema.ts things, events, links, verbs src/build.ts replays snapshots; the only writer src/store.ts every read src/cli.ts one door src/mcp.ts the other
1 archive: texts, saves, videos, searches, posts, code, promptsMIT, and a template you own
commonplaceyour personal data kit for agents
Bring accounts, local files and exports into one archive on your machine. Connect agents through the CLI or MCP.
Ask your coding agent to add another source. It writes the code in your repo.
0 runtime packages: Bun and its SQLite
Real output from the shipped sources, run on a small made-up archive.github.com/AVGVSTVS96/commonplace
01Everything
Search messages, saved posts, watched videos and past prompts in one place. Add more sources with your agent.
One shape for all of it: things, events, links. Same page saved in two apps is one record.
02Why
It can find what you saved, what you said and how you asked last time.
The more an agent can look up, the less you have to say, and the more you can hand it.
03Sources
Eight ship today: five fetch on their own and three read an export you download. Your agent can write more.
gh signed inagent-browser, signed in to X. No paid API key.~/.netrc, set upAnything with an export, a local database, an API or a CLI. Ask your agent, and the add-source skill has it write the source, run it and check what landed: one file in your repo.
.icsAny coding agent with file and terminal access can follow the skill, not just Claude Code.
04How it works
Sources save dated snapshots. Build combines them in SQLite. Agents search through read-only tools.
├ github/ │ ├ 2026-11-12/ │ ├ 2026-11-13/ │ └ 2026-11-14/ ├ prompts/ │ └ 2026-11-14/ └ imessage/ └ 2026-11-14/
commonplace sync takes one snapshot per source per day into data/raw/<source>/<date>/. Each one is written through a .partial directory and made read-only, so a crash never leaves half a snapshot. On a Mac, commonplace install runs it at login and when Messages changes, and the Claude Code plugin runs it when a session ends. A source with today's snapshot waits for tomorrow; an export source updates when you add a newer export.
Every build starts from empty and replays every snapshot into one SQLite database. The same raw/ always gives the same database, so you can fix a source and rebuild years of history.
The CLI and the MCP server read the same store, read-only: search, timeline, show, stats, and sql for you.
05Privacy
Data stays in your local data/ folder, which the template keeps out of git. Connected agents can read everything in the built archive, and may send what they read to their model provider.
commonplace build after changing sources or redact.06Yours
About 1,400 lines in the core, plus the sources. Bun and SQLite, with no runtime packages. Read it in an afternoon. Change anything.
src/ is ten small files. One schema, one builder, one store, two doors.
src/schema.ts things, events, links, verbs src/build.ts replays snapshots; the only writer src/store.ts every read src/cli.ts one door src/mcp.ts the other
A source is one file with two halves: fetch copies what the service gives, rows turns one snapshot into things, events and links.
export default defineSource({ name: "bookmarks", fetch: async ({ dir }) => { … }, rows: async function* ({ dir }) { … }, });
Your repo, your data, your rules. Updates to the template never touch data/.
my-commonplace/ commonplace.config.ts yours sources/ yours, plus ours data/ yours, never in git
07
You need Bun, and gh signed in for the GitHub source. On a Mac, iMessage is on by default, so give your terminal Full Disk Access first. X is off until you sign in and add it.
Then connect your agents:
Then ask something only your history can answer. “What was I working on the week before my last trip?”