Registry / database / turbodepot-node

turbodepot-node

JSON →
library10.0.0jsnpmunverified

TurboDepot is a general-purpose multi-storage library for Node.js (10.0.0) that integrates ORM, log management, user management, file operations, and caching into a single, centralized API. It is part of the TurboFramework ecosystem, designed to be cross-language (PHP, JS/TS, MySQL/MariaDB) with identical APIs across languages. Release cadence is irregular; major versions may introduce breaking changes. Key differentiators: single JSON configuration, automatic table/column creation, human-readable storage, and support for multiple isolated depot instances.

npm install turbodepot-node
INSTALL
IMPORT
SIG · TURBODEPOT-NODE
T
turbodepot-node
databasejavascriptv10.0.0
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.

FilesManager
import { FilesManager } from 'turbodepot-node';
const FilesManager = require('turbodepot-node').FilesManager;
Package is ESM-only since v10. Use import syntax. CommonJS require is not supported.
UsersManager
import { UsersManager } from 'turbodepot-node';
import UsersManager from 'turbodepot-node';
Named export, not default export.
LogsManager
import { LogsManager } from 'turbodepot-node';
TypeScript types are included. No require or default import.

Demonstrates creating FilesManager, UsersManager, and OrmManager with ESM imports and TypeScript types.

import { FilesManager } from 'turbodepot-node'; const filesManager = new FilesManager(); filesManager.mirrorDirectory('path/to/source', 'path/to/destination'); import { UsersManager } from 'turbodepot-node'; const usersManager = new UsersManager(); const user = usersManager.createUser({ login: 'admin', password: 'secret123', email: 'admin@example.com' }); console.log('User created:', user); import { OrmManager } from 'turbodepot-node'; const ormManager = new OrmManager(); const saved = ormManager.save({ name: 'test', value: 42 }); console.log('Object saved:', saved);
Debug
Known issues
breakingv10.0.0 dropped CommonJS support; package is now ESM-only.
fix
Migrate from require() to import syntax. Use dynamic import() if needed.
affects: >=10.0.0
breakingv10.0.0 removed the default export; all classes are now named exports.
fix
Update imports to use named exports: import { ClassName } from 'turbodepot-node';
affects: >=10.0.0
gotchaConfiguration via JSON file is optional but if provided, it must be accessible at runtime. No error is thrown if file not found, the library uses defaults silently.
fix
Ensure the JSON file path is correct or omit it to use defaults.
affects: *
gotchaAutomatic table/column creation may not be desired in production with strict permissions. The library assumes it has DDL privileges.
fix
Grant ALTER/CREATE permissions to the database user or configure a separate schema.
affects: *
Errors
Common errors & fixes
require is not defined in ES module scope
Package is ESM-only, but code uses require().
fix
Use import { FilesManager } from 'turbodepot-node'; or add type: 'module' to package.json and use dynamic import.
Cannot find module 'turbodepot-node'
Package not installed or installation failed.
fix
Run: npm install turbodepot-node@latest
Upgrade
Version history
10.0.0latest on npm
Audit
Dependencies
turbocommonsrequiredRequired for base classes and utilities
Agent activity
32 hits · last 30 days
node
28
Meta
2
Resources
turbodepot-node — npm install turbodepot-node · libregistry