Read the repository instructions and the current task before using this page. Commands below are non-production unless their warning says otherwise.

The authoritative published reference for the current Packbase SDK and REST API is docs-sdk.packbase.app.

Wild HQ site

NeedCommand or path
Installpnpm install --frozen-lockfile
Start background dev serverpnpm exec astro dev --background
Server statepnpm exec astro dev status
Server logspnpm exec astro dev logs
Stop serverpnpm exec astro dev stop
Type and content diagnosticspnpm check
Production buildpnpm build
Handbook sourcesrc/content/handbook/pages
Handbook topicssrc/content/handbook-tags.yml
Instinct sourcesrc/content/instincts
Site identity and contactsrc/data/site.ts
Operational governance noticesrc/data/siteStatus.ts

Packbase web

The current repository declares a pnpm lockfile but invokes Bun inside some scripts. Install with the locked pnpm dependency graph and run current scripts with Bun.

NeedCommand or path
Installpnpm install --frozen-lockfile
Development appbun run dev
Storybookbun run storybook
Full readiness suitebun run check
Lintbun run lint
Typesbun run typecheck
Non-writing format checkbun run format:check
Tests, including Storybook Chromium projectbun run test
Build applicationbun run build
Build Storybookbun run build-storybook
Extract Lingui messagesbun run lingui:extract
Cloudflare previewbun run preview
Cloudflare deploybun run deploy — production authority required
Routessrc/routes
Generated route treesrc/routeTree.gen.ts — do not edit
Shared UIsrc/components/ui
Feature UIsrc/components/<feature>
Packbase hookssrc/hooks/packbase
Stable hook exportssrc/hooks/use-packbase.ts
Localessrc/locales/{locale}
Cloudflare Workerworker/index.ts

Packbase server

Run these from the packbase repository root.

NeedCommand or path
Installpnpm install --frozen-lockfile
Development serverpnpm --dir apps/server dev
Production-style processpnpm --dir apps/server start — use an identified environment
Validate route tablepnpm --dir apps/server routes:check
Print route tablepnpm --dir apps/server routes:list
Update intentional path snapshotpnpm --dir apps/server routes:snapshot
Typecheckpnpm --dir apps/server check-types
Testspnpm --dir apps/server test
Lintpnpm --dir apps/server lint
Non-writing format checkpnpm --dir apps/server format:check
Generate Prisma clientpnpm --dir apps/server prisma:generate
Sync a named disposable databasepnpm --dir apps/server prisma:push — mutating
Destructive schema pushpnpm --dir apps/server migrate — accepts data loss and omits SQL migration deployment; never a complete release procedure by itself
Server entryapps/server/src/index.ts
Route registryapps/server/src/routes/index.ts
HTTP coreapps/server/src/http
Domain routesapps/server/src/routes/<domain>
Domain schemasapps/server/prisma/schema
Boot-time data workapps/server/src/db/run-on-boot
Background jobsapps/server/src/lib
Example environment namesapps/server/.env.example

Git quick check

Before editing or formatting in any checkout:

git status --short

Before hand-off:

git diff --check

These commands do not replace repository tests or review.