Skip to content

About

The Ostrom website, documentation and blog, served at ostrom.run.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

54 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Ostrom. Agents propose. Your team decides.

Ostrom runs a company's AI coding agents in the cloud and makes them follow the team's rules.
Every change they make leaves a receipt, and the few that matter wait for a person's yes.

Website · Docs · Discussions · Contributing · Security

CI Coverage: 100% enforced License Version: pre-1.0

What this is

The public website of Ostrom, ostrom.run: the landing page, pricing, docs, blog, changelog, security, open source and legal pages. Next.js (App Router) in strict TypeScript, exported as static files and served by nginx from a container image. Nothing renders at request time.

Quick start

git clone https://github.com/ostrom-hq/ostrom-site.git && cd ostrom-site
pnpm install
pnpm dev                 # http://localhost:3000

How it fits

flowchart LR
  dev(["Developer"]) --> cli["ostrom CLI"]
  cli -- "launches, under the rules" --> agent[["Coding agent<br/>Claude Code, Codex, ..."]]
  agent -. "every action, through hooks" .-> cli
  cli -- "sessions, gate requests" --> server["Ostrom server"]
  server --- db[("PostgreSQL")]
  server -- "reads the diff, runs checks" --> gh["GitHub"]
  server -- "a yes is needed" --> person(["Approver"])
  person --> web["Web console"] & app["Mobile app"]
  web & app -- "API" --> server
  server -- "signed receipt" --> receipt[/"Receipt"/]
  core{{"ostrom-core<br/>contract, workflow model, receipts"}} -.- cli & server & web & app
  helm["Helm chart"] -. "deploys" .-> server
  site["ostrom.run<br/>docs"] -. "documents" .-> cli & server & web
  classDef here fill:#8E1B3A,stroke:#8E1B3A,color:#FFFFFF
  class site here
Loading

Status

Ostrom is before its first public release. Until then the site is built with NEXT_PUBLIC_LAUNCHED unset: search engines are asked not to index it and it links to no repository.

Build and test

The steps of the single CI job ci, in order (.github/workflows/ci.yml; a draft pull request runs no CI):

pnpm install --frozen-lockfile
pnpm typecheck && pnpm lint && pnpm format:check   # types, lint, formatting
pnpm test:coverage                                 # Vitest, 100 % lines, branches, functions, statements
(cd docs-tools && npm ci && npm test && npm run lint:docs)  # the docs tooling and content
pnpm build && pnpm links                           # static export in out/, internal links and anchors
docker build -t ostrom-site .                      # the image Playwright and Lighthouse run against
PLAYWRIGHT_BASE_URL=http://localhost:8080 pnpm e2e # Playwright, desktop and mobile, axe WCAG 2.2 AA
pnpm exec lhci autorun --config=lighthouserc.cjs   # every page of the sitemap, 95 minimum per category

Run locally

pnpm dev                 # http://localhost:3000, with hot reload
pnpm build && pnpm serve # the static export, served like nginx does
docker run -p 8080:8080 docker.io/ostromhq/ostrom-site:main

Build-time configuration (public URLs only, no secret): NEXT_PUBLIC_SITE_URL (default https://ostrom.run), NEXT_PUBLIC_APP_URL (https://app.ostrom.run, where sign-up and sign-in live), NEXT_PUBLIC_API_URL (https://api.ostrom.run), and NEXT_PUBLIC_LAUNCHED: unset until the public launch, the site asks search engines not to index it (a noindex meta tag on every page and an X-Robots-Tag header from nginx on every file; robots.txt stays open so crawlers can read them, and announces the sitemap only after the launch) and links to no repository; 1 opens all of it.

Performance

pnpm build ends with scripts/defer-runtime.ts: every exported page is complete HTML, and Next.js's runtime (about 150 kB compressed) starts after load and the largest paint, at the first idle moment, or at the first touch, key press or focus. A script requested before the largest paint counts in the mobile LCP Lighthouse simulates (about a second more); an end-to-end test checks the order. Until then the controls are plain HTML: a button pressed or a select changed in that moment is held and played again once <html data-runtime="ready"> marks that React runs the page. The end-to-end tests wait for that mark (e2e/test.ts).

Image

main publishes docker.io/ostromhq/ostrom-site:<sha> and :main: the exact image Playwright and Lighthouse tested. It listens on port 8080 as an unprivileged user and answers GET /healthz. The same source built with NEXT_PUBLIC_LAUNCHED=1 is published as :launched-<sha> and :launched, for the day of the launch: Lighthouse audits that build (on localhost URLs), and the published one passes a smoke test (health, indexable, repository links) before it is pushed.

Layout

  • src/app/: the pages (App Router). src/components/: the components. src/lib/: logic, tested.
  • src/i18n/: every text. English today; French later with the same keys. The marketing sentences are the locked value proposition, word for word.
  • src/styles/tokens.css: the brand tokens (Signal, garnet #8E1B3A), copied from the brand system.
  • scripts/: build tools (link checker, static server); their logic lives in scripts/lib/ and is tested.
  • e2e/: Playwright specs.

Repositories

Repository What it is License
ostrom-core Shared Kotlin Multiplatform library: API contract, workflow model, signed receipts Apache-2.0
ostrom-cli The ostrom command line: runs coding agents under the team's rules Apache-2.0
ostrom-server The server: gates, receipts, policies, the API Apache-2.0 + ee
ostrom-web The web console Apache-2.0 + ee
ostrom-app The iOS and Android app Apache-2.0 + ee
ostrom-e2e Full-stack end-to-end and load tests Apache-2.0
ostrom-site (this one) ostrom.run: website, documentation, blog Apache-2.0, texts CC BY 4.0
ostrom-helm Helm chart and Docker Compose for self-hosting Apache-2.0

Contributing

Contributions are welcome. Read CONTRIBUTING.md (setup, tests, Conventional Commits, DCO), the Code of Conduct, and SECURITY.md to report a vulnerability privately. Questions go to Discussions; help options are in SUPPORT.md.

License

Apache License 2.0, see LICENSE and NOTICE. You can use it in any project, open source or not.

The texts (documentation, blog, changelog, page copy) are under CC BY 4.0, see LICENSE-CONTENT. The legal texts, the Ostrom name and the logo are not covered.

About

The Ostrom website, documentation and blog, served at ostrom.run.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages