Registry / database / ezseed-database

ezseed-database

JSON →
library1.0.6jsnpmunverified

Ezseed database handler for the ezseed BitTorrent seedbox platform. Provides database abstraction and query building for tracking torrents, users, and settings. Version 1.0.6 is the latest stable release. The package uses a migration-based schema and supports SQLite and MySQL. Key differentiators include integration with the ezseed ecosystem and a simple, unopinionated API. Release cadence is sporadic; latest version is from 2015 and the project appears unmaintained.

npm install ezseed-database
INSTALL
IMPORT
SIG · EZSEED-DATABASE
E
ezseed-database
databasejavascriptv1.0.6
Install
—
Import
—
Disk
—
Pass rate
0/ 6
Env Coverage0 / 6
glibc
18–22
musl
18–22
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 18–226 runs
build_error
glibc
node 18–226 runs
build_error
Code
Verified usage

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

default
✓ import Database from 'ezseed-database'
✗ const Database = require('ezseed-database')
Package is CJS, not ESM. Use require.
Database
✓ const Database = require('ezseed-database')
✗ import { Database } from 'ezseed-database'
Default export, not named.
connect
✓ const { connect } = require('ezseed-database')
✗ import connect from 'ezseed-database/connect'
Named export from main module.

Initializes SQLite database and inserts a torrent record using the ezseed-database handler.

const Database = require('ezseed-database'); const db = new Database({ client: 'sqlite3', connection: { filename: './ezseed.db' } }); // Initialize tables based on migrations db.init().then(() => { console.log('Database ready'); }).catch(err => console.error(err)); // Insert a torrent db.insert('torrents', { info_hash: 'abc123', name: 'ubuntu.iso', size: 12345678 }).then(console.log).catch(console.error);
Debug
Known issues
gotchaThe 'client' option uses string-based driver names; 'mysql' and 'sqlite3' are the only supported values. Typo causes silent fallback to SQLite?
fix
Ensure 'client' is exactly 'mysql' or 'sqlite3'.
affects: >=0.1.0
deprecatedThe 'paths.getAll' was renamed to 'paths.get' in v0.1.1. Old method may still exist but is deprecated.
fix
Replace paths.getAll with paths.get or check version and use appropriate method.
affects: >=0.1.1
breakingLicense changed from MIT to GPL3 in v0.1.2, affecting downstream usage and redistribution.
fix
Review GPL3 compliance; if needed, use prior version under MIT.
affects: >=0.1.2
gotchaThe package expects a pre-existing database structure? Migrations run only on init() and may fail if tables exist with incompatible schema.
fix
Ensure database is empty or match migration expectations, or handle migration errors.
affects: >=0.1.0
Errors
Common errors & fixes
Error: Cannot find module 'ezseed-database'
Package not installed or not in node_modules.
fix
Run 'npm install ezseed-database' or add to package.json.
Error: Cannot find module 'mysql' (or 'sqlite3')
Optional database driver not installed.
fix
Install the required driver: 'npm install mysql' or 'npm install sqlite3'.
TypeError: Database is not a constructor
Using default import incorrectly as named import.
fix
Use 'const Database = require('ezseed-database')' not 'import { Database } from ...'.
Upgrade
Version history
1.0.6latest on npm
Audit
Dependencies
mysqloptionalMySQL database driver for production use
sqlite3optionalSQLite database driver for development or small deployments
Agent activity
7 hits · last 30 days
node
6
Resources
ezseed-database — npm install ezseed-database · libregistry