@inkspect/ui contains the self-hosted Next.js dashboard and its shared React components. The dashboard runs alongside the Inkspect API. To install both services and the review workers together, use the Docker Compose guide.
Follow a request to /dashboard?view=reviews through three parts of the application.
| Layer | Responsibility |
|---|---|
| Workspace pages | On the server, validate the session, resolve the active workspace from the user’s memberships and select the requested dashboard section. |
| Self-hosted dashboard | Supply the edition’s navigation and panels to the shared dashboard shell. The shell renders ReviewWorkspace for the Reviews section. |
| Review workspace | Load reviews from /api/reviews and track the selected run. When its report is ready, pass it to ReviewReportView to render findings, scores and evidence. |
Next.js handles sign-in in this app. Review requests go through a same-origin rewrite to the API. If you change where those requests go, edit next.config.ts. If you change how a finding looks, start in ReviewReportView and run its rendering test:
node --import tsx --test tests/app/review-report.test.tsUse Node.js 22.13 or newer and a running Inkspect API with its PostgreSQL migrations applied. From this checkout:
npm ci
cp .env.example .env.localIn .env.local, use the API’s DATABASE_URL and BETTER_AUTH_SECRET. Set the same BETTER_AUTH_URL in both services and configure GitHub OAuth or SMTP for sign-in. For the default local ports, use:
BETTER_AUTH_URL=http://127.0.0.1:3002
INKSPECT_API_ORIGIN=http://127.0.0.1:3003Run npm run dev and open http://127.0.0.1:3002.