Registry / database / littlefork-plugin-mongodb

littlefork-plugin-mongodb

JSON →
library1.0.0-rc.1jsnpmunverified

MongoDB persistence plugin for the littlefork data pipeline framework, supporting storage and retrieval of profile, history, and unit data. Currently at v1.0.0-rc.1; pre-release with stable API. Provides plugins like mongodb_store, mongodb_query_units, and mongodb_fetch_units for CRUD operations. Differentiates new units, revisions, and relations. Lightweight integration with littlefork's JSON-based query system.

npm install littlefork-plugin-mongodb
INSTALL
IMPORT
SIG · LITTLEFORK-PLUGIN-
L
littlefork-plugin-mongodb
databasejavascriptv1.0.0-rc.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Shows how to configure and run littlefork with the mongodb_store plugin using a config file and query.

// config.json { "mongodb": { "uri": "mongodb://localhost:27017/littlefork" }, "plugins": ["twitter_feed", "mongodb_store"] } // queries.json [{ "type": "mongodb_query_units", "term": {} }] // Run npx littlefork -q queries.json -c config.json -p twitter_feed,mongodb_store
Debug
Known issues
gotchaPlugin is designed exclusively for the littlefork pipeline framework; standalone usage is not supported.
fix
Use the plugin only within a littlefork configuration.
affects: >=1.0.0-rc.1
gotchaThe mongodb.uri configuration must be valid; MongoDB connection errors are not gracefully handled.
fix
Double-check the MongoDB URI and ensure the server is running.
affects: >=1.0.0-rc.1
breakingPre-release version; API may change in future versions.
fix
Pin to exact version until stable release.
affects: 1.0.0-rc.1
Errors
Common errors & fixes
Cannot find module 'littlefork-plugin-mongodb'
Package not installed or missing from node_modules
fix
Run 'npm install --save littlefork-plugin-mongodb' in the project root.
ERROR: No plugin 'mongodb_store' found
Plugin name misspelled or not configured in littlefork config
fix
Ensure 'mongodb_store' is listed in the 'plugins' array of the config file.
Upgrade
Version history
1.0.0-rc.1latest on npm
Audit
Dependencies
littleforkrequiredpeer dependency required for plugin to function
mongodbrequiredMongoDB driver for database interactions
Agent activity
8 hits · last 30 days
node
6
Resources
littlefork-plugin-mongodb — npm install littlefork-plugin-mongodb · libregistry