Drizzle ORM adapter for CR-SQLite WASM (vlcn) enabling Drizzle's query building and migrations in browser environments. Current version 0.0.7 targets Drizzle ORM ^0.43.1 and @vlcn.io/xplat-api ^0.15.0. It uses Web Crypto for hashing instead of Node's crypto. This package is intended as a temporary solution until it merges into official drizzle-orm. Requires manual migration processing via glob imports and SHA-256 hash generation.
npm install drizzle-orm-crsqlite-wasmNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows setup with CR-SQLite WASM init, Drizzle DB creation, and running a migration then query.
Watch GitHub for merges; pin dependency versions.
Follow the README instructions to create migration index, hash function, and getMigrations helper.
Use a polyfill or run only in modern browser/Deno/Bun with Web Crypto.
Use import syntax and ensure your project is configured for ESM.
Run `npm install drizzle-orm-crsqlite-wasm`
Use `import { drizzle } from 'drizzle-orm-crsqlite-wasm'`Use `import { migrate } from 'drizzle-orm-crsqlite-wasm/migrator'`Ensure you are in a secure context (HTTPS/localhost) and use modern browser/Deno/Bun.
Add "type": "module" to package.json or rename file to .mjs.