sworm

JSON →
library 3.8.1 ·javascript
verified Jun 4, 2026

A lightweight write-only Node.js ORM supporting MSSQL, PostgreSQL, MySQL, Oracle, SQLite, and Web SQL. Version 3.8.1 is current. Sworm focuses on writing graphs of related entities while querying is done with raw SQL to avoid performance pitfalls like opaque query generation, N+1 queries, and complex relationship management. It provides a simple model API for defining tables and relationships, connects lazily, and supports both callback and promise patterns. It is a niche alternative to full-featured ORMs like Sequelize or TypeORM, emphasizing simplicity and database-agnostic write operations.