- TypeScript 42%
- Astro 31.6%
- Python 18.8%
- JavaScript 5.4%
- CSS 2.1%
|
|
||
|---|---|---|
| .github | ||
| .vscode | ||
| collaboration | ||
| docs | ||
| public | ||
| research | ||
| scripts | ||
| services/graph-query | ||
| src | ||
| tests | ||
| .dockerignore | ||
| .gitattributes | ||
| .gitignore | ||
| astro.config.mjs | ||
| bun.lock | ||
| CLAUDE.md | ||
| CNAME | ||
| CODEOWNERS | ||
| components.json | ||
| Dockerfile | ||
| nginx.conf | ||
| package-lock.json | ||
| package.json | ||
| playwright.config.ts | ||
| README.md | ||
| tsconfig.json | ||
OpenHaven — Open Protocol Navigator
A live, data-driven convergence navigator for the P2P / decentralized-web ecosystem. Users navigate Use Cases → Affordances → Tools to find the protocols and platforms for a given need, with governance model and capture risk surfaced alongside technical capability. Astro 5
- React 19 + Tailwind 4, deployed at https://openhaven.net.
This repository is the public side of the project — the website, the data pipeline, and public docs:
| Path | What |
|---|---|
src/, public/, astro.config.mjs, Dockerfile, nginx.conf |
The website (built to dist/, served by nginx) |
scripts/, research/ |
The protocol-data pipeline and its source spreadsheet |
collaboration/ |
Team conventions + skills (the Linear ↔ BMAD workflow) |
docs/ |
Project + methodology docs |
**As of 2026-09-15 (Story 9.109), the BMAD planning workspace — _bmad/ (method + customizations) and
_bmad-output/ (PRD, architecture, epics, stories, tech specs, the source of truth for work) — lives in
the separate private repo git.myceli.al/zach/openhaven-bmad, cloned as a sibling checkout. See
collaboration/README.md for setup.
Quick start (website)
bun install # install deps
bun run dev # dev server
bun run build # static build → dist/
bun run preview # preview the build
Setup / onboarding (new contributors)
You need access to this Forgejo repo (log in via Authentik) and your own Linear connection.
# 1. Clone
git clone https://git.myceli.al/openhaven/openhaven.net.git
cd openhaven.net
# 2. Website deps (only if you'll run/build the site)
bun install # or: npm install
# 3. Regenerate the stock BMAD modules (gitignored — only customizations are tracked).
# Install the same modules as the workspace, and recompile agents when prompted
# so the tracked customizations apply.
npx bmad-method install # BMAD v6.0.3 · modules: core, bmm, cis, bmb
# 4. Load the shared collaboration skills into your agent
mkdir -p .claude/skills && cp -R collaboration/skills/* .claude/skills/
# 5. Connect your OWN Linear MCP (workspace OpenHaven · team key OPE).
# See collaboration/README.md → Setup §1.
Then point your AI agent at CLAUDE.md first — it carries the session protocol
(AWAKEN), the BMAD ↔ Linear source-of-truth rules, and the Design Audit checklist.
How we work: BMAD (_bmad-output/) is the source of truth for user stories; Linear
(team OPE) is the live status board. An item created in Linear isn't dev-ready until its
BMAD story exists. Full conventions: collaboration/ (README.md + the linear-bmad /
linear-bmad-merge skills).
Data pipeline
Since Story 21.2 (2026-11-05), the data lives in Baserow, the source of truth. Data changes go through a story with scripts/baserow-edit.py, and scripts/fetch-baserow.py --write regenerates the committed src/data/*.json that the site builds from. See docs/data-pipeline.md. The spreadsheet pipeline described below is historical (scripts in scripts/archived/).
(Historical) The protocol matrix is authored in a single-writer source spreadsheet and compiled to JSON. Full
technical reference: docs/data-pipeline.md. Process/review rules:
docs/governance.md.
- Source:
research/protocols/OpenHaven for P2P Convergence - Master.xlsx(removed from the repo in Story 21.2; last version in commitbab0eb0; binary; data authority @Enli10ment — seeCODEOWNERS). On conflict, the data authority reconciles it in a spreadsheet app, then re-runs the pipeline. - Routine changes:
scripts/pipeline-op.py— the primary interface for adding, removing, or editing entities/attributes. 5 of its 7 modes default to a dry run (--applyto write);sync-checkis always read-only, andfull-regenis gated by a typed confirmation phrase instead. Every write mode runs a sync-check preflight first, which can block the write outright on structural source-file problems (--forceoverrides, not recommended). Every use requires its own BMAD story and Linear issue, perdocs/governance.md. - Full re-generation:
scripts/convert-xlsx.py(xlsx → JSON) is the rare, loudly-gated exception, not the default — it re-extracts everything from the spreadsheet and requires typing a confirmation phrase.scripts/enrichment_data.pysupplies its fallback/enrichment data, andscripts/audit_xlsx_vs_json.py— wrapped bypipeline-op.py sync-check— is the read-only drift check described above. On macOS, use the Xcode Command Line Toolspython3(not Homebrew) foropenpyxlcompatibility. - Output:
src/data/*.json(protocols, affordances, domains, entity-types, attributes, …), validated againstsrc/lib/schemas.tsand consumed by the Astro site.
Edit matrix data via
pipeline-op.py/the spreadsheet + pipeline, not the generated JSON.
Deployment
The site is a static Astro build served by nginx — the Dockerfile builds the Astro
output and serves /dist via nginx.conf — deployed to self-hosted infrastructure. Only
src/ is built; the BMAD folders are never bundled or served.
URLs, the 404 page, the build tag and permanent URLs (Stories 24.6 and 24.7)
- Trailing slash. The canonical form of a page URL has the slash (
<link rel="canonical">and the sitemap both use it). nginx redirects/whyto/why/with a relativeLocation(absolute_redirect off): the container only ever sees plain http behind Coolify's TLS proxy, so an absoluteLocationwould send every redirected click throughhttp://. Tests that follow a navigation accept both forms (urlPath()intests/fixtures/hydrated.ts), because the local preview server does not redirect. - 404. A URL that does not exist is a real
404with the site's own page (src/pages/404.astro, built todist/404.html; nginxerror_page 404 /404.html). It is English only; there is no fallback to the homepage. - Build tag. Every page's
<head>carries<meta name="build" content="<short commit> <UTC time>">; view-source shows which build is live. The commit comes fromSOURCE_COMMIT(a Docker build argument, declared in theDockerfileafternpm install). Coolify passes it only when Include Source Commit in Build is on for the application (Configuration, Advanced). Without it the tag readsunknown <time>: it still shows a new build went live, just not which commit. Local builds readgit rev-parse. - Permanent URLs (Story 24.7). The Navigator, Matrix, tool and domain pages live at
/navigator/,/matrix/,/protocols/{id}/and/domains/{slug}/(and under/es/and/pt-BR/); the QA fixture is at/qa/definition-popover/(noindex, not in the sitemap). The old/prototype/...URLs get one301from nginx with the query string kept (rewrite ... permanent; Astro's staticredirectswould drop it). After a deploy, check them withnode scripts/check-redirects.mjs https://openhaven.net(astro previewhas no nginx, so the Playwright suite cannot test the redirects). The lowercase forms/en/prototype/...and/pt-br/prototype/...take two redirects (the older/en/and/pt-br/rewrites run first, then the/prototype/rule); the script checks them as that two-step chain. Directories with no index page (/protocols/,/domains/) answer with the 404 page, and a missing file under/api/answers with a small JSON 404 that carries the CORS header.
Project structure
openhaven.net/ # public repo: website + data pipeline + public docs
├── src/ # Astro site (pages, components, data, lib, styles)
├── public/ # static assets
├── astro.config.mjs
├── Dockerfile, nginx.conf # build + serve
├── scripts/ # xlsx → JSON data pipeline
├── research/ # protocol source spreadsheet + governance research
├── collaboration/ # team conventions + Linear↔BMAD skills
├── docs/ # project + methodology docs
└── CLAUDE.md # session protocol + working rules
../openhaven-bmad/ # private sibling repo (Story 9.109, 2026-09-15)
├── _bmad/ # BMAD method (stock gitignored; customizations tracked)
└── _bmad-output/ # PRD, architecture, epics, stories, specs ← work source of truth