[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-116137":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":13,"subscribersCount":13,"size":13,"stars1d":13,"stars7d":13,"stars30d":13,"stars90d":13,"forks30d":13,"starsTrendScore":13,"compositeScore":16,"rankGlobal":10,"rankLanguage":10,"license":17,"archived":18,"fork":18,"defaultBranch":19,"hasWiki":20,"hasPages":18,"topics":21,"createdAt":10,"pushedAt":34,"updatedAt":35,"readmeContent":36,"aiSummary":37,"trendingCount":13,"starSnapshotCount":13,"syncStatus":38,"lastSyncTime":39,"discoverSource":40},116137,"Markbase","Markbase-Team\u002FMarkbase","Markbase-Team","One markdown folder for your team and its agents","https:\u002F\u002Fmarkbase.so",null,"TypeScript",67,0,66,5,40,"Apache License 2.0",false,"main",true,[22,23,24,25,26,27,28,29,30,31,32,33],"ai-agents","claude-code","codex","collaboration","cursor","electron","knowledge-base","markdown","mcp","nextjs","supabase","team-docs","2026-11-23 20:24:25","2026-11-23 10:41:16","\u003Cp align=\"center\">\n  \u003Cimg src=\"docs\u002Fassets\u002Flogo.png\" alt=\"Markbase\" width=\"112\" height=\"112\">\n\u003C\u002Fp>\n\n\u003Ch1 align=\"center\">Markbase\u003C\u002Fh1>\n\n\u003Cp align=\"center\">\u003Cstrong>One markdown folder for your team and its agents.\u003C\u002Fstrong>\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\"apps\u002Fweb\u002Fpublic\u002Fwelcome-doc.png\" alt=\"Markbase: a document in the editor, with comments from an agent alongside\" width=\"900\">\n\u003C\u002Fp>\n\nMarkbase is a folder of markdown that syncs. You and your team edit the files\nin the folder, in the browser, in the desktop app, or through the agents you\nalready run, and everyone reads one version. Comments, history and sharing sit\non top of plain `.md` files, so nothing is locked in: the folder is yours, and\nit keeps working without us.\n\n- **Use it:** [markbase.so](https:\u002F\u002Fmarkbase.so) — sign-up is open.\n- **Desktop app (macOS, Apple silicon):**\n  [download the latest](https:\u002F\u002Fgithub.com\u002FMarkbase-Team\u002FMarkbase\u002Freleases\u002Flatest\u002Fdownload\u002FMarkbase-arm64.dmg) ·\n  [release notes](https:\u002F\u002Fmarkbase.so\u002Freleases)\n- **Docs:** [markbase.so\u002Fdocs](https:\u002F\u002Fmarkbase.so\u002Fdocs) — formats, vaults,\n  shared documents, working next to your code.\n- **Run your own:** [SELF-HOSTING.md](.\u002FSELF-HOSTING.md) — one instance for a\n  team, on Docker or Vercel, with a Supabase project you own.\n\n## How it works\n\nA **vault** is a set of documents in the cloud and, on each machine that\nmounts it, one folder that mirrors them. A background sync keeps the two in\nstep, both ways, and merges concurrent edits instead of overwriting them —\ngit without push and pull.\n\n- **People** write in the browser or the desktop app: comments anchored to the\n  text, version history, sharing by link or by name.\n- **Agents** — Claude Code, Codex, Cursor, anything that edits files — work on\n  the markdown in the folder. The sync daemon holds the only credential; the\n  agent needs none. For agents that are not on your disk there is an MCP\n  server with the document tools — `npx @markbase\u002Fcli mcp install` connects\n  Claude Desktop, Claude Code, Codex and Cursor, and so does Settings in the\n  desktop app — plus an HTTP API and a skill\n  ([`skills\u002Fmarkbase`](.\u002Fskills\u002Fmarkbase)). Both also give Claude Code, Codex\n  and Cursor the audit hooks that let a document's history name the agent\n  that edited a file.\n- **Teams** keep the vault in the repository, beside the code it describes, so\n  the spec an engineer's agent builds from is the one the PM edited this\n  morning.\n\nThe same build serves the hosted app and every self-hosted instance. An\ninstance that is not markbase.so is invite-only: the first account created on\nit is the admin, and teammates join through a link from Settings.\n\n## What is in this repository\n\n```\napps\u002Fweb\u002F        The web app and the HTTP API (Next.js). What markbase.so and a\n                 self-hosted instance both run.\napps\u002Fapp\u002F        The desktop app (Electron): the same documents, plus the sync\n                 that mirrors a vault to a folder.\napps\u002Fmarkbase\u002F   The `markbase` CLI (@markbase\u002Fcli): sign in, mount a vault,\n                 run the sync as a background service.\n\npackages\u002Fcore\u002F       What everything is built on\n  protocol\u002F          Isomorphic types, the API client, pure logic. Runs in a\n                     browser, a server and a daemon alike.\n  vault\u002F             The local vault: watcher, lock, registry, file sync.\n  flows\u002F             Steps every client shares (sign in, mount a vault), written\n                     once against an operator that asks the questions.\n  node\u002F  registry\u002F  ui\u002F  runner\u002F  agent\u002F  llm\u002F  browser-agent\u002F\n\npackages\u002Ffeatures\u002F   Things that live in the kernel\n  docs\u002F              The collaborative document engine: CRDT, markdown,\n                     comments, history, the vault's file contents. Released.\n  agents\u002F attention\u002F diary\u002F email\u002F projects\u002F reader\u002F skills\u002F terms\u002F today\u002F\n                     In the repository, not in the released product. A build\n                     ships them only when MARKBASE_FEATURES names them.\n\nsupabase\u002F        Migrations and database tests. The schema is built from these.\ndocs\u002F            Design notes: the shared vault, the workspace layout, how\n                 features plug in, and how to add an API endpoint so agents\n                 get it as a tool (docs\u002Fadding-an-endpoint.md).\n```\n\nThe vault is core and documents are a feature, so the dependency points from\n`docs` to `vault`, not the other way: the vault says what it needs from a\nsynced file and `docs` implements it.\n`packages\u002Fcore\u002Fprotocol\u002Ftest\u002Fpackage-boundary.test.ts` fails if an edge is\nadded back.\n\n## Develop\n\nFrom a fresh clone to a running app, in order. You need **Node.js 22 or\nlater** and **Docker** (the local database runs in it).\n\n### 1. Install\n\n```bash\nnpm install            # at the repo root; one install for every workspace\n```\n\n### 2. Start the database\n\nMarkbase runs on Supabase — auth, realtime, storage and Postgres — so this\ncomes before the app: without a project to talk to, no page renders. The local\nstack is a full Supabase on your machine:\n\n```bash\nnpx supabase@2 start\n```\n\nThe first start pulls the images and applies everything in\n`supabase\u002Fmigrations`, so the schema is ready when it finishes. Use `@2`: the\nrepository targets the Supabase CLI 2 line.\n\nOne local-only fix, once after every fresh start or `db reset`: the local\nimage leaves the API's role without access to the tables the migrations\ncreated, and the app answers `42501` until it is granted.\n\n```bash\ndocker exec \"$(docker ps --format '{{.Names}}' | grep '^supabase_db_')\" psql -U postgres -d postgres -c \"grant all on all tables in schema public to service_role; grant all on all sequences in schema public to service_role;\"\n```\n\n### 3. Point the app at it\n\n```bash\nnpx supabase@2 status\n```\n\nprints the stack's addresses and keys. Put four of them, plus a key of your\nown, in `apps\u002Fweb\u002F.env.local`:\n\n```\nNEXT_PUBLIC_SUPABASE_URL=http:\u002F\u002F127.0.0.1:54321          # API_URL\nNEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY=sb_publishable_...  # PUBLISHABLE_KEY\nSUPABASE_SECRET_KEY=sb_secret_...                        # SECRET_KEY\nAPP_URL=http:\u002F\u002Flocalhost:3000\nSECRETS_ENCRYPTION_KEY=                                  # openssl rand -base64 32\n```\n\nThese are the same names as [`.env.example`](.\u002F.env.example), which describes\neach one and lists the optional ones.\n\n### 4. Run the web app\n\n```bash\nnpm run dev            # → http:\u002F\u002Flocalhost:3000\n```\n\nBecause `APP_URL` is not markbase.so, this is a team instance, and it has no\naccounts yet: the first page is **Set up localhost:3000**, and the account you\ncreate there is its admin. After that, sign-up needs an invite from Settings.\nMail from the local stack (there is none in this flow) lands in Mailpit at\nhttp:\u002F\u002F127.0.0.1:54324; the database UI is at http:\u002F\u002F127.0.0.1:54323.\n\n### 5. Check your change\n\n```bash\nnpm run typecheck      # every workspace — what CI runs\nnpm test               # every workspace's tests\nnpx supabase@2 test db # the database's own tests, after a migration change\n```\n\n### 6. The CLI and the desktop app (when you need them)\n\nBoth talk to the web app from step 4, so start that first.\n\n```bash\ncd apps\u002Fmarkbase && npm run build && npm link\nmarkbase login --app-url http:\u002F\u002Flocalhost:3000    # browser sign-in, installs the sync service\nmarkbase vault mount \"Team notes\" ~\u002FCode\u002Fmy-app\u002Fdocs\n```\n\n```bash\ncd apps\u002Fapp && npm run build && npx electron .    # a dev run of the desktop app\n```\n\n`npm run dist` in `apps\u002Fapp` packages a DMG; from a fresh checkout that has\ntwo extra steps, in *Building the desktop app* in\n[SELF-HOSTING.md](.\u002FSELF-HOSTING.md). `markbase instance \u003Curl>` shows or\nchanges which instance the CLI and the desktop app talk to, and\n`MARKBASE_APP_URL` overrides it for one command.\n\n### Against a hosted Supabase project instead\n\nSkip step 2. Create a project on supabase.com, apply the migrations with\n`npx supabase@2 db push --db-url \"\u003Cits connection string>\"`, and take the\nvalues for step 3 from the project's settings —\n[SELF-HOSTING.md](.\u002FSELF-HOSTING.md) section 1 has the details.\n\n## Contributing\n\nPull requests are welcome. Commits need a `Signed-off-by` line (`git commit\n-s`); [CONTRIBUTING.md](.\u002FCONTRIBUTING.md) says why and covers bringing code\nfrom elsewhere.\n\n## Licence\n\n[Apache-2.0](.\u002FLICENSE). The licence covers the code, not the name or the\nlogo: [TRADEMARK.md](.\u002FTRADEMARK.md) says what you may do with those without\nasking. Third-party notices are in\n[THIRD_PARTY_NOTICES.md](.\u002FTHIRD_PARTY_NOTICES.md).\n","Markbase 是一个面向团队的 Markdown 协作知识库系统，支持浏览器、桌面端（Electron）及 AI 代理（如 Claude Code、Codex、Cursor）协同编辑同一套同步的 Markdown 文件。其核心采用双向后台同步机制，自动合并并发编辑，无需 Git 操作；所有内容以纯 `.md` 文件存储，保留完整版本历史、锚点评论与细粒度分享能力，并可通过 Supabase 自托管。适用于技术团队将文档与代码共管、AI 工程师与产品经理协同维护产品规范、以及需要审计追踪 AI 代理修改行为的场景。",2,"2026-11-24 04:52:56","CREATED_QUERY"]