Alpha ORM is a zero-configuration JavaScript ORM that automatically creates tables and columns, supporting MySQL, SQLite, and PostgreSQL. Version 1.2.18 is the latest stable release. Unlike traditional ORMs that require schema definitions and migrations, Alpha ORM dynamically infers the schema from usage, allowing developers to create, read, update, and delete records without any setup beyond database connection. It is designed for rapid prototyping and simple applications where schema flexibility is paramount, sacrificing type safety and explicit schema control for ease of use. The package is published on npm as 'orm-alpha' with minimal dependencies.
npm install orm-alphaNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates setup with SQLite, creating a record, reading all, finding by condition, and updating.
Always verify field names and ensure consistency across operations.
Consider using with a dedicated migration tool or lock your schema with explicit table creation.
Use require() instead of import.
Install the required driver: npm install mysql or sqlite3 or pg.
npm install mysql
Use const { AlphaORM: DB } = require('alpha-orm');Ensure database server is running and host is correct.