What this is built out of, and what each choice buys.
| Thing | Value | Where it is declared |
|---|---|---|
| Language | JavaScript, ES modules (.mjs) |
package.json "type": "module" |
| Runtime | Node.js 20 or newer | package.json "engines" |
| Type checking | TypeScript, on hand-written .d.mts declarations only |
tsconfig.public.json |
| Package name | @homenshum/nodekit |
package.json |
| Binary | nodekit → src/cli.mjs |
package.json "bin" |
There is no build step for the JavaScript. src/**/*.mjs is what ships and
what runs; npm run build:component compiles only the optional Convex component
under src/component/ into dist/.
The .d.mts files next to the .mjs files are hand-written, not generated. That
is why npm run typecheck:public is meaningful: it checks that the declarations
still describe the JavaScript, rather than checking JavaScript against itself.
| Package | Version | Why it is here | What it replaced |
|---|---|---|---|
ajv |
8.20.0 | Validates the 120 JSON Schemas in schemas/ |
a hand-written validator |
ajv-formats |
3.0.1 | date-time, uri and friends for those schemas |
— |
yaml |
^2.9.0 | Parses nodekit.yaml, ownership.yaml, harness.yaml |
— |
pngjs |
^7.0.0 | Decodes browser screenshots so evidence can be checked, not just stored | — |
convex is an optional peer dependency. Nothing in the default path imports
it; the Convex component under src/component/ is opt-in.
Dev dependencies (9) are the test and proof tooling: vitest and convex-test
for the component, playwright and @axe-core/playwright for browser evidence,
pg for the Postgres adapter conformance run, typescript, @types/node,
@edge-runtime/vm.
- No bundler, no transpiler, no framework. Node runs the source.
- No test framework in the main suite.
node --testandnode:assert/strict.vitestappears only for the Convex component, which needs a VM environment. - No ORM and no database in the default path.
createMemoryCaseflowinsrc/lib/caseflow.mjsis plainMaps. SQL is opt-in — seeadapters/postgres/001_caseflow.sql. - No logger.
console.logfor results,console.errorfor failures. - No argument-parsing library.
parseArgsinsrc/cli-main.mjs(line 130) andnode:util's ownparseArgswhere the shape fits.
That absence is the point rather than an oversight: the package is meant to be vendored into a generated application, and every dependency it carries becomes a dependency of every application it generates.
node -e "const p=require('./package.json');console.log(Object.keys(p.dependencies).length,'deps')"
ls schemas/*.json | wc -l # 120
git ls-files src scripts | grep -v '\.test\.' | wc -l