Public Docusaurus-backed specification for the Pixels packet protocol.
- Publish a human-readable protocol spec website.
- Keep packet definitions in
spec/protocol.yamlas source of truth. - Generate deterministic docs from the same spec.
- Use Nitro behavior as the primary packet reference.
pixel-protocol/
├─ spec/
│ ├─ protocol.yaml
│ └─ protocol.schema.json
├─ tools/
│ └─ generator/
├─ docs/
│ └─ protocol/
│ ├─ client/
│ └─ server/
└─ .github/workflows/deploy.yml
npm install
npm run generate
npm run startnpm run generate: Generate protocol docs fromspec/protocol.yaml.npm run start: Start the local Docusaurus site.npm run build: Build static site output inbuild/.
- Every packet must be defined in
spec/protocol.yaml. - Every packet gets its own generated Markdown file in docs.
- Regenerate docs after any spec update.
GitHub Pages deploy is configured in .github/workflows/deploy.yml.
Before enabling deployment, update:
GH_ORGandGH_REPOenv vars if your GitHub org/repo differs from defaults.