Skip to content
alecercaPublic

About

Read, edit and export Markdown docs from any folder of repos — Figma-like board

Resources

Stars

3 stars

Watchers

1 watching

Forks

Repository files navigation

repoDocs

Turn a folder of Markdown docs (one per repo) into a Figma-like board — read, search, filter by status, edit every section, and write changes straight back to the real .md files.

repoDocs screenshot

Preview

Canvas view Mobile app preview Web app preview
Canvas view Mobile app preview Web app preview

Why

AGENTS.md / README.md files are the single source of truth for a project, but reading them inside the repo you're coding in is a poor experience. repoDocs reads any folder with .md files, turns modern documents into cards on a board (or a canvas), and lets you:

  • Read long docs as separate, collapsible sections.
  • Search and filter by status (✅ done · 📌 pending · 🔶 in progress — labels configurable globally, per project, per document, or in a document's frontmatter).
  • Edit any section in place with live Markdown preview and a formatting toolbar (no Markdown knowledge required).
  • Export / write back the full Markdown to the original .md files.
  • Preview a phone-style mock and/or a desktop web mock of your project (config-driven, optional).
  • Smooth UX: keyboard shortcuts (Ctrl/⌘+K, B/C, E), per-section undo and undo on reset, collapse all / expand all, clickable status chips, a first-run onboarding tour, and a distraction-free focus/reading mode. UI is bilingual (EN/ES).

Quick start

npm install
npm run dev        # scans ./examples → http://localhost:5173

It works out of the box with the demo docs in examples/. Point it at your own repos:

cp mdboard.json mdboard.local.json   # then edit (mdboard.local.json is gitignored)
{
  "projectsRoot": "../my-projects-folder", // each subfolder with its .md files
  "status": [
    { "key": "done", "emoji": "✅", "label": "Completada", "plural": "Completadas", "hint": "completad|listo" },
    { "key": "pending", "emoji": "📌", "label": "Pendiente", "plural": "Pendientes", "hint": "pendiente|falta" },
    { "key": "progress", "emoji": "🔶", "label": "En progreso", "plural": "En progreso", "hint": "en progreso|validad" }
  ],
  "brands": {
    "my-projects-folder": { "accent": "#7c5df8", "palette": ["#7c5df8", "#f59e0b"], "stack": ["React Native", "Expo"],
      "status": { "progress": { "label": "En desarrollo", "plural": "En desarrollo" } }, // per-project label override
      "docs": { "AGENTS.md": { "status": { "pending": { "label": "Backlog", "plural": "Backlog" } } } } // per-document override
    }
  },
  "apps": [ // optional: phone-style previews; empty = hide the 📱 button
    { "forProject": "my-projects-folder", "name": "My App", "screen": { "kind": "party", "title": "🍾 My App" } }
  ],
  "websites": [ // optional: desktop web-style previews (shown next to the app mock)
    { "forProject": "my-projects-folder", "name": "My Site", "url": "mysite.example.com",
      "screen": { "kind": "landing", "nav": ["Features", "Docs"], "hero": "My site hero",
                  "cta": "Get started", "points": ["One", "Two"] } }
  ]
}

Status labels cascade per document: global status[] → brands.<project>.status → brands.<project>.docs.<file>.status → frontmatter. The final labels are emitted per document and shown on the chips (e.g. Shipped instead of Done).

mdboard.json holds the public defaults (commit it). Put everything local/private in mdboard.local.json (already gitignored).

Editing workflow

  • Edits always land in the browser first (localStorage, key pb:edits).
  • When served by a Vite server (dev/preview), saving a section writes it back to the real .md (POST /__mdboard/write middleware) — and the 💾 Save button in the top bar writes the whole document. Set MDBOARD_NO_WRITE=1 (or run outside Vite) to keep edits local-only.
  • Export / Copy rebuilds the full Markdown with your changes applied, for manual pasting.
  • ↺ Reset discards all local edits (never touches files).

ADR Premium (Decisions)

Decisions board Relations graph
ADR Decisions board ADR relations graph

What it is. Architecture Decision Records (ADRs) are lightweight documents that record each architecture decision of a project — along with the context and consequences behind it. repoDocs reads them from your docs/adr/ folder (or any folders in mdboard.json → adr.paths) and turns them into a board of connected decisions: what supersedes what, what depends on what, and which decision is currently active at the end of each chain.

The idea. Inside a repo, ADRs live as flat, disconnected .md files: answering "was this already decided?" means opening files by hand and reading. repoDocs parses them (front-matter in YAML ---, JSON ;;; or TOML +++, plus heuristics for messy markdown), resolves the relations (supersedes, superseded_by, related_to, depends_on), detects supersession chains and gives you two views:

  • List — cards with status, relation badges and in-context supersession alerts.
  • Graph — a full-width SVG canvas with the directed edges (drag, pan/zoom, per-node focus) plus export to Mermaid (.mmd) for pasting into a README or a PR.

See it in the demo. npm run dev ships the app with 6 sample ADRs in examples/ wired up with real relations: open 🧭 Decisions (topbar toggle or D) and play with ☑ List / 🕸 Graph and the .mmd export.

Use it with real ADRs. Drop your ADRs (convention NNNN-title.md, adr-tools / MADR format) into a project's docs/adr/ → npm run sync → the Decisions view lights up; npm run adr:lint flags broken relations in CI. Editing, write-back and export behave exactly like the rest of the docs.

How to buy it. A lifetime license unlocks the graph, the export and the ADR limit (free tops out at 10 ADRs per project, the rest stays behind a 🔒):

Tier Price Unlocks
🏢 Studio (GitHub Sponsors) $20/mo automatic ADR Premium license the moment you sponsor

The issuing webhook is live in server/ (free Vercel deploy): today it mints licenses from GitHub Sponsors ($20/mo, X-Hub-Signature-256 verification) and also supports Gumroad / Lemon Squeezy if you prefer another channel. Deployment and setup docs are kept private.

What happens after you pay.

  1. The webhook (api/webhook.mjs) verifies the Sponsors event HMAC signature, confirms the tier is $20 and signs an Ed25519 token with your private key ({product, seats, issued, email}).
  2. The token is emailed to you (optional) and returned in the webhook response.
  3. Paste it in the app: the 🔑 button in the Decisions view (or mdboard.local.json → license).
  4. It validates offline against the embedded public key (src/lib/license.ts): no internet, no telemetry, no calls to your server. Once active: full graph, export and unlimited ADRs.

Scripts

Command Description
npm run sync Rescan projectsRoot, regenerate src/generated/{docs,appconfig}.ts and adr.ts
npm run adr:lint Check ADR relations / missing Context sections (exit code ≠ 0 if broken)
npm run webhook:local Run the license issuing webhook on :8787
npm run dev Vite dev server (runs sync first)
npm run build tsc -b && vite build (runs sync first)
npm run lint oxlint
npm run smoke E2E smoke test (spawns its own preview on :5199, writes disabled)
npm test Unit tests: ADR parser (YAML/JSON/TOML), license, webhook, Mermaid, config

How it works

  • scripts/sync-docs.mjs parses each .md into sections (H1/H2 blocks), detects status from the config emojis and the summary table (kept as a special summary section that is regenerated on export rather than edited).
  • Edits are stored per line range (src/lib/registry.ts assembleRaw()), so separators and ordering are preserved and the exported Markdown is byte-identical when nothing is edited.
  • src/generated/ is auto-generated and gitignored — it never commits your private docs.

Sponsor

repoDocs is free and MIT-licensed. If it saves your team time, a small recurring contribution directly funds the funded roadmap items (GitHub integration, canvas export, plugin system).

Tier Price What you get
☕ Coffee $3/mo Vote on roadmap priorities
🚀 Supporter $8/mo Prioritized issue requests
🏢 Studio $20/mo Office/team support + ADR Premium license (automatic)

Sponsor See SPONSORING.md for details.

License

MIT © 2026 Alejandro Guerrero.

About

Read, edit and export Markdown docs from any folder of repos — Figma-like board

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages