Skip to content

Installation

Terminal window
npm install @usebetterdev/console

The main package (@usebetterdev/console) includes the core library and all adapters via subpath exports. The CLI (@usebetterdev/console-cli) is used via npx — no installation required.

UseBetter Console uses Hono middleware to intercept /.well-known/better/* requests:

Terminal window
npm install hono

Only needed if you use the magic link authentication flow in production. Auto-approve mode is stateless and needs no database at all.

Terminal window
npm install drizzle-orm pg
  • Node.js 22+ (also supports Bun and Deno)
  • PostgreSQL 13+ (only needed for magic link auth — auto-approve needs no database)
  • TypeScript 5+ (recommended, but not required)

All adapters are available through the main package via subpath exports:

ImportContents
@usebetterdev/consoleCore: betterConsole, types, config
@usebetterdev/console/drizzledrizzleConsoleAdapter, schema tables
@usebetterdev/console/honocreateConsoleMiddleware
  • Quick Start — connect your app to UseBetter Console in 5 minutes