8000 GitHub - inkspect-code-review/inkspect-core: Shared authentication, data models and service contracts. · GitHub
[go: up one dir, main page]

Skip to content

About

Shared authentication, data models and service contracts.

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Inkspect Core

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.

How sign-in is assembled

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.

Run a sign-in test

Use Node.js 22.13 or newer from the package root.

npm ci
node --import tsx --test tests/app/self-hosted-auth.test.ts

The 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

About

Shared authentication, data models and service contracts.

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

0