The Inkspect API and dashboard both import @inkspect/core for authentication, workspace access and review data. The package exposes individual TypeScript modules through its exports.
The API and dashboard obtain their Better Auth instance from the self-hosted runtime. It supplies the PostgreSQL connection pool to the self-hosted factory, which chooses who can create a workspace. The shared auth factory installs the sign-in methods, session hooks and organization plugin.
To change self-hosted workspace creation, edit selfHostedAuthPolicy. To change how a sign-in method works across applications, start in createEditionAuth. For reviews, the shared review handler accepts a review lifecycle supplied by the application.
Use Node.js 22.13 or newer from the package root.
npm ci
node --import tsx --test tests/app/self-hosted-auth.test.tsThe test exercises a magic-link sign-in and workspace creation with an in-memory SQLite database and a local mail stub. Run npm test for the full suite, npm run audit for package boundaries and npm run build for type checking.
To run the dashboard and API together, use the self-hosted distribution.
MIT license · Contributing · Changelog · Code of Conduct · Support · Security