Files
sitekit/package.json
T
Mao NakamotoandClaude Opus 5 1b3a6b4a93 feat: sitekit v0.1.0 — a website as data
Extracted from substrata's hosted-site model, per orangecat ADR-0003 (the
Site Factory). Three things ship:

- The closed section union (hero, prose, stats, meter, cards, definitions,
  index, table) with Zod as the SSOT — every TS type is inferred, and
  validateSite() returns path-addressed errors a generator can act on.
  Structural rules are in the schema: hero only first, no duplicate paths,
  no index entry pointing at a missing anchor.
- One set of React renderers emitting semantic utility classes only; no
  colours, faces or radii ship. The single framework seam is an injectable
  Link component defaulting to a plain anchor, so static sites and Next
  apps consume the same package.
- Provenance: a sidecar keyed by JSON path (scraped/operator/inferred/
  not-found). assertDeliverable() throws on any inferred field, which turns
  'we fabricate no facts' from a promise into a check, and not-found makes
  unknown distinct from empty.

Tests import the package by name so a broken exports map fails in CI.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AZCNYHwjEeqxNpYCUk6Yna
2026-08-28 09:13:38 +02:00

67 lines
1.6 KiB
JSON

{
"name": "sitekit",
"version": "0.1.0",
"description": "A website as data: a closed union of section shapes validated at runtime, one set of React renderers, and per-field provenance so a generated site can prove it fabricated nothing.",
"license": "MIT",
"author": "Mao Nakamoto",
"homepage": "https://github.com/bitbaum/sitekit#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/bitbaum/sitekit.git"
},
"bugs": {
"url": "https://github.com/bitbaum/sitekit/issues"
},
"keywords": [
"site-generator",
"content-model",
"sections",
"zod",
"react",
"headless-cms"
],
"type": "module",
"sideEffects": false,
"engines": {
"node": ">=18"
},
"files": [
"dist"
],
"exports": {
".": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"./react": {
"types": "./dist/react/index.d.ts",
"default": "./dist/react/index.js"
}
},
"scripts": {
"build": "tsc -p tsconfig.json",
"lint": "eslint .",
"typecheck": "tsc -p tsconfig.json --noEmit",
"test": "node --test test/*.test.js",
"verify": "npm run lint && npm run typecheck && npm run build && npm test",
"prepare": "npm run build"
},
"dependencies": {
"zod": "^4.0.0"
},
"peerDependencies": {
"react": ">=18"
},
"devDependencies": {
"@eslint/js": "^9.39.5",
"@types/node": "^22.10.2",
"@types/react": "^19.0.0",
"eslint": "^9.39.5",
"globals": "^15.15.0",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"typescript": "^5.8.2",
"typescript-eslint": "^8.67.0"
}
}