A type-safe TypeScript ORM for SurrealDB, currently in development at version 0.1.0. It provides a fluent query builder with full type inference via a t.* schema builder, supporting CRUD operations, graph relationships, and SurrealDB functions. Unlike other SurrealDB libraries, it eliminates code generation by inferring types directly from schema definitions. Requires surrealdb.js v2.0.0-alpha.18 and TypeScript 5+. Release cadence is early-stage alpha with frequent breaking changes.
npm install surqlizeNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Connects to SurrealDB, defines a user schema, builds a type-safe query selecting users over 18, and executes it.
Pin exact version and review changelog before upgrading.
Install surrealdb@2.0.0-alpha.18 exactly. Do not use later alpha versions without verifying compatibility.
Use ES module imports or dynamic import().
Always invoke: t.string(), t.number(), etc. Not just t.string.
Convert your project to ESM or use dynamic import: const surqlize = await import('surqlize')Use t.string() instead of t.string
Run: npm install surrealdb@2.0.0-alpha.18