Skip to content
joinery / catalog

@joinery/developer-portal

The repo's front door: every markdown file rendered as a wiki, plus what isn't written down — coverage, the project graph, open issues, decisions, audits, workflows and tooling usage.

📦 @joinery/developer-portal

The repo's front door: every markdown file rendered as a wiki, plus what isn't written down — coverage, the project graph, open issues, decisions, audits, workflows and tooling usage.

Under pnpm dev developer-portal it reads the working tree live. The deployed site is a prerendered snapshot of master on GitHub Pages.

Development

CommandWhat it does
pnpm dev developer-portalStart the portal, from the workspace root
pnpm exec nx collect @joinery/developer-portalRebuild the snapshot in .report/: graph, coverage, metrics, docs, usage
pnpm exec nx build-static @joinery/developer-portalnuxt build --prerender, the build that deploys
pnpm exec nx nuxt-prepare @joinery/developer-portalRegenerate .nuxt by hand; Nx already runs it before lint, typecheck, test and build
pnpm exec nx test:e2e @joinery/developer-portalPlaywright over the build: skip link, SEO tags, the published payload, axe on the 404 page
  • Coverage is only as fresh as the last root pnpm test:coverage.
  • build delegates to build-static, so CI builds what deploys.
  • .report/ is gitignored and every page must render without it.

Structure

PathWhat lives there
app/The shell: the layout, Home at /, and app/composables/, which assemble Home's queue and Health, the rail, the status bar and search from several layers
app/components/, app/types/, app/utils/The kit: shared parts such as PageFacts, PageHeader and EmptyState, one type per file, pure helpers
i18n/locales/en.jsonThe interface's copy — see 🔤 Copy
server/routes/embed/data.json.tsThe figures apps/portfolio shows, prerendered — see 📤 The payload
layers/One Nuxt layer per capability — see 🧱 Layers
tools/collect/The collector that builds the snapshot
tools/lib/Node-only helpers: paths, git, the shape checks, the doc-link rewriter

Layers

LayerKindWhat it owns
snapshotCoreThe .report/ artifacts, bundled at build time by one <name>Artifact() util each, and their types
designCoreTokens, shared classes and the Nuxt UI theme
docsCoreLink rewriting and ProseA for rendered markdown
githubCoreBrowser-side reads of GitHub issues
decisions, audits, benchmarksFeatureEach record type's list and pages
projectsFeatureProjects, Architecture and What's new
healthFeatureWork in progress, Coverage, Dependencies
telemetryFeatureTooling usage
workflowsFeatureThe Workflows pages
wikiFeatureDocumentation pages and the nav tree

The rules match huella-legal's: the kit (app/components/, app/types/, app/utils/) uses only itself, cores use themselves and the kit, features also use cores but never another feature. eslint.layerBoundaries in eslint.config.ts enforces it.

  • Cross-layer imports read #layers/<name>/…, resolved by Nuxt and, outside it, by the imports field in package.json.
  • No root shared/: a relative import into it broke the prerendered build (0014).
  • Each layer declares its rail links under nav in its app/app.config.ts; apps.ts groups them into Home, Catalog, Docs, Work and Health.
  • A page reads its data through a use<Page> composable in its layer and lists its sections, each a component in components/<page>/ or named for the layer (wizard/Step.vue → WizardStep).

Copy

The interface's copy is in en.json through $t(), keyed the way huella-legal's are. Specs see keys, not copy: vitest.setup.ts empties the messages.

The payload

The personal site, apps/portfolio, shows figures only this app can compute. It imports none of its code: data.json.ts prerenders /embed/data.json and that site fetches it at build, after this one deploys.

KeyFrom
benchmarksdocs/benchmarks/ through the docs collection: id, title, screenshot path
decisionsThe collected docs artifact: id, number, title, status
workflowsdata/workflows/: each project's map at full and glyph scale, the templates, the lesson count
rulesEnabled and in-house lint rules from the usage artifact
specsSpec files across every project, from the metrics artifact

Its spec pins the keys, since renaming one blanks that site's figures without failing its build.

What each page reads

PageReads
DocumentationEvery tracked *.md, read in place from the workspace root by content.config.ts
Architecture, ProjectsThe collected Nx graph, project metrics, and deleted projects from git log
Decisionsdocs/decisions/NNNN-<slug>.md frontmatter
AuditsEvery table in docs/audits/ with an ID and a Status column
Benchmarksdocs/benchmarks/*.md frontmatter and body, and the screenshots beside them in images/
Workflowsdata/workflows/, read on every request. Under pnpm dev the wizard and Settings page write it
Work in progressOpen issues, fetched from GitHub in the reader's browser
What's newEvery CHANGELOG.md plus unreleased commit counts
Engineering healthCoverage, pnpm audit, outdated deps and the invariant findings
Tooling usagedata/telemetry/ CSVs, enabled lint rules and eslint-disable comments

Docs link to files the GitHub way. remarkDocLinks rewrites each link at parse time: a markdown target becomes a route, anything else a link to the repo. A broken link is counted on Home, never a build failure. Fix a link that breaks here in docLinks.ts, not in the doc.

@nuxt/content lower-cases every route, so anything joining a route to a repo path goes through toCollectionPath.

The wiki tree

Derived from paths alone, so a new doc appears on its own. Changelogs, dated audits, numbered decisions and benchmark entries are left out of the tree since each has its own page; CLAUDE.md files are left out of the collection and link to GitHub. ⌘K search loads on first open, not in the layout, which kept it out of every page's payload.

GitHub reads

Issues are fetched unauthenticated from the browser, so the site needs no server or secret. The limit is 60 requests an hour per IP. Board placement (projectItems) is GraphQL-only and needs a token, so it isn't shown.

The deployed site is a snapshot

deploy-developer-portal.yml runs on every push to master or by hand: pnpm test:coverage, then collect, then build-static, then it uploads the build as the developer-portal-site artifact. The portfolio's deploy publishes that artifact at xifre.dev/portal/, so the portal goes live only when that run succeeds. Cloudflare only hosts: the build runs in Actions, and the site has no Functions. huella-legal's Storybook is built into the same output under /huella-legal-storybook/.

  • The old xfontr-monorepo Pages project gets only a _redirects file, sending every path to the same path under /portal/.
  • Every page is as old as the last deploy, except issues (live) and workflows (as old as the last committed pnpm workflow:sync).
  • The site is served from /portal/ under SITE_URL in nuxt.config.ts, the personal site's origin, so the view switch can animate between the two. Canonical URLs are built on both.
  • NUXT_PUBLIC_REPO_URL is baked in at build time, derived by the workflow.
  • Cloudflare Pages rejects any file over 25 MiB, which is why the Architecture map is drawn from projects.json rather than Nx's exported graph viewer.
  • The project overrides its production Nx input in package.json so any *.md or data/workflows/ change makes it affected, and a runtime input over snapshotStamp.ts hashes the gitignored .report/.

Search and speed

ConcernWhere
Title, description, canonicaluseSeoMeta on the dashboard; nuxt-seo-utils signs the title with the site name
IndexingNone: one /** route rule in nuxt.config.ts sets noindex, follow on every page, so links out are still followed
First paintStyles inlined; no script preload or chunk prefetch; links prefetch on interaction

Checks it surfaces

tools/lib/invariants.ts runs on every collect and shows findings on Home. It blocks nothing.

CheckFlags
pnpm invariants:check --jsonEverything the invariants gate reports
compareAuditShapeAn audit with a bad filename, missing frontmatter, a reused ID or an unknown status
compareDecisionShapeA decision with a bad filename, reused number, unknown status:/decision:, no issue: or a dangling supersededBy:
compareWorkflowShapeA workflow file that breaks the workflow rules

Design system

The design layer is the only place a value is chosen. Components use Nuxt UI's semantic roles and Tailwind's scale; ESLint rejects bracketed values.

PieceWhereWhat it is
--tone-good, -warn, -badmain.cssThe three status colours; toneClass maps a Tone to its class
.data-table, .numericmain.cssEvery table
.embedded-reportmain.cssThe frame around the coverage report
variant="flush" on UCardapp.config.tsA card with no body padding
--state-*, --stage-*workflows.cssWorkflow colours, kept with that feature
--usage-*telemetry.cssTooling-usage colours, kept with that feature

The three status colours were validated as a set for contrast and colour-blind separation. Re-run the dataviz skill's validator before changing one.

ESLint also rejects raw palette classes (bg-slate-500, text-white) everywhere.

The identity

Direction E, approved in 0039, is one system in main.css, whose tokens apps/portfolio copies, set on :root so Nuxt UI's overlays take it too. Nothing is set under 12 px.

PieceWhat it is
paper-*, terracotta-*The palette: warm neutrals and the one accent. Read through the roles, never as classes
--font-display, --font-sans, --font-monoFraunces, IBM Plex Sans, IBM Plex Mono
text-statement, title, section, headingThe display steps; with text-2xl, base, sm and xs they make the scale's eight
--ui-primaryTerracotta 600 in light, 300 in dark
--tone-*The status colours, re-picked for these surfaces with the dataviz validator
surface-inkA fill that stays dark in both modes, such as the developer rail, with its own tones
<mark>A marked word takes the accent in italic
data-figureA count or percentage that leads a panel: tabular, semibold
data-scroll-xA row or table that scrolls sideways fades at its right edge
View transitionsEvery page change crossfades in 0.15 s
data-prose, data-readmeRendered markdown keeps a 72-character measure; a README drops its own # title

Every text role clears 4.5:1 on every surface. Each cell is light / dark:

Textbgbg-mutedbg-elevatedbg-accented
dimmed, muted5.9 / 6.75.3 / 7.36.4 / 6.34.8 / 5.8
toned12.9 / 12.011.7 / 13.014.0 / 11.310.5 / 10.5
default14.0 / 13.512.6 / 14.615.1 / 12.611.3 / 11.7
highlighted14.9 / 16.113.5 / 17.416.1 / 15.112.0 / 14.0
primary5.7 / 7.15.2 / 7.76.2 / 6.64.6 / 6.2
--tone-good6.0 / 5.55.4 / 6.06.5 / 5.24.8 / 4.8
--tone-warn6.9 / 5.56.3 / 5.97.5 / 5.15.6 / 4.7
--tone-bad5.9 / 5.45.3 / 5.86.4 / 5.04.7 / 4.7
inverted on bg-inverted16.1 / 14.9
Text on surface-inkFillbg-elevated
muted7.36.7
default16.114.9
highlighted17.416.1
primary7.77.1
inverted on bg-primary7.7
--tone-good, -warn, -bad, lowest5.04.6

Boundaries

type:app, scope:internal. Depends only on @joinery/configs; nothing depends on it.