Quickstart
The@wacht/backend SDK provides both a global singleton and composable class instances, allowing you to integrate it into any architectural pattern.
Global Initialization (Recommended)
For most applications, initializing a global client during your server’s startup phase is the simplest approach.Class Instantiation
If you are building a highly multi-tenant application or need to manage connections to multiple Wacht workspaces simultaneously, you can instantiate theWachtClient class directly.
Named Client Store
If you prefer inversion of control, the SDK provides aWachtClientStore to manage multiple named active clients.
