Lightweight Express.js middleware that converts SQL databases into REST APIs with configurable routes and queries.
Resquel is an Express.js middleware library that converts SQL databases into REST APIs through configuration. It allows developers to define routes that map directly to SQL queries, automatically generating CRUD endpoints for database tables without writing repetitive API code. The library supports multiple database systems including MySQL, PostgreSQL, and SQL Server.
Backend developers working with Node.js and Express who need to quickly expose SQL databases as REST APIs, particularly those building applications on the Form.io platform or requiring rapid API prototyping.
Developers choose Resquel because it eliminates boilerplate API code through simple configuration, provides database-agnostic support via Knex.js, and offers flexible query customization while maintaining security through prepared statements.
Easily convert your SQL database into a REST API using Express.js
Supports MySQL, PostgreSQL, and SQL Server through Knex.js integration, allowing easy switching between databases without code changes, as validated in the README.
Configuration-over-code approach lets developers expose SQL tables as REST endpoints in minutes, demonstrated in the full CRUD example with minimal boilerplate.
Uses parameterized queries with request object paths (e.g., 'body.firstName'), preventing SQL injection and enhancing security, detailed in the advanced queries section.
Seamlessly works with Form.io for building Angular and React apps, providing a full-stack solution for database-driven applications as highlighted in the description.
Requires developers to write and maintain SQL queries directly, which can be error-prone and less intuitive for teams accustomed to ORMs, limiting abstraction.
Lacks out-of-the-box support for authentication, authorization, logging, or caching, forcing manual implementation for production needs beyond basic CRUD.
Database connectivity is tied to Knex.js, which might introduce compatibility issues or limit database options not supported by Knex, as noted in the DB configuration section.
Error management is basic; the README only mentions halting execution on missing values, requiring additional Express middleware for robust error handling in production.
Blazing fast, instant realtime GraphQL APIs on all your data with fine grained access control, also trigger webhooks on database events.
REST API for any Postgres database
💾 Database Tools incl. ORM, Migrations and Admin UI (Postgres, MySQL & MongoDB) [deprecated]
🔮 Graphile's Crystal Monorepo; home to Grafast, PostGraphile, pg-introspection, pg-sql2 and much more!
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.