Skip to content

About

Every v0 thing in 0-draft, pinned to one wall.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

0-draft.github.io

The 0-draft seal, typeset from the names of its projects

Everything public in the 0-draft org, on one page: https://0-draft.github.io/.

The seal at the top is typeset from the names of the projects below; run the pointer or a finger through it and it redrafts itself. Each project is one row, its name set large; point at it and its screenshot comes along, press Preview and the site opens in a frame over the page. The blackjack and baccarat tables are read live from the casino README, so you can place a bet from here. Without JavaScript the plain seal and every project are still there.

How it works

  • scripts/sync.ts pulls the org's public repos (archived repos, forks, and repos whose description starts with [Retired] or [Merged into ...] are left out), the live region of each README game, and the latest dev.to articles into src/data/. A source that fails keeps its previous file.
  • src/data/groups.ts decides which section a repo is in and what kind of thing it is. A new repo that isn't filed there shows up in a "New" section on the next build.
  • src/lib/projects.ts turns the groups into sections. src/scripts/glyphs.ts typesets the seal on a canvas. src/scripts/site.ts adds the Preview dialog, the screenshot that follows the pointer, the redrafting names, and the switch and fold for the README tables. Neither has dependencies.
  • src/assets/shots/ holds a screenshot per project, named after the repo. scripts/shoot.ts takes the missing ones; --all retakes every one.

CI

  • ci.yml runs on every pull request: Biome, actionlint, astro check, Vitest, a build, and Playwright against that build in Chromium, WebKit, a phone and with JavaScript off.
  • deploy.yml runs the same CI on freshly synced data on every push to main and once a day, then deploys to Pages.
  • claude-review.yml reviews pull requests. It needs a CLAUDE_CODE_OAUTH_TOKEN secret from claude setup-token.
  • shots.yml takes screenshots for new live sites every Monday and proposes them as a pull request. Run it by hand with "retake all" after the sites change.
  • Dependabot proposes npm and Actions updates every Monday, grouped and held for three days after release.

Develop

pnpm install
pnpm sync      # needs network; set GITHUB_TOKEN to avoid rate limits
pnpm dev
pnpm check     # biome + astro check
pnpm test      # vitest
pnpm build
pnpm e2e       # playwright against dist/

Astro 7, plain CSS, Node 24 or newer.

Adding a repo

  1. Add its name to a group in src/data/groups.ts, and its kind to kinds there.
  2. Run node scripts/shoot.ts, or wait for the weekly shots workflow, to get its screenshot at src/assets/shots/<repo>.png.

About

Every v0 thing in 0-draft, pinned to one wall.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages