![]() | A major contributor to this article appears to have aclose connection with its subject. It may require cleanup to comply with Wikipedia's content policies, particularlyneutral point of view. Please discuss further on thetalk page.(December 2021) (Learn how and when to remove this message) |
![]() Sails.js brand logo | |
Developer(s) | Mike McNeil and others |
---|---|
Initial release | 2012; 13 years ago (2012) |
Stable release | |
Repository | Sails.js Repository |
Written in | JavaScript |
Operating system | Cross-platform |
Platform | Node.js |
Type | Web framework |
License | MIT License |
Website | sailsjs |
Sails.js (orSails)[2] is amodel–view–controller (MVC)web application framework developed atop theNode.js environment,[3]: 1, 19 released asfree and open-source software under theMIT License.[4][5] It is designed for Node.jsweb applications andAPIs[4] with similar architecture toRuby on Rails.[3]: 19
Sails.js is built on Node.js andExpress.js, enabling applications to be written in JavaScript. This includes models, views, controllers, configuration files, and adapters (e.g., database). Similar to Ruby on Rails,[2] Sails.js provides anobject-relational mapping interface using Waterline.js, which abstracts the database interaction layer.[6]
A number of other packages are included to enable fast auto-generatedREST APIs,WebSockets by default usingSocket.io;[2] and compatibility features making it front-end agnostic (AngularJS,React.js,Android,iOS, etc.).