Flyweight ORM

JSON →
library 5.0.34 ·javascript
verified Jun 4, 2026

Flyweight is an ORM for SQLite and Turso targeting Node.js ≥22.13.1. Version 5.0.34 provides a comprehensive API including insert, update, upsert, get, many, first, query, remove, and batch operations. It automatically generates TypeScript types from your SQL schema (via npm run types/watch) and supports advanced features like JSON field typing and typed raw SQL queries. Unlike traditional ORMs, Flyweight uses a file-based migration system and integrates deeply with Turso for edge databases. The library is ESM-only and ships with TypeScript definitions.