Create RESTful endpoints and controllers from Sequelize models using Express or Restify. Compatible with Sequelize 4.x and 5.x, this library is a fork of Epilogue that adds support for newer Sequelize versions. It provides automatic CRUD routes (create, read, update, list, delete) with hook-based customization (start, auth, fetch, data, write, send, complete). Includes built-in error types like ForbiddenError. Last release: v1.2.2, with a maintenance-driven release cadence. Differentiators: drop-in replacement for Epilogue, supports both Express and Restify, flexible hooks for custom behavior.
npm install finale-restNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic setup: Sequelize model, Express app, initialize finale, create CRUD resource, sync database, and start server.
Consider migrating to sequelize-auto-paginate or building your own REST endpoints with Sequelize directly.
Downgrade Sequelize to 5.x or use a different library like featherjs-sequelize.
Ensure you add 'body-parser' for Express or 'restify.plugins.bodyParser()' for Restify before initializing finale.
Call finale.initialize({ sequelize: db }) before finale.resource().Ensure you import finale correctly: const finale = require('finale-rest');Add sequelize option: finale.initialize({ app, sequelize: database });Use array: endpoints: ['/users', '/users/:id']
Check endpoints array includes '/users/:id' and that the model is synced.