Skip to content
bugnet-shPublic

About

The bugnet.sh website.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

bugnet-website

The Bugnet web pages: the session page, where a person reads what happened in a sandbox run from a link and a key, and the bugnet.sh site.

Layout

  • packages/brand: design tokens (tokens.css), the self-hosted fonts, the logo and icon, and the contrast check every colour pair must pass.
  • packages/session-page: the session page: it reads a session link and its key, asks the sessions route, and shows the running or ended session with its map and commands. pnpm dev builds it and serves it with a fake sessions route, printing one link per sample scenario.
  • packages/site: the bugnet.sh site, a Next.js static export to out/, with out/headers.txt holding each page's security headers. pnpm dev:site runs it; start the fake stats feed with pnpm --filter @bugnet/site exec tsx scripts/fake-stats.ts (port 8461). Its pages are /, /cloud, /docs, /stats, /pitch, /terms and /privacy. /cloud shows one card per server the router can start a package on, from the feed's servers[]. /docs is one Markdown file per page in content/docs, listed in lib/content/docs.ts; the legal text is in content/legal. /pitch is the pitch deck (components/pitch), noindex and not in the sitemap. Prices come only from the live /api/stats feed; until it answers, skeletons hold their place.
  • The docs pipeline: before next build, pnpm build writes the search index (public/search-index.json), /llms.txt, /llms-full.txt and one /docs/<page>.md per page (scripts/llms.ts) and the share images; scripts/postbuild.ts then writes each page's CSP. The landing's install lines are read from content/docs/install.md.
  • Deploying bugnet.sh: the Caddy config, systemd unit and deploy script live in the private bugnet-sh/internal repository, under deploy/website.

Commands

pnpm install
pnpm test        # vitest
pnpm typecheck   # tsc in every package
pnpm lint        # eslint and prettier --check
pnpm format      # prettier --write
pnpm contrast    # WCAG contrast of every text/surface token pair
pnpm dev         # session page dev server
pnpm dev:site    # site dev server; /api/stats goes to 127.0.0.1:8461
pnpm build       # build every package

Rebuild the fonts with packages/brand/scripts/fonts.sh; sources and licenses are in packages/brand/fonts/SOURCES.md.

Design

In the main Bugnet repository: the session page in docs/website/session-page-ui.md and docs/website/session-page.md; the site and stats page in docs/website/site-and-stats.md; the landing in docs/website/landing-v2.md; the docs' look, Markdown syntax and build rules in docs/website/docs-v3.md; the decisions, /cloud and live prices among them, in docs/founder-decisions/website.md.

About

The bugnet.sh website.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages