Documentation
Connect, store, query and manage application data with BsonLite.
What is BsonLite?
BsonLite is a portable database for Node.js and Windows applications. Its standalone distribution is one BsonLite.cjs file; its npm package is named bsonlite-sdk. BsonLite Console is a separate GUI and terminal tool.
The full file includes the custom native engine, required JavaScript dependencies, encrypted storage and connection lifecycle. BsonLite starts a protected local engine process and keeps your app's records in its own database directory.
The modern build uses a custom MongoDB Community 9.0.4 engine and driver 7.7.0, supporting that standalone engine's document queries, BSON types, indexes and aggregation. BsonLite is independently developed.
Your first connection
const BsonLite = require('./BsonLite.cjs');
async function main() {
await BsonLite.connect();
// Start your application here.
}
main().catch(console.error);For npm, use require('bsonlite-sdk'). Await the connection before using collections. Data defaults to ./Database. The protected vault and extracted engine live in private Windows application data.
Where to go next
Read Installation, Connection lifecycle, CRUD operations and BsonLite Console. For existing data, start with Migration. Check Compatibility and Security for the tested profile and remaining limits.
BsonLite 0.7.0-alpha.0 · Downloads · BsonLite Console · Support development