- TypeScript 77%
- CSS 16%
- JavaScript 4%
- HTML 3%
- Docker <1%
portent #
A monorepo for writing specs and other serious text on the AT Protocol.
| Workspace | What |
|---|---|
draft/ |
draft, the editor: a block editor for specs and scholarly writing with suggestions (tracked changes that can be accepted or rejected one by one), comments, and an assistant sidebar that turns an LLM's structured suggestions into reviewable changes. Reusable: hosts choose the block types, the reference sources, and the metadata. Its demo runs with npm run demo. |
natural/ |
Natural, a scholarly document editor (a desktop app through mollusc): tabs of drafts, a library that finds papers and books and cites them, .nat files. |
stan-app/ |
Stan, the app version of stan.computer (a desktop app through mollusc): a spec for the code in a directory, co-designed with an agent over ACP and handed to it to implement; every iteration goes through the spec. |
stan/ |
stan.computer, a forge for specs: the web app, the server that indexes group.standards.* records through Tap, the renderers, the reference catalogue sync. Uses draft as its editor. |
redirect/ |
The old domain, standards.group, redirecting to stan.computer. |
tap/ |
The Tap instance stan's server consumes. |
npm install
npm run dev # stan.computer at http://127.0.0.1:5173 (server on :3000)
npm run demo # the draft demo at http://127.0.0.1:5174
npm test # draft and stan, headless
npm run typecheck
Browser drives (puppeteer-core with the system Chrome) exercise the real
thing: node draft/e2e/demo.mjs against npm run demo, node natural/e2e/drive.mjs
against npm run natural, node stan-app/e2e/drive.mjs against npm run stan-app, node draft/e2e/mobile.mjs (both at phone width), and
node stan/e2e/drive.mjs against a seeded dev index
(node stan/e2e/seed.mts /tmp/portent-e2e/data, then the server with
STANDARDS_DATA=/tmp/portent-e2e/data PORT=3000 node stan/server/main.ts
and cd stan && npx vite).
Styling comes from supram
(@supramundane/supram, a git dependency pinned to a commit until it is on
npm): the leadlight grid, the Empyrean palette, Atkinson Hyperlegible. The
stan server serves it at /supram/… for the rendered pages.
Deployment goes through sm on the
supramundane host; bin/portent.js wraps it: npm run deploy (the site, from
the repo root, where the site's service.json, Dockerfile and compose.yaml
live because its image builds the whole workspace), npm run deploy:redirect,
npm run deploy:tap, npm run deploy:demo. Secrets stay server-side in each
service's .env; deploy pushes .env.prod there first.