Registry / database / mira-storage-sqlite

mira-storage-sqlite

JSON →
library1.0.20jsnpmunverified

SQLite storage implementation for the Mira framework, providing database persistence via better-sqlite3. Version 1.0.20 is stable with regular updates. It is tightly coupled to mira-app-core (^1.0.23) as a peer dependency, offering a simple key-value and structured data storage solution for Mira applications. Differentiates from generic SQLite wrappers by integrating seamlessly with Mira's lifecycle and configuration.

npm install mira-storage-sqlite
INSTALL
IMPORT
SIG · MIRA-STORAGE-SQLIT
M
mira-storage-sqlite
databasejavascriptv1.0.20
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.

MiraSQLiteStorage
import { MiraSQLiteStorage } from 'mira-storage-sqlite'
const MiraSQLiteStorage = require('mira-storage-sqlite').MiraSQLiteStorage
ESM-only; CommonJS require() not supported.

Initializes a Mira application with an in-memory SQLite storage provider.

import { MiraApp } from 'mira-app-core'; import { MiraSQLiteStorage } from 'mira-storage-sqlite'; const app = new MiraApp(); app.use(new MiraSQLiteStorage({ filename: ':memory:' })); app.start().then(() => { console.log('Mira app with SQLite storage started'); });
Debug
Known issues
breakingRequires mira-app-core ^1.0.23 as peer dependency. Mismatched versions cause runtime errors.
fix
Ensure mira-app-core is version 1.0.23 or later.
affects: >=1.0.0
gotchaThe package does not ship any default export; only named export MiraSQLiteStorage is available.
fix
Use named import syntax as shown in the imports section.
affects: >=1.0.0
Errors
Common errors & fixes
TypeError: Cannot read properties of undefined (reading 'use')
Missing or incorrect instantiation of MiraApp before calling use().
fix
Ensure MiraApp is imported and instantiated: const app = new MiraApp();
Upgrade
Version history
1.0.20latest on npm
Audit
Dependencies
mira-app-corerequiredPeer dependency required for Mira application integration
Agent activity
6 hits · last 30 days
node
6
Resources
mira-storage-sqlite — npm install mira-storage-sqlite · libregistry