This repository is a monorepo configured with Turborepo and managed via pnpm.
The root package.json pins the toolchain: Node.js through devEngines.runtime (with onFail: "download", pnpm downloads that version when the active one differs) and pnpm through packageManager. The workflows read both from there, so change these versions in package.json only.
apps/: Applications directoryapps/demo/: Next.js demo application styled with the bundled stylesheetapps/demo-tw/: Next.js demo application styled with Tailwind CSSapps/website/: Next.js landing page for the apex domain
packages/: Packages directorypackages/core/: Core library for the comic viewer
pnpm build: Build all workspace packages and applications.pnpm test: Run test suites.pnpm test:package: Packpackages/coreand check the tarball from the TypeScript, Next.js, and Vite projects ine2e/consumers/, installed with npm outside the workspace (needs network access).pnpm typecheck: Run TypeScript type checking across packages.pnpm check: Run linter and formatter checks.pnpm fix: Automatically fix linting and formatting issues.
pnpm install also installs a lefthook pre-commit hook (lefthook.yml) that formats the staged JavaScript, TypeScript, CSS, JSON, Markdown, and YAML files with oxfmt and stages the result. It does not lint, so run pnpm check before pushing.
- Use English consistently for all code comments,
.mddocumentation, commit messages, Issue discussions, and Pull Request titles/descriptions. - Answer the user in the language of their own prose. Quoted logs, code, or UI strings do not decide it. Answer in English when no user prose settles it, such as in a scheduled or CI-started run.
packages/corebuilds its declarations with Oxc through tsdown, because TypeScript 7 has no compiler API fortsc's declaration emit. Oxc reads each file on its own, soisolatedDeclarationsrequires every export to carry the types its declaration needs, such as a component'sJSX.Elementreturn type, andpnpm typecheckreports a missing one.- The code stays within erasable syntax (
erasableSyntaxOnly).
Entries in .agents/skills/* listed in skills-lock.json are vendored: npx skills overwrites them, and the maintenance bot in publira/agents runs npx skills update -p -y weekly and opens a pull request when there is a diff. Do not edit them; a patch is lost at the next update. Reading them for reference is fine. When this repository's policy and a skill disagree, this file wins. .claude/skills/* reaches the same skills through relative symlinks.