StackBE connects with the tools you already use. API-first design means it works with any framework or platform.
StackBE works with any framework through its REST API. The TypeScript SDK (@stackbe/sdk) provides the best experience for JavaScript/TypeScript projects.
Full integration guide with App Router, middleware auth, and server component entitlements.
Use the TypeScript SDK in any React application with hooks for entitlements and auth state.
Server-side SDK with Express middleware for usage tracking and entitlement checks.
Subscription billing for browser extensions with magic link auth and offline caching.
Electron, Tauri, and native app subscription patterns with offline validation.
StackBE's REST API works with any language or framework. Use standard HTTP calls if an SDK isn't available.
@stackbe/sdknpm npm install @stackbe/sdkimport { StackBE } from '@stackbe/sdk';
const stackbe = new StackBE({
apiKey: process.env.STACKBE_API_KEY,
appId: process.env.STACKBE_APP_ID,
});
// Auth
await stackbe.auth.sendMagicLink('user@example.com');
// Checkout
const { url } = await stackbe.checkout.createSession({
customer: 'cust_123',
planId: 'plan_pro',
successUrl: 'https://yourapp.com/success',
});
// Entitlements
const { hasAccess } = await stackbe.entitlements.check(
'cust_123',
'premium_feature'
);40+ REST API endpoints covering authentication, subscriptions, entitlements, customers, organizations, analytics, and more. Full OpenAPI specification available.
StackBE sends webhook events for subscription lifecycle changes. Stay in sync with your application without polling.