bookshelf/bookshelf
A simple Node.js ORM for PostgreSQL, MySQL and SQLite3 built on top of Knex.js observed · 2026-08-28
Health v2 · maintenance only
23/100
- Activity 0
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 4928
- days_rel: n/a
- days_push: 753
- n_releases_24m: 0
Adoption not part of the score
6347 stars · 574 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
Bookshelf is a lightweight JavaScript ORM for Node.js built on top of the Knex SQL query builder. It supports PostgreSQL, MySQL, and SQLite3 with promise-based APIs, transactions, eager relation loading, and polymorphic associations.
Use cases
- map JavaScript models to relational database tables in Node.js
- define one-to-one, one-to-many, and many-to-many relations between models
- run database transactions with rollback support
- eagerly load nested relations to avoid N+1 queries
- drop down to raw Knex queries for custom SQL
- work with PostgreSQL, MySQL, or SQLite from the same ORM API
When to choose
- you want a lean, simple ORM on top of Knex for Node.js
- you need flexible relation loading and polymorphic associations
- you want the ability to escape to raw SQL via Knex when needed
When to avoid
- you need a modern, actively evolving ORM with first-class TypeScript support
- you use databases other than PostgreSQL, MySQL, or SQLite3
- you prefer newer alternatives like Prisma, TypeORM, or Drizzle
Facets
library · maturity maintenance
orm database-driver database databases backend web-development developer-tools knex sql postgresql mysql sqlite data-mapper active-record query-builder nodejs javascript
3 sources
- readme: https://github.com/bookshelf/bookshelf · fetched 2026-08-28 · f526db6b9b3f
- homepage: http://bookshelfjs.org · fetched 2026-08-29 · f6882f8d31ec
- registry_npm: https://registry.npmjs.org/bookshelf · fetched 2026-08-29 · 6a2b6ba45228
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| bookshelf/bookshelf | main | 23 |
For agents
markdown · JSON · MCP: product_card(name="bookshelf/bookshelf")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem