Hysteria ORM is a modern, high-performance ORM for Node.js supporting SQL (PostgreSQL, MySQL, SQLite via sqlite3) and experimental NoSQL (MongoDB, Redis) databases. Currently at version 11.0.6, it ships TypeScript types and requires esbuild 0.28+, ioredis 5.10+, mongodb 7.1+, mssql 12.2+, mysql2 3.20+, oracledb 6.10+, pg 8.20+, sqlite3 6.0+, typescript 6.0+, and zod 4.4+ as peer dependencies. Key differentiators: unified API across multiple database engines, partial type safety, and active development with frequent breaking changes. Not recommended for production use.
npm install hysteria-ormNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Connects to a PostgreSQL database, defines a User model with Zod schema, and performs a findMany query.
Pin to exact version and update imports as per changelog.
Use SQL drivers for production.
Install required drivers: npm install pg mysql2 sqlite3 etc.
Add 'type':'module' and use import syntax.
Check documentation for current export paths.
Use z.object({...}).strict() on your schemas.npm install pg
Use import { HysteriaORM } from 'hysteria-orm'Add .strict() to your Zod object schema.