@teakit/napi

Preserve the public identity boundaries: the product and repository are @teakit/napi, Zig users import napi, and command-line users install or run napikit.

Workflow

  1. Read AGENTS.md, skills/llms.md, and the relevant accepted spec.
  2. Identify the affected surface: runtime, build integration, CLI, docs, or release tooling.
  3. Load only the matching reference pages below. Start with a maintainer reference for repository work, then open detailed guides only when needed.
  4. Add or update tests before changing behavior.
  5. Keep public docs, scripts, and CI aligned with the implementation.
  6. Run the narrowest checks while iterating, then the canonical checks before handoff.

Reference routing

Treat every references/*.md label below as a local path relative to this file. Its link points to the corresponding stable public documentation route.

Maintainer references

Getting started

Authoring addons

Async work

Build and release

API reference

Guardrails

  • Use @teakit/napi for product and repository branding; reserve napikit for the CLI package, executable, and commands.
  • Do not rename the Zig package from napi or the npm CLI from napikit.
  • Do not change public Zig APIs, CLI commands, generated package layouts, supported targets, registry, or access level without explicit approval.
  • Keep bunup and public npmjs publishing unless a proposal explicitly replaces them.
  • Keep public Rspress entry files at skills/ and detailed package guidance in skills/teakit-napi/references/; internal documents under docs/ are not site pages.
  • Keep the public documentation origin https://napi.teakit.org synchronized across Rspress, README, skills/llms.md, and npm package metadata.
  • Keep the canonical source repository https://github.com/teakit/napi synchronized across Rspress, README, skills/llms.md, CLI scaffolding, and npm package metadata.
  • Preserve the public documentation routes declared in rspress.config.ts when reorganizing reference files.
  • Use Biome for supported files and zig fmt for Zig. Do not introduce another formatter, linter, package manager, or test runner.

Verification

bun run check
bun run typecheck
bun run test
bun run build
bun run docs:build