SlintORM v1.0.0 is a minimal, fully typed ORM for TypeScript that supports SQLite, PostgreSQL, and MySQL. Released as a stable version with no specified release cadence, it distinguishes itself from other ORMs like TypeORM or Prisma by offering a lightweight, Go's GORM-inspired API with explicit decorator-driven schema definitions in interfaces. Key features include auto table creation, migrations, type-safe queries, relationships (one-to-one, one-to-many, many-to-many), advanced query building (joins, aggregates, subqueries, window functions, preloads), and soft deletes. It currently lacks a large community or extensive documentation, positioning it as a niche alternative for developers seeking minimalism over full-featured ORMs.
npm install slintormNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initializes ORMManager with SQLite, defines a User model, syncs schema, and queries users by name.
Ensure every model interface uses @auto on auto-increment primary keys like id?: number.
Always add @nullable comment annotation to fields that should accept NULL values, even if TypeScript marks them optional.
Add @softDelete comment to the deletedAt field in your model interface to enable soft delete functionality.
Double-check foreignKey in relationship annotations matches an actual column in the model interface.
npm install better-sqlite3
Ensure driver option is correctly set and the database file path is valid.
Use orm.sync({ alter: true }) to auto-migrate schema changes without recreating tables.