Sails Multitenant ORM Hook

JSON →
library 0.6.2 ·javascript maintenance
verified Jun 4, 2026

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.