Lightweight Node.js mini-framework for simple ORM and server utilities.
Omega provides a small set of utilities for building simple servers and lightweight ORM interactions. The repository contains an orm helper set, a server utilities collection, and example scripts in the examples/ folder to demonstrate usage.
- Install dependencies (if any) from
package.json:
npm install- Run the ORM create simple Db example:
node orm/create- Run the example server:
node examples/server.jsThis project uses ES modules. package.json contains "type": "module", so use import syntax when requiring local files. Include the .js extension for local imports in Node.js ESM.
Example:
import './orm/create.js';
import { startServer } from './examples/server.js';index.js— project entry (if present)orm/— ORM-related helpersconection.js— connection helpercreate.js— script for creating or initializing ORM resourcesenvironment/readEnv.js— environment helpersrequests/requests.js— ORM requests utilitiesvalidations/ormState.js— ORM state validation
server/— server utilities and templatessintax.js— server syntax helperfunctions/decorators.js— server decorator helpersfunctions/templates.js— template helpersproperties/view_engine.js— view engine helper
examples/— example usage scripts:orm.js,server.js
More detailed usage and API documentation is available in the docs/ folder:
See docs/CONTRIBUTING.md for contributor guidelines and development tips.
See the LICENCE file in the project root.