IMean Cassandra ORM (v2) is a TypeScript-first ORM for Apache Cassandra and ScyllaDB, built on Zod for type-safe schema definitions. The current stable version is 4.0.0, requiring Node.js >=20 and Zod v4.x. It provides automatic CQL generation, schema synchronization (auto-migration), optional ClickHouse dual-write for analytics, and ANN vector search. Unlike Cassandra drivers alone, it offers a high-level abstraction with runtime validation and type inference from Zod schemas. The library ships TypeScript types and is released under the MIT license.
npm install imean-cassandra-ormNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Defines a Cassandra table schema with Zod, initializes a client, synchronizes the schema, performs a basic insert and query, then shuts down.
Update Zod to v4 and adjust any Zod schema definitions to be compatible with Zod v4 (e.g., refine syntax).
Use import syntax or set type: module in package.json. If you must use CommonJS, pin to version 2.x.
Use createClientV2 for new projects. For existing code, check if createClient is still exported.
Replace createClient with createClientV2. The new function returns { client, shutdown }.Always provide valid ClickHouse config if ClickHouse feature is needed; otherwise omit it.
Manually backup data before running syncSchema() on production tables.
Use import syntax or set type: module in package.json.
Use `import { createClientV2 } from 'imean-cassandra-orm'`.Update Zod to v4 and ensure all Zod schemas use v4 syntax (e.g., z.string().email() is fine, but check any custom refinements).
Use import/export syntax only.