This page is meant to be an up to date, comprehensive list of all of the core hooks in the Sails.js framework, and a reference of a few of the most popular community-made hooks.
|Hook||Package||Latest stable release||Purpose|
||sails-hook-grunt||Governs the built-in asset pipeline in Sails.|
||sails-hook-orm||Implements support for Waterline ORM in Sails.|
||sails-hook-sockets||Implements Socket.io support in Sails.|
Implements support for the Waterline ORM in Sails.
Implements socket.io support in Sails.
- You can find futher details about this hook's purpose here.
Implements support for the built-in asset pipeline and task runner in Sails.
There are more than 200 community hooks for Sails.js available on NPM. Here are a few highlights:
|sails-hook-webpack||Michael Diarmid & Team FA||Use Webpack for your Sails app's asset pipeline instead of Grunt.|
|sails-hook-postcss||Jeff Jewiss||Process your Sails application’s CSS with Postcss.|
|sails-hook-babel||Onoshko Dan, Markus Padourek & SANE||Process your Sails application’s CSS with Postcss.|
|sails-hook-responsetime||Luis Lobo Borobia||Add X-Response-Time to both HTTP and Socket request headers.|
|sails-hook-winston||Kikobeats||Integrate the Winston logging system with your Sails application.|
|sails-hook-allowed-hosts||Akshay Bist||Ensure that only requests made from authorized hosts/IP addresses are allowed.|
|sails-hook-cron||Eugene Obrezkov||Run cron tasks for your Sails app.|
If you see out of date information on this page, or if you want to add a hook you made, please submit a pull request to this file updating the table of community hooks above.
Note that, to be listed on this page, an adapter must be free and open-source (libre and gratis), preferably under the MIT license.