Drizzle ORM adapter for AdminJS (v0.1.2). Integrates Drizzle ORM (v0.44+) with AdminJS v7+. Provides database-specific adapters for PostgreSQL, MySQL, and SQLite. Register via AdminJS.registerAdapter. Supports both `resources` and `databases` configuration patterns. Peer dependencies: adminjs >=7, drizzle-orm >=0.44. Cautious: early release, no stable release yet. Differentiated by supporting modern Drizzle ORM with AdminJS.
npm install adminjs-drizzleNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to register the Drizzle adapter for PostgreSQL and create an AdminJS instance with a Drizzle resource.
Use the correct subpath: import { Database, Resource } from 'adminjs-drizzle/pg';Use ESM imports or ensure your project is set to ESM.
Ensure adminjs >=7 is installed.
Install drizzle-orm >=0.44.
Pin to exact version or monitor for breaking changes.
Import from 'adminjs-drizzle/pg', '/mysql', or '/sqlite'.
Ensure AdminJS.registerAdapter({ Database, Resource }) is called with the correct imported Database and Resource.Use { resource: { table: users, db } } where db is the drizzle instance.