Helps teams build data-oriented web apps and APIs on Node.js with familiar MVC structure, WebSocket support, and an integrated ORM.
Overview
Sails.js is a Node.js web framework aimed at custom, production-oriented applications. It follows an MVC-style layout influenced by older server-side frameworks while focusing on APIs and data-driven services, including realtime features such as chat.
The stack builds on Node.js, Express, and Socket.io. Actions work with Connect-style middleware, so much existing Express middleware can be reused. Modern async-await patterns are supported for request handling.
Waterline provides the default ORM with adapters for MySQL, PostgreSQL, MongoDB, Redis, and local disk or memory, plus numerous community adapters for other databases and external REST APIs. Blueprints can auto-generate REST API endpoints to bootstrap backends.
Socket messages are routed through the same application routes as HTTP, which keeps realtime and REST interfaces aligned. Front-end tooling is not prescribed; clients can be web, mobile, or other platforms.
Key features
- MVC application structure
- Built-in WebSocket routing
- Waterline ORM and adapters
- Auto-generated REST blueprints
- Express-compatible middleware
- Async-await request flow
- Multiple database backends
- Realtime chat-oriented design
Use cases
- JSON APIs with realtime updates
- Chat and live collaboration backends
- Rapid backend scaffolding
- Multi-database Node services
- Enterprise-style Node web apps