{"id":45142,"library":"inflames.db","title":"inflames.db","description":"SQLite and BSON database module for Node.js by InFlames. Version 5.1.1 provides a quick, simple API with functions like set, get, fetch, push, pull, add, sub, delete, deleteValue, deleteAll, and has. Supports both SQLite (.db) and BSON (.bson) backends, automatically creating database files. The package is primarily documented in Turkish. It ships TypeScript types. Release cadence is irregular. Alternatives like better-sqlite3 or lowdb offer more mature ecosystems, but inflames.db focuses on ease of use with a unified API similar to quick.db.","status":"active","version":"5.1.1","language":"javascript","source_language":"en","source_url":"https://github.com/InFlames513/inflames.db","tags":["javascript","db","database","inflames","sqlite","bson","quick","typescript"],"install":[{"cmd":"npm install inflames.db","lang":"bash","label":"npm"},{"cmd":"yarn add inflames.db","lang":"bash","label":"yarn"},{"cmd":"pnpm add inflames.db","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"SQLite engine for database operations. Required when using .sqlite() adapter.","package":"better-sqlite3","optional":false}],"imports":[{"note":"Use CommonJS require. ESM import is not supported. The function is exported as a property of the default export.","wrong":"import db from 'inflames.db'","symbol":"sqlite","correct":"const db = require('inflames.db').sqlite('database')"},{"note":"The bson adapter uses a file with .bson extension. If no filename provided, defaults to 'inflames.bson'.","wrong":"const db = require('inflames.db').bson()","symbol":"bson","correct":"const db = require('inflames.db').bson('databases')"},{"note":"Do not use constructor. Directly call .sqlite() or .bson() on the required module.","wrong":"const db = new (require('inflames.db'))()","symbol":"default","correct":"const db = require('inflames.db').sqlite()"}],"quickstart":{"code":"const db = require('inflames.db').sqlite('mydb');\ndb.set('prefix', '!');\nconst prefix = db.get('prefix');\nconsole.log(prefix); // '!'\ndb.push('users', { name: 'Alice' });\ndb.add('count', 1);\nconsole.log(db.all());","lang":"javascript","description":"Demonstrates basic set, get, push, add, and all operations using the SQLite adapter."},"warnings":[{"fix":"Use 'database' instead of 'database.db' or 'database.bson'.","message":"Do not include file extensions when specifying database name. The module automatically appends '.db' or '.bson'.","severity":"gotcha","affected_versions":"*"},{"fix":"Use CommonJS require(). If you must use ESM, wrap with createRequire.","message":"The package does not support ES modules (ESM). Attempting import will result in error.","severity":"gotcha","affected_versions":"*"},{"fix":"Use db.has('key') before db.delete('key') if you need to verify deletion.","message":"The 'delete' method returns true even if the key doesn't exist. Check existence with has() first.","severity":"gotcha","affected_versions":"*"},{"fix":"Use db.get() instead of db.fetch().","message":"The 'fetch' method is an alias for 'get' and may be removed in future versions.","severity":"deprecated","affected_versions":">=5.0.0"},{"fix":"Iterate over array: db.all().forEach(entry => console.log(entry.ID, entry.value)).","message":"The all() method returns an array of objects with 'ID' and 'value' properties, not a map.","severity":"gotcha","affected_versions":"*"}],"env_vars":null,"search_vec":"'5.1.1':12 'add':26 'altern':60 'api':17,81 'automat':41 'backend':40 'better':63 'better-sqlite3':62 'bson':4,38,39,90 'cadenc':57 'creat':42 'databas':5,43,87 'db':36,86 'delet':28 'deleteal':30 'deletevalu':29 'document':49 'eas':75 'ecosystem':70 'fetch':23 'file':44 'focus':73 'function':19 'get':22 'inflam':10,88 'inflames.db':1,72 'irregular':59 'javascript':85 'like':20,61 'lowdb':66 'matur':69 'modul':6 'node.js':8 'offer':67 'packag':46 'primarili':48 'provid':13 'pull':25 'push':24 'quick':15,91 'quick.db':84 'releas':56 'set':21 'ship':53 'similar':82 'simpl':16 'sqlite':2,35,89 'sqlite3':64 'sub':27 'support':33 'turkish':51 'type':55 'typescript':54,92 'unifi':80 'use':77 'version':11","created_at":"2026-06-07T12:53:33.625106+00:00","updated_at":"2026-06-07T12:53:33.625106+00:00","problems":[{"fix":"Replace `const db = require('inflames.db')` with `const db = require('inflames.db').sqlite('mydb')`.","cause":"Importing incorrectly as default instead of calling .sqlite() or .bson().","error":"TypeError: db.set is not a function"},{"fix":"Run `npm install better-sqlite3` or install inflames.db with the SQLite adapter: the package should list it as a dependency, but if missing, install manually.","cause":"The optional dependency better-sqlite3 is not installed when using SQLite.","error":"Cannot find module 'better-sqlite3'"},{"fix":"Ensure the script has write permissions to the directory. Use an absolute path if needed.","cause":"The module tried to create the database file but the directory is not writable or the path is invalid.","error":"ENOENT: no such file or directory, open '.../inflames.db'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/InFlames513/inflames.db#readme","github":"https://github.com/InFlames513/inflames.db","docs":null,"changelog":null,"pypi":null,"npm":"inflames.db","openapi_spec":null,"status_page":null,"smithery":null,"categories":["database"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-07","next_check":"2026-09-05","install_tag":null}}