In keeping with the Node philosophy, Sails aims to keep its core as small as possible, delegating all but the most critical functions to separate modules. There are currently three types of extensions that you can add to Sails:
sails generate model foo.
If you’re interested in developing a plugin for Sails, you will most often want to make a hook.
* Core hooks, like
request, etc. are hooks which are bundled with Sails out of the box. They can be disabled by specifying a
hooks configuration in your
.sailsrc file, or when lifting Sails programatically.