Sails Multitenant ORM Hook
JSON →A Sails.js 1.x hook that transforms Waterline ORM into a multitenant ORM by providing per-request datasource switching. Current stable version is 0.6.2. It is plug-and-play, non-invasive, and compatible with existing Sails models when models have `multitenant: true`. The hook supports dynamic tenant selection via a custom function that returns datasource connection details (host, port, adapter, etc.). It is maintained but has low activity; last release was in 2020. Key differentiator: full backward compatibility with standard Waterline operations, no need to rewrite model code.
Resources
packagesails-hook-multitenant ↗
API endpoints
full doc /v1/registry/sails-hook-multitenant