Toshihiko is a simple ORM for Node.js, primarily targeting MySQL databases with built-in cache support. The latest version (1.0.4) is stable but the project appears to be in maintenance mode, with documentation for v1.x still incomplete as of the README. It offers a lightweight alternative to heavyweight ORMs like Sequelize, but lacks active development and has a niche user base. Release cadence is low; the last updates were in 2018.
npm install toshihikoNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Create a Toshihiko instance, define a model, and insert a record using callback style.
Refer to preview docs or source code for correct usage.
Use a connection pool externally or share one instance.
Wrap calls in Promise or use a promise wrapper like util.promisify.
Consider migrating to a maintained ORM like Sequelize or TypeORM.
npm install toshihiko --save
const Toshihiko = require('toshihiko').default; or use import Toshihiko from 'toshihiko'Check DB_HOST, DB_USER, DB_PASSWORD, and DB_DATABASE environment variables.