Registry / devops / modelence

modelence

JSON →
library0.19.0jsnpmunverified

Modelence is a full-stack framework for building real-time MongoDB apps. Current stable version 0.19.0. It integrates authentication, database setup, scheduled jobs, and monitoring out of the box. Differentiators include an app builder UI for rapid prototyping and a cloud platform with zero-config deployment. The framework ships TypeScript types and requires React 18+ as peer dependencies.

npm install modelence
INSTALL
IMPORT
SIG · MODELENCE
M
modelence
devopsjavascriptv0.19.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Modelence
import { Modelence } from 'modelence'
const Modelence = require('modelence')
ESM-only; CommonJS require() is not supported.
createApp
import { createApp } from 'modelence'
import createApp from 'modelence'
Named export, not default.
useAuth
import { useAuth } from 'modelence'
import { useAuth } from 'modelence/auth'
Subpath imports are not supported; use root package.

Shows how to initialize Modelence with a MongoDB connection and start the server.

import { createApp } from 'modelence'; import { MongoClient } from 'mongodb'; async function main() { const client = new MongoClient(process.env.MONGO_URI || 'mongodb://localhost:27017'); await client.connect(); const db = client.db('myapp'); const app = createApp({ db }); app.listen(3000, () => console.log('Server running on port 3000')); } main().catch(console.error);
Debug
Known issues
breakingVersion 0.19.0 requires React 18 or higher. Applications using React 17 will fail to compile.
fix
Upgrade React and React DOM to >=18.0.0.
affects: >=0.19.0
deprecatedThe legacy app() function from v0.15.x is replaced by createApp().
fix
Replace app() with createApp().
affects: <0.15.0
gotchaSubpath imports like 'modelence/auth' are not supported. All exports are from the root package.
fix
Use 'import { useAuth } from "modelence"'.
affects: >=0.1.0
gotchaThe framework relies on MongoDB and does not support SQL databases.
fix
Use a different framework for SQL databases.
affects: >=0.1.0
Errors
Common errors & fixes
Cannot find module 'modelence' or its corresponding type declarations.
Modelence package not installed or TypeScript cannot resolve types.
fix
Run npm install modelence and ensure tsconfig.json includes 'node_modules' in 'typeRoots'.
Error: React version mismatch. Expected React 18+, got 17.x.
Peer dependency React >=18 not satisfied.
fix
Upgrade React and React DOM to version 18 or higher.
TypeError: createApp is not a function
CommonJS require() used instead of ESM import, or import from subpath.
fix
Use import { createApp } from 'modelence' (ESM).
Upgrade
Version history
0.19.0latest on npm
Audit
Dependencies
reactrequiredPeer dependency for UI components
react-domrequiredPeer dependency for React DOM rendering
Agent activity
6 hits · last 30 days
node
4
Amazon
1
Resources
modelence — npm install modelence · libregistry