platformkit — the layers inside the public repository

platformkit — the layers inside the public repository An architecture diagram generated by Archify. design · two themes · tokens · CSS · ui/ and design/ — the browser half design two themes · tokens · CSS ui/page · ui/screens · Chrome · View · Serve · Describe · ui/ and design/ — the browser half ui/page · ui/screens Chrome · View · Serve · Describe ui/style · ui/css · ui/icon · ClassList · Sheet IR · 27 glyphs · ui/ and design/ — the browser half ui/style · ui/css · ui/icon ClassList · Sheet IR · 27 glyphs ui/components · 41 Props → Node · Gallery · ui/ and design/ — the browser half ui/components 41 Props → Node · Gallery ui · Compose · Assets · Export · ui/ and design/ — the browser half ui Compose · Assets · Export admin · audit · notification · shell · record · mail · modules/ — contracts · internal · module.go admin · audit · notification shell · record · mail tenant · user · auth · the identity chain · modules/ — contracts · internal · module.go tenant · user · auth the identity chain task · billing · content · site · file · one rest.Spec each · modules/ — contracts · internal · module.go task · billing · content · site · file one rest.Spec each kit/app · kit/config · kit/module · Load · Validate · New/Run · roles · kit/ — the kernel kit/app · kit/config · kit/module Load · Validate · New/Run · roles kit/httpx · chi + huma · middleware · Auth · Resource · kit/ — the kernel kit/httpx chi + huma · middleware · Auth · Resource kit/db · kit/tenancy · Tx[Tenant] · Tx[System] · Migrate · kit/ — the kernel kit/db · kit/tenancy Tx[Tenant] · Tx[System] · Migrate kit/rest · kit/crud · Spec.Mount · five routes · Schema · kit/ — the kernel kit/rest · kit/crud Spec.Mount · five routes · Schema kit/health · kit/limit · kit/problem · probes · shared limits · RFC 9457 · kit/ — the kernel kit/health · kit/limit · kit/problem probes · shared limits · RFC 9457 kit/events · kit/jobs · outbox · Relay · Consume · Scheduler · kit/ — the kernel kit/events · kit/jobs outbox · Relay · Consume · Scheduler apps/platformkit · run · bootstrap · start · apps/ · tools/ · migrations/ apps/platformkit run · bootstrap · start tools · migrations/ · locbudget · designexport · foundation SQL · apps/ · tools/ · migrations/ tools · migrations/ locbudget · designexport · foundation SQL app.New(mods) · Run buildAPI · boot gates db.Lazy per request crud over Tx[Tenant] events.Publish in the tx rest.Spec.Mount Routes · Auth db.Migrate (owner) api.Resources() admin: page.Serve · screens.Mount Tokens · CSS declared classes ClassLists() ui.Export ui/ and design/ — the browser half modules/ — contracts · internal · module.go kit/ — the kernel apps/ · tools/ · migrations/

Contracts only

  • • scripts/check_imports.sh fails any import of another module's non-contracts package
  • • Cross-module dependencies are interfaces supplied as typed Deps in main

Budgets

  • • loc-budget.json holds a ceiling per bucket; packages-budget.json caps first-party packages in the binary
  • • A pull request that exceeds a ceiling fails; raising one is an owner commit

One stylesheet

  • • ui.Compose folds tokens, roles, component lists and a consumer's Extra into one Sheet
  • • htmx is the only third-party byte the browser runs