Registry / database / naf-framework-mongoose

naf-framework-mongoose

JSON →
library0.6.12jsnpmunverified

A custom Egg.js framework that integrates Mongoose for MongoDB ORM/ODM. Current version 0.6.12, with unknown release cadence. Provides a pre-configured Egg.js application with Mongoose connectivity, intended for rapid bootstrapping of Egg.js projects that use MongoDB. Differentiatiors: opinionated setup of Mongoose within the Egg.js ecosystem, reducing boilerplate. Alternatives: direct use of egg-mongoose plugin.

npm install naf-framework-mongoose
INSTALL
IMPORT
SIG · NAF-FRAMEWORK-MONG
N
naf-framework-mongoose
databasejavascriptv0.6.12
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

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

startCluster
const { startCluster } = require('naf-framework-mongoose');
import { startCluster } from 'naf-framework-mongoose';
Package uses CommonJS; ESM import may fail depending on Node version.

Shows how to bootstrap an Egg.js application using the naf-framework-mongoose framework.

// {app_root}/index.js const { startCluster } = require('naf-framework-mongoose'); startCluster({ baseDir: __dirname, // port: 7001, // default to 7001 });
Debug
Known issues
gotchaFramework assumes Egg.js and Mongoose versions; mismatches may cause runtime errors.
fix
Check peer dependencies and lock versions.
affects: >=0.0.0
Errors
Common errors & fixes
Error: Cannot find module 'naf-framework-mongoose'
Package not installed or not in node_modules.
fix
Run 'npm install naf-framework-mongoose'.
Upgrade
Version history
0.6.12latest on npm
Audit
Dependencies
eggrequiredCore framework dependency for Egg.js application
mongooserequiredMongoDB ODM library integrated into the framework
Agent activity
6 hits · last 30 days
node
6
Resources
naf-framework-mongoose — npm install naf-framework-mongoose · libregistry