modelence
v0.13.0
Published
The Node.js Framework for Real-Time MongoDB Apps
Downloads
3,084
Readme
Website | Documentation | API Reference | Modelence Cloud
🚀 Showcase
See what you can build in just a few hours with Modelence's batteries-included approach:
Getting Started
Modelence is an all-in-one TypeScript framework for startups shipping production apps, with the mission to eliminate all boilerplate for standard features that modern web applications need, like authentication, database setup, cron jobs, AI observability, email and more.
Prerequisites: Modelence requires Node.js 20.20 or higher.
Quick Start
1. Create a new project
npx create-modelence-app@latest my-app2. Install dependencies
cd my-app
npm install3. Start the development server
npm run devYour app will be available at http://localhost:3000
For a more detailed guide, check out the Todo App tutorial.
Local Development (Modelence Framework)
If you want to contribute to Modelence itself (not just use it in an application), follow the steps below.
1. Clone the repository
git clone https://github.com/modelence/modelence.git
cd modelence2. Install dependencies for the core package
cd packages/modelence
npm install3. Build the package
npm run buildThis generates the dist/ directory required for local usage.
4. (Optional) Watch for changes during development
npm run devThis runs the build in watch mode and rebuilds on file changes.
Note
If you encounter dependency or build errors while developing Modelence locally, a clean install may help:
rm -rf node_modules package-lock.json npm install npm run buildThis resets the local dependency state and mirrors the workflow often recommended when resolving local development issues. The regenerated
package-lock.jsonis only for local development and should not be committed as part of a PR unless explicitly requested.
Using the local build in a test app
To test your local Modelence changes inside a real application:
npx create-modelence-app@latest my-app
cd my-appUpdate package.json to point to your local Modelence package:
{
"dependencies": {
"modelence": "../modelence/packages/modelence"
}
}Then reinstall dependencies and start the app:
npm install
npm run devYour application will now use your local Modelence build.
Examples
For more examples on how to use Modelence, check out https://github.com/modelence/examples
