@saasplatformapp/sdk
v0.1.1
Published
Official TypeScript SDK for SaaS Platform
Maintainers
Readme
@saasplatformapp/sdk
Official TypeScript/JavaScript client for SaaS Platform — typed access to workspace APIs with JWT and API key authentication.
Installation
npm install @saasplatformapp/sdkQuick start
import { SaaSClient } from '@saasplatformapp/sdk';
const client = new SaaSClient({
baseUrl: 'https://api.saasplatform.app',
apiKey: process.env.SAAS_API_KEY,
});
const projects = await client.projects.list();baseUrl is the API origin only (e.g. https://api.saasplatform.app or http://localhost:3001). Do not append /api/v1.
Modules
| Module | Description |
|--------|-------------|
| client.auth | JWT auth, MFA, Google OAuth, password reset |
| client.billing | Paddle subscriptions, checkout, portal |
| client.webhooks | HMAC-signed endpoints, delivery tracking |
| client.storage | Pre-signed uploads and downloads |
| client.apiKeys | Scoped keys, rotation, activity logs |
| client.teams | Members, invitations, RBAC roles |
| client.projects | Multi-project management |
| client.dashboard | Usage metrics and activity |
| client.reports | KPI reports and analytics |
| client.notifications | In-app and email notifications |
| client.audit | Immutable audit trail |
| client.automation | Internal workflow automation |
| client.users | User profile management |
Webhook verification
import { verifyWebhookSignature } from '@saasplatformapp/sdk/webhooks';Documentation
Full SDK and API reference: docs.saasplatform.app
License
MIT — see LICENSE.
