Run Orochia locally in five commands, sign in with the seeded accounts, start the admin console, and run the quality gates.
Getting Started
Orochia is a TypeScript monorepo (npm workspaces): the Next.js web app in apps/web and three
packages — db (Drizzle schema, migrations, seed), media (Bunny Stream, Tus, signed URLs) and
payments (gateway adapters, ledger).
1. Prerequisites
2. Run it
npm run setup is idempotent. OROCHIA_DEMO_MODE=true (the .env.example default, ignored in production) lets
the login page offer the seeded accounts and settles unlocks immediately when no payment gateway is configured.
3. Seeded accounts
These exist only in the development seed — production starts empty. The Development guide describes what each
account demonstrates and the database commands (db:status, db:reset, db:studio, backups).
4. The admin console
The operator console is a separate repository, krizaka/orochia-admin:
5. Quality gates
Every change must pass, locally and in CI:
Where next
- Development guide — everyday commands, schema changes, seed, reset and backups.
- Database reference — every table, index and foreign key, generated from the schema.
- Architecture — how access, payments, the ledger and compliance fit together.
- Media Pipeline — direct-to-Bunny uploads and signed playback.
- API Reference — every endpoint and the rule that guards it, generated from the code.
- Deployment & Operations — configuration, gateway webhooks and DigitalOcean App Platform.