This directory contains minimal consumer-oriented examples for the published validator HTTP surface.
If you do not know which file to open first, start with recipe-index.json. It is the machine-readable navigator for this directory and groups every non-Markdown artifact by runtime, consumption path, and common integration task. If you need to validate that navigator before using it, pair it with ../../schemas/client-recipe-index.schema.json or the Ajv recipes in this directory.
Use groups[*].recommended_start when you already know the runtime lane you want. Use task_entrypoints[*] when you know the job to do but not yet the best file to open.
- Live
POST /api/validate:curl-validate-single.sh - Live
POST /api/validate/batch:curl-validate-batch.sh - Live
POST /api/validate/fix:curl-validate-fix.sh - Live
GET /api/validate/gatesandGET /api/validate/stats:curl-get-gates.shandcurl-get-stats.sh - Node live-client lane:
node-validate-single.mjs - Source-level TypeScript/Zod navigator lane:
ts-client-recipe-index.tsandzod-parse-client-recipe-index.ts - Source-level archive projection lane:
ts-parse-archive-bundle.tsandzod-parse-archive-bundle.ts - Source-level request reading:
ts-parse-validate-requests.ts - Source-level response reading:
ts-parse-validate-responses.ts - Compact reference discovery:
ts-envelope-family-reference.ts - Direct OpenAPI reading and codegen:
ts-openapi-route-summary.tsandopenapi-generate-validator-types.mjs - Raw-schema validation and rejection:
ajv-validate-capsule.mjs,ajv-validate-client-recipe-index.mjs,ajv-reject-invalid-client-recipe-index.mjs, andajv-reject-invalid-capsules.mjs - Installed-package Ajv navigator lane:
cjs-package-ajv-validate-client-recipe-index.cjs,esm-package-ajv-validate-client-recipe-index.mjs, andts-package-ajv-validate-client-recipe-index.ts - Python full-route bridge:
python-live-validator-client.py - Python navigator lane:
python-client-recipe-index.py - Python archive parsing lane:
python-parse-archive-bundle.py - Installed-package runtime lane:
cjs-package-live-validator-client.cjs - Installed-package navigator lane:
cjs-package-client-recipe-index.cjs - Installed-package TypeScript lane:
ts-package-live-validator-client.ts - Installed-package archive projection lane:
ts-package-parse-archive-bundle.ts - Integrity proof:
recompute-integrity-seal.mjs
curl-validate-single.shcurl-validate-batch.shcurl-validate-fix.shcurl-get-gates.shcurl-get-stats.sh
node-validate-single.mjsnode-validate-batch.mjsnode-validate-fix.mjsnode-get-gates.mjsnode-get-stats.mjs
ts-client-recipe-index.tszod-parse-client-recipe-index.tsts-parse-archive-bundle.tsts-capsule-summary.tszod-parse-archive-bundle.tszod-parse-capsule.tsts-openapi-route-summary.tsopenapi-generate-validator-types.mjsts-envelope-family-reference.tsts-route-behavior-reference.tsts-build-validate-request.tsts-build-validate-batch-request.tsts-build-validate-fix-request.tsts-live-validator-client.tsts-parse-validate-requests.tszod-parse-validate-request.tszod-parse-validate-batch-request.tszod-parse-validate-fix-request.tsts-parse-validate-responses.tsts-parse-error-responses.tsts-parse-support-responses.tszod-parse-validate-response.tszod-parse-validate-fail-response.tszod-parse-validate-batch-response.tszod-parse-validate-fix-response.tszod-parse-error-responses.tszod-parse-support-responses.ts
ajv-validate-capsule.mjsajv-validate-client-recipe-index.mjsajv-validate-validator-envelope.mjsajv-validate-archive-bundle.mjsajv-validate-schema-bundles.mjsajv-reject-invalid-archive-bundles.mjsajv-reject-invalid-client-recipe-index.mjsajv-reject-invalid-capsules.mjsajv-reject-invalid-validator-envelopes.mjscjs-package-ajv-validate-contracts.cjscjs-package-ajv-validate-archive-bundle.cjscjs-package-ajv-validate-schema-bundles.cjscjs-package-ajv-reject-invalid-archive-bundles.cjscjs-package-ajv-reject-invalid-validator-envelopes.cjscjs-package-ajv-reject-invalid-capsules.cjscjs-package-ajv-validate-client-recipe-index.cjscjs-package-ajv-reject-invalid-client-recipe-index.cjsesm-package-ajv-validate-contracts.mjsesm-package-ajv-validate-archive-bundle.mjsesm-package-ajv-validate-client-recipe-index.mjsesm-package-ajv-validate-schema-bundles.mjsesm-package-ajv-reject-invalid-archive-bundles.mjsesm-package-ajv-reject-invalid-client-recipe-index.mjsesm-package-ajv-reject-invalid-capsules.mjsesm-package-ajv-reject-invalid-validator-envelopes.mjsts-package-ajv-validate-contracts.tsts-package-ajv-validate-archive-bundle.tsts-package-ajv-validate-schema-bundles.tsts-package-ajv-reject-invalid-archive-bundles.tsts-package-ajv-reject-invalid-validator-envelopes.tsts-package-ajv-reject-invalid-capsules.tsts-package-ajv-validate-client-recipe-index.tsts-package-ajv-reject-invalid-client-recipe-index.ts
recompute-integrity-seal.mjsesm-package-recompute-integrity-seal.mjs
python-client-recipe-index.pypython-parse-archive-bundle.pypython-contract-reference.pypython-openapi-reference.pypython-live-validator-client.pypython-recompute-integrity-seal.pypython-validate-single.pypython-validate-batch.pypython-validate-fix.pypython-get-gates.pypython-get-stats.pypython-parse-validate-responses.pypython-parse-error-responses.pypython-parse-support-responses.py
cjs-package-capsule-summary.cjscjs-package-client-recipe-index.cjscjs-package-contract-reference.cjscjs-package-openapi-codegen.cjscjs-package-openapi-reference.cjscjs-package-error-responses.cjscjs-package-live-validator-client.cjscjs-package-validate-request.cjscjs-package-support-responses.cjscjs-package-validate-response.cjsesm-package-capsule-summary.mjsesm-package-client-recipe-index.mjsesm-package-contract-reference.mjsesm-package-openapi-codegen.mjsesm-package-openapi-reference.mjsesm-package-error-responses.mjsesm-package-live-validator-client.mjsesm-package-validate-request.mjsesm-package-support-responses.mjsesm-package-validate-response.mjsts-package-contract-reference.tsts-package-client-recipe-index.tsts-package-parse-archive-bundle.tsts-package-openapi-codegen.tsts-package-openapi-reference.tsts-package-error-responses.tsts-package-live-validator-client.tsts-package-support-responses.tsts-package-validate-responses.tsts-package-validate-request.tsts-package-parse-validate-requests.tsts-package-validate-batch-request.tsts-package-validate-fix-request.ts
- These examples assume
N1HUB_BASE_URLandN1HUB_TOKENare set. - They are intentionally small and public-safe.
- They demonstrate route usage, not deployment-specific infrastructure.
- The TypeScript recipes demonstrate source-level consumer usage of the published projection layer under
projections/, direct strongest-surface OpenAPI reading fromopenapi/validate.openapi.json, and repo-local OpenAPI type generation throughopenapi-typescript. - The source-level TypeScript and Zod recipes now cover the published client-recipe navigator as typed contract data, single, batch, and fix
validateenvelopes, request-family building plus sample-driven typed/parsing paths, a direct OpenAPI route-summary path, a direct OpenAPI code-generation path, a compact typed envelope-family reference layer, a compact typed route-behavior reference layer, a typed live-client bridge for all published validator routes backed by shared route constants plus the boundedstatsquery path, the full published pass/fail/batch/fix response family, the publishedgates/statssupport responses, and the bounded shared generic, unauthorized, forbidden, conflict, and rate-limit error envelopes plus the route-specific stats-computation failure sample. - The package recipes demonstrate CommonJS, ESM, and TypeScript consumption after
npm run build:projectionsor from a packed artifact installed into a fresh project. - The package recipes and the source-level TypeScript navigator include direct consumption of
examples/client/recipe-index.json, so installed-package and typed repo-local consumers can recover runtime-lane starts and task entrypoints without first reading the repo checkout. - The package recipes also cover direct installed-package OpenAPI reading and OpenAPI type generation across CommonJS, ESM, and TypeScript consumer styles, runtime request-family parsing, TypeScript typed reading plus typed single/batch/fix request construction, installed-package CommonJS, ESM, and TypeScript live-client bridges for all published validator routes backed by shared route constants plus the bounded
statsquery path, validator pass/fail/batch/fix response families, compact JSON contract references including the validator envelope-family map and route-behavior summaries, validator support responses, shared error envelopes plus the route-specific stats-computation failure sample, and raw capsule assets in addition to projection exports. - The raw-schema recipes demonstrate direct Ajv validation against published schema files, the client-recipe navigator schema, the archive-bundle portability schema, single-file schema bundles, package-exported schema assets across CommonJS, ESM, and TypeScript consumer styles, and intentionally invalid archive, client-recipe navigator, capsule, and validator-envelope fixtures.
- The integrity recipes demonstrate how to recompute
integrity_sha3_512over the published four-root payload and how to repair the intentionalG16teaching example without private runtime helpers. - The shell, Node, and Python live-route recipes together now cover all published validator routes:
validate,batch,fix,gates, andstats, including the boundedlimitquery path onstats. - The Python recipes demonstrate non-Node consumption of the published client-recipe navigator, archive-bundle sample, compact JSON references, the strongest-source OpenAPI document, the published validator envelope-family map, a reusable live-client bridge backed by the published route pack, validator-envelope request flows, validate/error/support response parsing including the route-specific stats-computation failure sample, live support-route reads, and public seal proofs from a repo checkout or extracted packed artifact.