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.
Next Steps
Now that your client is initialized, learn how to secure your endpoints or explore the different API modules available.Server Authentication
Learn how to use getAuth() to verify incoming requests.
User Management
Create, update, and ban user profiles via the API.
