No description
  • TypeScript 42%
  • Astro 31.6%
  • Python 18.8%
  • JavaScript 5.4%
  • CSS 2.1%
Find a file
2026-11-10 07:24:46 +00:00
.github chore(24.4): remove the calendar page and the GitHub Pages workflow (OPE-284) 2026-11-09 20:34:22 -08:00
.vscode initial commit 2025-08-15 16:34:43 -07:00
collaboration feat(24.7): permanent URLs, /prototype/ retired with redirects (OPE-292); also nginx, Nav and docs for 24.6 (OPE-291) 2026-11-09 23:22:13 -08:00
docs feat(24.7): permanent URLs, /prototype/ retired with redirects (OPE-292); also nginx, Nav and docs for 24.6 (OPE-291) 2026-11-09 23:22:13 -08:00
public feat(24.7): permanent URLs, /prototype/ retired with redirects (OPE-292); also nginx, Nav and docs for 24.6 (OPE-291) 2026-11-09 23:22:13 -08:00
research feat(21.2): Baserow becomes the source of truth for OpenHaven data (OPE-281) 2026-11-05 11:36:57 -08:00
scripts feat(24.7): permanent URLs, /prototype/ retired with redirects (OPE-292); also nginx, Nav and docs for 24.6 (OPE-291) 2026-11-09 23:22:13 -08:00
services/graph-query fix(14.6): filtered queries keep their item, service limits per real client, snapshot date and cache consistency, stricter snapshot validation, pinned image (Q1-Q11) 2026-11-08 12:43:25 -08:00
src feat(24.7): permanent URLs, /prototype/ retired with redirects (OPE-292); also nginx, Nav and docs for 24.6 (OPE-291) 2026-11-09 23:22:13 -08:00
tests feat(24.7): permanent URLs, /prototype/ retired with redirects (OPE-292); also nginx, Nav and docs for 24.6 (OPE-291) 2026-11-09 23:22:13 -08:00
.dockerignore fix(docker): include scripts/*.js in image so prebuild succeeds 2026-07-20 22:48:56 -07:00
.gitattributes chore(24.5): remove orphaned files and dead data (OPE-289) 2026-11-09 20:34:11 -08:00
.gitignore chore(24.5): remove orphaned files and dead data (OPE-289) 2026-11-09 20:34:11 -08:00
astro.config.mjs feat(24.7): permanent URLs, /prototype/ retired with redirects (OPE-292); also nginx, Nav and docs for 24.6 (OPE-291) 2026-11-09 23:22:13 -08:00
bun.lock feat(14.2, 14.3, 14.4, 14.5): Graph Explorer, shared graph query module and read-only query service (OPE-293, OPE-294, OPE-262, OPE-299) 2026-11-07 23:48:53 -08:00
CLAUDE.md feat(21.2): Baserow becomes the source of truth for OpenHaven data (OPE-281) 2026-11-05 11:36:57 -08:00
CNAME Create CNAME 2025-08-15 16:40:06 -07:00
CODEOWNERS feat(21.2): Baserow becomes the source of truth for OpenHaven data (OPE-281) 2026-11-05 11:36:57 -08:00
components.json feat: add Open Protocol Navigator with full component architecture 2026-03-09 22:31:30 -03:00
Dockerfile feat(24.6): a real 404 page, a build version tag, and the build argument for it (OPE-291) 2026-11-09 23:22:04 -08:00
nginx.conf feat(24.7): permanent URLs, /prototype/ retired with redirects (OPE-292); also nginx, Nav and docs for 24.6 (OPE-291) 2026-11-09 23:22:13 -08:00
package-lock.json fix(8.19/OPE-73): repair UTF-8 mojibake corruption in protocol data 2026-07-14 20:39:50 -07:00
package.json feat(14.2, 14.3, 14.4, 14.5): Graph Explorer, shared graph query module and read-only query service (OPE-293, OPE-294, OPE-262, OPE-299) 2026-11-07 23:48:53 -08:00
playwright.config.ts feat: prototype section, i18n (pt-BR), matrix/comparison views, and link fixes 2026-03-13 05:28:10 -03:00
README.md feat(24.7): permanent URLs, /prototype/ retired with redirects (OPE-292); also nginx, Nav and docs for 24.6 (OPE-291) 2026-11-09 23:22:13 -08:00
tsconfig.json feat: add Open Protocol Navigator with full component architecture 2026-03-09 22:31:30 -03:00

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

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 commit bab0eb0; binary; data authority @Enli10ment — see CODEOWNERS). 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 (--apply to write); sync-check is always read-only, and full-regen is 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 (--force overrides, not recommended). Every use requires its own BMAD story and Linear issue, per docs/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.py supplies its fallback/enrichment data, and scripts/audit_xlsx_vs_json.py — wrapped by pipeline-op.py sync-check — is the read-only drift check described above. On macOS, use the Xcode Command Line Tools python3 (not Homebrew) for openpyxl compatibility.
  • Output: src/data/*.json (protocols, affordances, domains, entity-types, attributes, …), validated against src/lib/schemas.ts and 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 /why to /why/ with a relative Location (absolute_redirect off): the container only ever sees plain http behind Coolify's TLS proxy, so an absolute Location would send every redirected click through http://. Tests that follow a navigation accept both forms (urlPath() in tests/fixtures/hydrated.ts), because the local preview server does not redirect.
  • 404. A URL that does not exist is a real 404 with the site's own page (src/pages/404.astro, built to dist/404.html; nginx error_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 from SOURCE_COMMIT (a Docker build argument, declared in the Dockerfile after npm install). Coolify passes it only when Include Source Commit in Build is on for the application (Configuration, Advanced). Without it the tag reads unknown <time>: it still shows a new build went live, just not which commit. Local builds read git 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 one 301 from nginx with the query string kept (rewrite ... permanent; Astro's static redirects would drop it). After a deploy, check them with node scripts/check-redirects.mjs https://openhaven.net (astro preview has 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