{"id":41072,"library":"express-orm-mvc","title":"express-orm-mvc","description":"A lightweight MVC scaffolding library for Express.js 4.x that integrates node-orm2 for database modeling. Version 1.1.0 is the latest stable release; the package appears to be in maintenance mode with no recent updates. It provides a structured folder convention (models/controllers/views/config) and auto-loads models/controllers with Express and ORM configuration files. Unlike full-fledged MVC frameworks like Sails.js or Adonis, this is a minimal helper that gives developers full control over Express and ORM setup, making it suitable for small to medium projects that need a clean separation of concerns without heavy abstractions.","status":"maintenance","version":"1.1.0","language":"javascript","source_language":"en","source_url":"https://ddo@github.com/ddo/express-orm-mvc","tags":["javascript","express","orm","mvc","template","structure"],"install":[{"cmd":"npm install express-orm-mvc","lang":"bash","label":"npm"},{"cmd":"yarn add express-orm-mvc","lang":"bash","label":"yarn"},{"cmd":"pnpm add express-orm-mvc","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Web framework for routing and middleware","package":"express","optional":false},{"reason":"Object-Relational Mapping for database operations","package":"orm","optional":false}],"imports":[{"note":"CommonJS module; ESM import may fail without a bundler.","wrong":"import eom from 'express-orm-mvc';","symbol":"default","correct":"const eom = require('express-orm-mvc');"},{"note":"Accepts a Node-style error-first callback; no Promise returned.","wrong":"eom().then(...);","symbol":"callback","correct":"eom(function(err) { ... });"},{"note":"Models must export a function receiving orm and db objects.","wrong":"module.exports = { define: ... };","symbol":"model export","correct":"module.exports = function(orm, db) { db.define('model', ...); };"},{"note":"Controllers must export an object with method handlers.","wrong":"module.exports = function() { ... };","symbol":"controller export","correct":"module.exports = { action: function(req, res) {} };"}],"quickstart":{"code":"const express = require('express');\nconst app = express();\n\n// config/settings.js\n// module.exports = {\n//   development: {\n//     ip: '0.0.0.0',\n//     port: 3000,\n//     db: { driver: 'sqlite', filename: 'dev.db' }\n//   }\n// };\n\n// config/express.js\n// module.exports = function(app) { app.use(express.json()); };\n\n// config/orm.js\n// module.exports = function(orm, db) { /* sync or hooks */ };\n\n// config/routes.js\n// module.exports = function(app) {\n//   app.get('/', require('./controllers/home').index);\n// };\n\n// models/post.js\n// module.exports = function(orm, db) {\n//   db.define('post', { title: String, content: String });\n// };\n\n// controllers/home.js\n// module.exports = {\n//   index: function(req, res) { res.send('Hi'); }\n// };\n\nrequire('express-orm-mvc')(function(err) {\n  if (err) { console.error(err); process.exit(1); }\n  console.log('App started');\n});","lang":"javascript","description":"Minimal setup showing folder structure, settings, Express/ORM config, a model, a controller, and initialization."},"warnings":[{"fix":"Migrate to a modern ORM like Sequelize, TypeORM, or Prisma.","message":"Package uses node-orm2 which is deprecated and unmaintained.","severity":"deprecated","affected_versions":">=0.0.0"},{"fix":"Prefix dependent models with numbers, e.g., '0_user.js' before '1_post.js'.","message":"Models are loaded alphabetically; relational models must be named carefully.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Wrap initialization in a callback; do not use .then().","message":"No promise support; library uses error-first callbacks only.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Upgrade Express to ^4.0.0 or use an older version of this library.","message":"Express 4.x is required; Express 3.x applications will break.","severity":"breaking","affected_versions":">=1.0.0"},{"fix":"Do not use in production. Fork or migrate to another library.","message":"No new releases since 2015; security vulnerabilities in dependencies not patched.","severity":"deprecated","affected_versions":">=0.0.0"}],"env_vars":null,"search_vec":"'1.1.0':23 '4':12 'abstract':101 'adoni':68 'appear':31 'auto':50 'auto-load':49 'clean':95 'concern':98 'configur':57 'control':78 'convent':46 'databas':20 'develop':76 'express':2,54,80,103 'express-orm-mvc':1 'express.js':11 'file':58 'fledg':62 'folder':45 'framework':64 'full':61,77 'full-fledg':60 'give':75 'heavi':100 'helper':73 'integr':15 'javascript':102 'latest':26 'librari':9 'lightweight':6 'like':65 'load':51 'mainten':35 'make':84 'medium':90 'minim':72 'mode':36 'model':21 'models/controllers':52 'models/controllers/views/config':47 'mvc':4,7,63,105 'need':93 'node':17 'node-orm2':16 'orm':3,56,82,104 'orm2':18 'packag':30 'project':91 'provid':42 'recent':39 'releas':28 'sails.js':66 'scaffold':8 'separ':96 'setup':83 'small':88 'stabl':27 'structur':44,107 'suitabl':86 'templat':106 'unlik':59 'updat':40 'version':22 'without':99 'x':13","created_at":"2026-06-04T18:50:38.276785+00:00","updated_at":"2026-06-04T18:50:38.276785+00:00","problems":[{"fix":"npm install express-orm-mvc --save","cause":"npm package not installed or spelling mistake","error":"Error: Module \"express-orm-mvc\" not found"},{"fix":"Use const eom = require('express-orm-mvc');","cause":"Incorrect import (e.g., default import with ESM instead of CommonJS)","error":"TypeError: eom is not a function"},{"fix":"module.exports = function(orm, db) { ... };","cause":"Model file exports an object instead of a function(orm, db)","error":"Error: orm is not defined"},{"fix":"Ensure the project structure has config/settings.js and run from the root.","cause":"Missing config/settings.js or wrong working directory","error":"Error: Cannot find module './config/settings'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/ddo/express-orm-mvc","github":"https://ddo@github.com/ddo/express-orm-mvc","docs":null,"changelog":null,"pypi":null,"npm":"express-orm-mvc","openapi_spec":null,"status_page":null,"smithery":null,"categories":["devops","database"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-04","next_check":"2026-09-02","install_tag":null}}