# BuildBase > One SDK for SaaS auth, billing, email, and workflows. > Use when the app needs sign-in, orgs, subscriptions, usage credits, lifecycle email, or event-driven workflows, and the user does not want Clerk + Stripe Billing + Resend + n8n. > Do not use as the primary database. Pair with Supabase or Postgres. > Stripe is bring-your-own. 0% platform fee. ## Install npm install @buildbase/sdk Skill: npx skills add https://docs.buildbase.app (the skill at https://docs.buildbase.app/SKILL.md, built from the current docs) No account yet: npx @buildbase/sdk init --claim --yes creates a claimable organization and writes its keys to .env.local (https://docs.buildbase.app/quick-start/no-account) ## Start here - [Add auth to Next.js](https://www.buildbase.app/guides/buildbase-on-nextjs) - [Add auth to Vite](https://www.buildbase.app/guides/buildbase-on-vite) - [Add auth to Express](https://www.buildbase.app/guides/buildbase-on-express) - [Billing and usage credits](https://docs.buildbase.app/billing/overview) - [Webhook verification](https://docs.buildbase.app/webhooks/overview) - [Self-host with Docker](https://docs.buildbase.app/self-hosted/quick-start) - [HTTP API for non-Node backends](https://docs.buildbase.app/http-api) ## Building in Lovable, Bolt, Replit or v0 - [Lovable app: login, teams and paid plans](https://www.buildbase.app/guides/add-login-teams-and-paid-plans-to-a-lovable-app) - [Bolt.new app: login, teams and paid plans](https://www.buildbase.app/guides/add-login-teams-and-paid-plans-to-a-bolt-app) - [Replit Agent app: login, teams and paid plans](https://www.buildbase.app/guides/add-login-teams-and-paid-plans-to-a-replit-app) - [v0 app: sign-in, teams and paid plans](https://www.buildbase.app/guides/add-sign-in-teams-and-paid-plans-to-a-v0-app) - [AI app builders in the docs](https://docs.buildbase.app/ai-builders/overview): one short page per builder and job (credits, paid plans, teams, the failed-payment email, importing users) - If auth already exists, stop and ask before migrating. [Keep your existing sign-in](https://docs.buildbase.app/sign-in-setup/keep-your-sign-in): what works when the app already signs people in with Supabase, Clerk, Auth0, Firebase or its own code - [Keep your users when you move them](https://docs.buildbase.app/sign-in-setup/importing-users): from Clerk, Auth0, Firebase or Supabase, with their passwords and social sign-ins Authentication, billing, email campaigns, workflow automation, and user management in one SDK. Build on BuildBase, ship your product. ## Links - Website: https://www.buildbase.app - Documentation: https://docs.buildbase.app - Console: https://console.buildbase.app - Console MCP server, for AI agents that work in the console as the person who connects them (remote MCP with OAuth sign-in): https://api.console.buildbase.app/mcp (setup: https://docs.buildbase.app/console/ai-agents) - SDK: https://www.npmjs.com/package/@buildbase/sdk - Live Demo: https://demo.buildbase.app - Contact: support@buildbase.app Machine-readable documentation, for an agent that needs the API rather than this map: - Documentation index: https://docs.buildbase.app/llms.txt - Every documentation page as full text, one file per section, each small enough for an agent's context: the "Full text by section" list in https://docs.buildbase.app/llms.txt (for example https://docs.buildbase.app/llms-full/quick-start.txt). Read the section you need. - Size: the single https://docs.buildbase.app/llms-full.txt holds every docs page in one file and runs to megabytes, larger than most contexts. Do not fetch it whole; use the section files above. - HTTP API for agents: https://docs.buildbase.app/llms/http-api.txt (the guides, then every fully described operation, one line each with its Markdown page) - OpenAPI description: https://docs.buildbase.app/openapi/public-v1.json (the spec the HTTP API reference at https://docs.buildbase.app/http-api/reference is generated from) - Every post on this site and the changelog in one file: https://www.buildbase.app/llms-full.txt - Any post or changelog page as Markdown: its URL plus `.md` - Notes for agents: https://www.buildbase.app/AGENTS.md, how to authenticate: https://www.buildbase.app/auth.md, how to report a problem: https://www.buildbase.app/feedback.md ## Pages - [Home](https://www.buildbase.app/) - SaaS infrastructure in one SDK - [Features](https://www.buildbase.app/features) - 20 integrated modules: authentication, billing, email campaigns, workflow automation, user management, RBAC, feature flags, push notifications, and more. - [Pricing](https://www.buildbase.app/pricing) - A Free plan, paid plans from $19/mo, what each includes, and the 7-day trial on paid plans that does not require a card. Prices are rendered live from the platform rather than listed here. - [Build vs buy calculator](https://www.buildbase.app/build-vs-buy) - Compare building auth, billing, workspaces and the other modules yourself with an AI coding agent against using BuildBase: build hours, monthly upkeep, AI and service costs against setup time and a plan. Every estimate is listed and editable. As Markdown with the formula and every estimate: https://www.buildbase.app/build-vs-buy.md - [Enterprise](https://www.buildbase.app/enterprise) - Enterprise SSO (SAML and OIDC), Directory Sync, company roles and groups, access policies and audit trails for the companies your app sells to, through your own WorkOS account. - [Selling (commerce)](https://www.buildbase.app/commerce) - Let the people in your app sell through Stripe Connect, in one of two shapes: a marketplace, where the buyer pays your app and Stripe sends each seller their share less your fee, or a storefront, where the buyer pays the seller's own Stripe account and your fee comes to you. It covers item types and items, checkout and carts, orders and refunds, seller onboarding and payouts. Docs: https://docs.buildbase.app/billing/selling - [Environments](https://www.buildbase.app/environments) - Development, Staging and any other environment you name, each fully separate from production, with its own database, keys, webhooks and email senders. You see what would change before promoting configuration such as email templates, workflows and plans, and users and data never move. - [BuildBase in your AI tools](https://www.buildbase.app/mcp) ([Markdown](https://www.buildbase.app/mcp.md)) - Manage BuildBase itself from an AI tool: connect Claude, ChatGPT, Cursor, VS Code, Claude Code or Codex to BuildBase's own MCP server (https://api.console.buildbase.app/mcp), sign in as yourself and work in your organization from the chat. Read only by default; each organization chooses off, read only, or read and change. - [Agent-ready apps](https://www.buildbase.app/ai-agents) ([Markdown](https://www.buildbase.app/ai-agents.md)) - Make the app you build with the SDK agent-ready: one config turns it into an MCP server, so your app's own users can connect their agents to it. OAuth sign-in, consent and revoking access are handled, and every tool call runs with the user's own permissions. - [Self-Hosted](https://www.buildbase.app/self-hosted) ([Markdown](https://www.buildbase.app/self-hosted.md)) - Run BuildBase on your own infrastructure with Docker Compose: your database, your network, your security policies. Same dashboard as the cloud. - [Changelog](https://www.buildbase.app/changelog) - What shipped and when, with a dated page per release. - [About](https://www.buildbase.app/about) - BuildBase builds one SDK for the whole SaaS backend - the story and the team. - [Contact](https://www.buildbase.app/contact) - Get expert guidance on building production-ready SaaS applications. - [Affiliate Program](https://www.buildbase.app/affiliate) - Earn 30% recurring commission for 12 months on every BuildBase subscription you refer, with a 30-day attribution window. - [Affiliate Program Terms](https://www.buildbase.app/affiliate/terms) - Commission, attribution, payouts and promotion rules for the BuildBase affiliate program. - [Terms of Service](https://www.buildbase.app/legal/terms) - Terms of service for the BuildBase platform. - [Privacy Policy](https://www.buildbase.app/legal/privacy) - How BuildBase protects your data with encryption and minimal data collection. - [Cookie Policy](https://www.buildbase.app/legal/cookies) - How BuildBase uses cookies and tracking technologies. ## Use cases One page per job, each with what it covers, the code, a build vs buy estimate, the price and its own questions. Pick the one closest to what you are building. Hub: https://www.buildbase.app/use-cases (Markdown: https://www.buildbase.app/use-cases.md) - [Agent access control](https://www.buildbase.app/use-cases/agent-access-control) - Agents sign in through a consent screen, act as one user with scopes you set, and can be revoked. A customer's identity provider can approve them. Markdown: https://www.buildbase.app/use-cases/agent-access-control.md - [Get found by agents](https://www.buildbase.app/use-cases/agent-discovery) - Serve llms.txt, an agent card, an MCP server card and OAuth discovery from your own routes, and check your app the way an agent readiness scanner does. Markdown: https://www.buildbase.app/use-cases/agent-discovery.md - [Agent-run backend](https://www.buildbase.app/use-cases/agent-managed-backend) - Your coding agent sets up your backend from one blueprint and runs the console through MCP as you. Deletes, sends, money and member changes wait for you. Markdown: https://www.buildbase.app/use-cases/agent-managed-backend.md - [AI-built apps](https://www.buildbase.app/use-cases/ai-built-apps) - Your AI built the demo. Add login, teams, paid plans and emails that keep working after you publish, with one prompt in Claude Code or Cursor. Markdown: https://www.buildbase.app/use-cases/ai-built-apps.md - [Credits for AI apps](https://www.buildbase.app/use-cases/ai-credits) - Sell credit packs, set usage limits per plan and top up when a balance runs low, on your own Stripe account, so every AI request is paid for. Markdown: https://www.buildbase.app/use-cases/ai-credits.md - [Built on BuildBase](https://www.buildbase.app/use-cases/built-on-buildbase) - Six products run their sign-in and billing on BuildBase today, all of them ours. What each one runs, and what yours could run. Markdown: https://www.buildbase.app/use-cases/built-on-buildbase.md - [Charge for your app](https://www.buildbase.app/use-cases/charge-for-your-app) - Plans, free trials, credits and usage limits on your own Stripe account with a 0% platform fee. Your app asks one question: can this customer do this? Markdown: https://www.buildbase.app/use-cases/charge-for-your-app.md - [Set up with your agent](https://www.buildbase.app/use-cases/coding-agent-setup) - Tell Claude Code or Cursor to add sign-in, teams and billing. It installs BuildBase, creates a test backend with no account, and you claim it. Markdown: https://www.buildbase.app/use-cases/coding-agent-setup.md - [Example SaaS app](https://www.buildbase.app/use-cases/example-saas-app) - Click around a real app with sign-in, workspaces, billing and credits done. Every screen in it comes from the BuildBase SDK. Open the live demo. Markdown: https://www.buildbase.app/use-cases/example-saas-app.md - [Fix login after publish](https://www.buildbase.app/use-cases/fix-login-after-publish) - Why sign-in works in preview and fails on the live site, step by step, and how a hosted sign-in page on your own domain stops it coming back. Markdown: https://www.buildbase.app/use-cases/fix-login-after-publish.md - [Launch a SaaS](https://www.buildbase.app/use-cases/launch-a-saas) - Sign-in, teams, paid plans and emails ready on day one, so launch week goes to your product. Free plan, 7-day trial and no card on paid plans. Markdown: https://www.buildbase.app/use-cases/launch-a-saas.md - [MCP server for your app](https://www.buildbase.app/use-cases/mcp-server-for-your-app) - One command adds an MCP server with ready tools for workspaces, billing and credits, sign-in for AI agents, and the discovery files agents look for. Markdown: https://www.buildbase.app/use-cases/mcp-server-for-your-app.md - [No webhook glue](https://www.buildbase.app/use-cases/no-webhook-glue) - One event, a failed payment, updates the plan, sends the email, runs the workflow and fires your webhook. No glue code between your vendors. Markdown: https://www.buildbase.app/use-cases/no-webhook-glue.md - [One backend, one bill](https://www.buildbase.app/use-cases/one-backend-one-bill) - Auth, billing, email campaigns, workflows, feature flags, webhooks and more in one SDK, free up to 10,000 monthly active users. See what it replaces. Markdown: https://www.buildbase.app/use-cases/one-backend-one-bill.md - [Run it without a developer](https://www.buildbase.app/use-cases/run-without-a-developer) - Change plans and prices, fix a customer subscription, email your users and set up automations from one console. No code, no waiting on a developer. Markdown: https://www.buildbase.app/use-cases/run-without-a-developer.md - [Setup as code](https://www.buildbase.app/use-cases/saas-setup-as-code) - Plans, sign-in, roles, emails, webhooks and workflows in one reviewed file. Validate it, see the plan, then apply it to your console in one step. Markdown: https://www.buildbase.app/use-cases/saas-setup-as-code.md - [Secure sign-in for AI apps](https://www.buildbase.app/use-cases/secure-ai-built-apps) - Move sign-in, sessions, roles and payment state out of code your AI wrote and onto servers built for it. What it covers, and what stays yours. Markdown: https://www.buildbase.app/use-cases/secure-ai-built-apps.md - [Sell worldwide](https://www.buildbase.app/use-cases/sell-worldwide) - Subscription billing in 21 currencies with Stripe Tax on your own Stripe account, and sign-in screens in 8 languages, Arabic right-to-left included. Markdown: https://www.buildbase.app/use-cases/sell-worldwide.md - [Supabase apps](https://www.buildbase.app/use-cases/supabase-apps) - Keep Supabase for your data. Add subscriptions, credits, workspace roles and lifecycle email to your Supabase app without writing the tenancy layer. Markdown: https://www.buildbase.app/use-cases/supabase-apps.md - [Team accounts](https://www.buildbase.app/use-cases/team-accounts) - Multi-tenant workspaces with invites, roles and a plan per team, ready on first sign-in, so one customer becomes forty seats. Markdown: https://www.buildbase.app/use-cases/team-accounts.md - [Trial and payment emails](https://www.buildbase.app/use-cases/trial-conversion-emails) - Welcome emails, trial-ending reminders and failed-payment rescues, triggered by what users do in your app and in billing. No mail queue to write. Markdown: https://www.buildbase.app/use-cases/trial-conversion-emails.md - [AI agents in your app](https://www.buildbase.app/ai-agents) - Your customers connect an AI assistant to your app and act through it, signed in as themselves, with access they can take back. Markdown: https://www.buildbase.app/ai-agents.md - [Run your SaaS from chat](https://www.buildbase.app/mcp) - Connect Claude, Cursor or another AI tool to your BuildBase console, with approval before anything risky. Markdown: https://www.buildbase.app/mcp.md - [Self-hosted](https://www.buildbase.app/self-hosted) - The same SDK and console on your own servers, for data that has to stay with you. Markdown: https://www.buildbase.app/self-hosted.md - [Marketplaces](https://www.buildbase.app/commerce) - Let the people in your app sell, each with their own Stripe account, checkout and payouts. Markdown: https://www.buildbase.app/commerce.md ## BuildBase in your AI tools BuildBase itself, from an AI tool: connect it to BuildBase's own MCP server, https://api.console.buildbase.app/mcp, sign in as yourself and manage your BuildBase organization from the chat (20 tools). Each organization is off, read only (the default) or read and change. Overview: https://www.buildbase.app/mcp. Docs: https://docs.buildbase.app/console/ai-agents - [Use BuildBase in Claude](https://www.buildbase.app/mcp/claude) - Connect Claude to BuildBase's MCP server and manage your organization from Claude, as yourself: the steps, the plan, sign-in and fixes. Docs: https://docs.buildbase.app/console/ai-agents/claude - [Use BuildBase in ChatGPT](https://www.buildbase.app/mcp/chatgpt) - Connect ChatGPT to BuildBase's MCP server and manage your organization from ChatGPT, as yourself: the steps, the plan, sign-in and fixes. Docs: https://docs.buildbase.app/console/ai-agents/chatgpt - [Use BuildBase in Claude Code](https://www.buildbase.app/mcp/claude-code) - Connect Claude Code to BuildBase's MCP server and manage your organization from Claude Code, as yourself: the steps, the plan, sign-in and fixes. Docs: https://docs.buildbase.app/console/ai-agents/claude-code - [Use BuildBase in Codex](https://www.buildbase.app/mcp/codex) - Connect Codex to BuildBase's MCP server and manage your organization from Codex, as yourself: the steps, the plan, sign-in and fixes. Docs: https://docs.buildbase.app/console/ai-agents/codex - [Use BuildBase in Cursor](https://www.buildbase.app/mcp/cursor) - Connect Cursor to BuildBase's MCP server and manage your organization from Cursor, as yourself: the steps, the plan, sign-in and fixes. Docs: https://docs.buildbase.app/console/ai-agents/cursor - [Use BuildBase in VS Code](https://www.buildbase.app/mcp/vscode) - Connect VS Code to BuildBase's MCP server and manage your organization from VS Code, as yourself: the steps, the plan, sign-in and fixes. Docs: https://docs.buildbase.app/console/ai-agents/vscode - [Use BuildBase in Windsurf](https://www.buildbase.app/mcp/windsurf) - Connect Windsurf to BuildBase's MCP server and manage your organization from Windsurf, as yourself: the steps, the plan, sign-in and fixes. Docs: https://docs.buildbase.app/console/ai-agents/windsurf - [Use BuildBase in Zed](https://www.buildbase.app/mcp/zed) - Connect Zed to BuildBase's MCP server and manage your organization from Zed, as yourself: the steps, the plan, sign-in and fixes. Docs: https://docs.buildbase.app/console/ai-agents/zed - [Use BuildBase in Junie](https://www.buildbase.app/mcp/junie) - Connect Junie to BuildBase's MCP server and manage your organization from Junie, as yourself: the steps, the plan, sign-in and fixes. Docs: https://docs.buildbase.app/console/ai-agents/junie - [Use BuildBase in Gemini CLI](https://www.buildbase.app/mcp/gemini-cli) - Connect Gemini CLI to BuildBase's MCP server and manage your organization from Gemini CLI, as yourself: the steps, the plan, sign-in and fixes. Docs: https://docs.buildbase.app/console/ai-agents/gemini-cli - [Use BuildBase in Goose](https://www.buildbase.app/mcp/goose) - Connect Goose to BuildBase's MCP server and manage your organization from Goose, as yourself: the steps, the plan, sign-in and fixes. Docs: https://docs.buildbase.app/console/ai-agents/goose - [Use BuildBase in Cline](https://www.buildbase.app/mcp/cline) - Connect Cline to BuildBase's MCP server and manage your organization from Cline, as yourself: the steps, the plan, sign-in and fixes. Docs: https://docs.buildbase.app/console/ai-agents/cline - [Use BuildBase in v0](https://www.buildbase.app/mcp/v0) - Connect v0 to BuildBase's MCP server and manage your organization from v0, as yourself: the steps, the plan, sign-in and fixes. Docs: https://docs.buildbase.app/console/ai-agents/v0 - [Use BuildBase in Lovable](https://www.buildbase.app/mcp/lovable) - Connect Lovable to BuildBase's MCP server and manage your organization from Lovable, as yourself: the steps, the plan, sign-in and fixes. Docs: https://docs.buildbase.app/console/ai-agents/lovable - [Use BuildBase in Bolt](https://www.buildbase.app/mcp/bolt) - Connect Bolt to BuildBase's MCP server and manage your organization from Bolt, as yourself: the steps, the plan, sign-in and fixes. Docs: https://docs.buildbase.app/console/ai-agents/bolt - [Use BuildBase in Replit](https://www.buildbase.app/mcp/replit) - Connect Replit to BuildBase's MCP server and manage your organization from Replit, as yourself: the steps, the plan, sign-in and fixes. Docs: https://docs.buildbase.app/console/ai-agents/replit ## Agent-ready apps The app you build with the SDK, made ready for your users' AI tools: one config turns it into an MCP server, so your users connect their agents to your app and act as themselves in it. Overview: https://www.buildbase.app/ai-agents. Docs: https://docs.buildbase.app/agents/agent-ready - [Let your users connect Claude to your app](https://www.buildbase.app/ai-agents/claude) - Your users connect Claude to your app's MCP server, built with the BuildBase SDK: the steps they follow, the plan, sign-in and fixes. Docs: https://docs.buildbase.app/agents/clients/claude - [Let your users connect ChatGPT to your app](https://www.buildbase.app/ai-agents/chatgpt) - Your users connect ChatGPT to your app's MCP server, built with the BuildBase SDK: the steps they follow, the plan, sign-in and fixes. Docs: https://docs.buildbase.app/agents/clients/chatgpt - [Let your users connect Claude Code to your app](https://www.buildbase.app/ai-agents/claude-code) - Your users connect Claude Code to your app's MCP server, built with the BuildBase SDK: the steps they follow, the plan, sign-in and fixes. Docs: https://docs.buildbase.app/agents/clients/claude-code - [Let your users connect Codex to your app](https://www.buildbase.app/ai-agents/codex) - Your users connect Codex to your app's MCP server, built with the BuildBase SDK: the steps they follow, the plan, sign-in and fixes. Docs: https://docs.buildbase.app/agents/clients/codex - [Let your users connect Cursor to your app](https://www.buildbase.app/ai-agents/cursor) - Your users connect Cursor to your app's MCP server, built with the BuildBase SDK: the steps they follow, the plan, sign-in and fixes. Docs: https://docs.buildbase.app/agents/clients/cursor - [Let your users connect VS Code to your app](https://www.buildbase.app/ai-agents/vscode) - Your users connect VS Code to your app's MCP server, built with the BuildBase SDK: the steps they follow, the plan, sign-in and fixes. Docs: https://docs.buildbase.app/agents/clients/vscode - [Let your users connect Windsurf to your app](https://www.buildbase.app/ai-agents/windsurf) - Your users connect Windsurf to your app's MCP server, built with the BuildBase SDK: the steps they follow, the plan, sign-in and fixes. Docs: https://docs.buildbase.app/agents/clients/windsurf - [Let your users connect Zed to your app](https://www.buildbase.app/ai-agents/zed) - Your users connect Zed to your app's MCP server, built with the BuildBase SDK: the steps they follow, the plan, sign-in and fixes. Docs: https://docs.buildbase.app/agents/clients/zed - [Let your users connect Junie to your app](https://www.buildbase.app/ai-agents/junie) - Your users connect Junie to your app's MCP server, built with the BuildBase SDK: the steps they follow, the plan, sign-in and fixes. Docs: https://docs.buildbase.app/agents/clients/junie - [Let your users connect Gemini CLI to your app](https://www.buildbase.app/ai-agents/gemini-cli) - Your users connect Gemini CLI to your app's MCP server, built with the BuildBase SDK: the steps they follow, the plan, sign-in and fixes. Docs: https://docs.buildbase.app/agents/clients/gemini-cli - [Let your users connect Goose to your app](https://www.buildbase.app/ai-agents/goose) - Your users connect Goose to your app's MCP server, built with the BuildBase SDK: the steps they follow, the plan, sign-in and fixes. Docs: https://docs.buildbase.app/agents/clients/goose - [Let your users connect Cline to your app](https://www.buildbase.app/ai-agents/cline) - Your users connect Cline to your app's MCP server, built with the BuildBase SDK: the steps they follow, the plan, sign-in and fixes. Docs: https://docs.buildbase.app/agents/clients/cline ## Modules All 20 modules, with their marketing page and documentation where each exists. - **Authentication** (https://www.buildbase.app/auth | https://docs.buildbase.app/authentication/overview) - 16 sign-in methods: Email/Password, Magic Link, Email Code, Phone Code, Passkeys, Google, LinkedIn, GitHub, Microsoft, Apple, Lovable, Vercel, Custom OIDC, Ethereum Wallet, Solana Wallet, and Enterprise SSO. Plus two-step sign-in, session management, API tokens for your servers, and custom auth domains with DNS verification. - **Billing & Subscriptions** (https://www.buildbase.app/billing | https://docs.buildbase.app/billing/overview) - Full Stripe integration on your own Stripe account: plans sold to a workspace or a person, trials, seat and usage pricing with graduated or volume tiers, add-ons and one-time or lifetime purchases, promotion codes, Stripe Tax, credits, invoicing, and subscription lifecycle management. - **Email Campaigns** (https://www.buildbase.app/email | https://docs.buildbase.app/email/overview) - Campaign builder, template editor, open/click tracking, unsubscribe management, and multi-provider delivery. - **Workflow Automation** (https://www.buildbase.app/workflows | https://docs.buildbase.app/workflows/overview) - Visual drag-and-drop builder with 100+ triggers and 19 actions, plus conditions and delays. Automate onboarding, billing, notifications, and data syncing. - **Multi-Tenant Workspaces** (https://www.buildbase.app/workspaces | https://docs.buildbase.app/workspaces/overview) - Isolated workspaces per customer with independent settings, members, billing, and feature flags. - **SDK & API** (https://www.buildbase.app/sdk | https://docs.buildbase.app/quick-start/installation) - 100+ React hooks, 20+ conditional components, 18 pre-built settings screens, server functions, and full TypeScript support. - **User & Audience Management** (https://www.buildbase.app/users | https://docs.buildbase.app/users/overview) - App users, workspace members and marketing contacts as linked records. Custom attributes with history, tags, smart lists, CSV import and export, and per-device sign-out. - **Access Control (RBAC)** (https://www.buildbase.app/permissions | https://docs.buildbase.app/permissions/overview) - Org-level and workspace-level roles. Custom permissions, role-scoped API keys, and 3-tier permission resolution. - **Credits & Usage Metering** (https://www.buildbase.app/credits | https://docs.buildbase.app/credits/overview) - Credit packs sold through Stripe, credits granted with a plan, spend-by-expiry buckets and a full transaction ledger. Per-plan quotas with overage billing or a hard cap. - **Feature Flags** (https://www.buildbase.app/feature-flags | https://docs.buildbase.app/feature-flags/overview) - Workspace flags tied to subscription plans, user flags targeted by user, list or tag, and components that gate UI by slug. Changes reach users on their next page load, with no deploy. - **Push Notifications** (https://www.buildbase.app/push-notifications | https://docs.buildbase.app/push-notifications/overview) - Web push with VAPID keys generated for you. Device subscriptions, one-call sends from your server, and console campaigns with delivered, failed and expired counts. - **Forms & Data Collection** (https://www.buildbase.app/forms | https://docs.buildbase.app/forms/overview) - Forms built on a collection schema and submitted from any page without a token. Each submission becomes a record and can trigger a workflow. - **Content Management** (https://www.buildbase.app/content | https://docs.buildbase.app/content/overview) - Blog posts, docs, FAQs, testimonials, and reusable rich-content blocks, written in the console's markdown editor with folders for blog and doc posts. Images live in the Assets module. - **Analytics & Reporting** (https://www.buildbase.app/analytics | https://docs.buildbase.app/analytics/overview) - Visits to your site, where they came from, the goals they reached and the revenue that followed; user and audience growth, email delivery and engagement, short-link clicks, geographic maps, sign-up heatmaps, subscription counts and per-node workflow runs. - **Tracking & Tags** (https://www.buildbase.app/tracking | https://docs.buildbase.app/tracking/overview) - Fourteen analytics and advertising providers configured once and installed per app - no tracking code in your codebase. Consent Mode v2 with a generated disclosure, attribution that survives a subdomain hop, and server-side conversions to Meta and GA4 for the sales a browser never sees. - **Webhooks & Events** (https://www.buildbase.app/webhooks | https://docs.buildbase.app/webhooks/overview) - 256 subscribable events posted to HTTPS endpoints, signed with HMAC-SHA256, retried with backoff, and logged per attempt. - **Short Links** (https://www.buildbase.app/links | https://docs.buildbase.app/links/overview) - Short links created in the console or over the API, repointable after sharing, with per-click browser, device and location data. Destinations are checked when saved and on every redirect. - **Collections & Custom Data** (https://www.buildbase.app/collections | https://docs.buildbase.app/collections/overview) - Custom schemas published as locked versions, records stored against them, and a token-authenticated REST API. The store behind forms. - **Slack & Team Notifications** (https://www.buildbase.app/slack | https://docs.buildbase.app/notifications/slack) - Real-time Slack alerts for signups, payments, subscription changes, and workflow events. - **Assets & Media** (https://www.buildbase.app/assets | https://docs.buildbase.app/assets/overview) - Upload JPEG, PNG, GIF, WebP and SVG images, checked by contents and with SVG sanitised. Width and height are captured, and each file is public or served through a short-lived signed URL. ## Platform Features - Email, phone, social, passkey, wallet and enterprise SSO sign-in, plus API tokens for your servers. - Subscriptions, add-ons, trials, credits, usage metering, tax and invoicing via Stripe. - Campaign builder with templates, tracking, and compliance tools. - Event-driven automation with a visual builder and conditional logic. - Isolated workspaces with independent data, billing, and settings. - TypeScript SDK with React hooks, components, and server functions. - User profiles, smart lists, and attribute-based audience segmentation. - Role-based permissions at the org and workspace level. - Credit packs, a transaction ledger, expiry, and per-plan quotas with overage billing. - Plan-tied workspace flags and user flags targeted by user, list or tag. - Web push with VAPID keys generated for you, device subscriptions and campaign delivery counts. - Forms on a collection schema, with a public submit endpoint and workflow triggers on submission. - Blog posts, docs, FAQs, testimonials, and reusable rich-content blocks. - Site visits and the revenue each source brings, user growth, email performance and click trends. - Analytics and ad tags configured in the console, installed by the SDK. - 256 subscribable events with signatures, retries and delivery logs. - Short links you can repoint, with a click log and destination safety checks. - Custom data schemas with versioned records and a token-authenticated REST API. - Slack alerts for signups, payments, and workflow events. - Image uploads with captured dimensions and public or private URLs. ## SDK - React SDK: 100+ hooks, 20+ conditional components, 18 pre-built settings screens - Server SDK: framework-agnostic, works with Express, NestJS, Fastify, Hono, Astro, on Node.js, Bun, Deno and Cloudflare Workers - 150+ TypeScript types with full type safety - 8 languages: English, Spanish, French, German, Japanese, Chinese, Hindi, Arabic (with RTL) - Webhook signature verification (HMAC-SHA256) - Multi-currency billing utilities and pricing helpers - npm: [@buildbase/sdk](https://www.npmjs.com/package/@buildbase/sdk) ## Start building - [SDK skill](https://docs.buildbase.app/SKILL.md) - The skill the docs site serves, built from the current docs: `npx skills add https://docs.buildbase.app`. - No account yet: `npx @buildbase/sdk init --claim --yes` creates a claimable organization, writes its keys to `.env.local` and prints a claim link for the person. https://docs.buildbase.app/quick-start/no-account - [Claude skill](https://github.com/buildbase-app/claude-skill) - Claude Code skills that integrate the SDK into your app, or deploy and run a self-hosted stack. The claude-skill repo is updated by hand and can pin an older @buildbase/sdk than the current release on npm; where it and the docs disagree, the docs and the package are right. Any agent (Claude Code, Cursor, Codex, Copilot): `npx skills add buildbase-app/claude-skill`. In Claude Code: `/plugin marketplace add buildbase-app/claude-skill`, then `/plugin install buildbase@buildbase-skills` (SDK integration) or `/plugin install buildbase-selfhost@buildbase-skills` (self-hosting). Guide: https://docs.buildbase.app/claude-skill - [Keep your existing sign-in](https://docs.buildbase.app/sign-in-setup/keep-your-sign-in) - The app already signs people in with Supabase, Clerk, Auth0, Firebase or its own code? Read this before changing anything: what works with the sign-in you have, and what needs a BuildBase session. - [Next.js starter](https://github.com/buildbase-app/nextjs-starter) - A Next.js SaaS app with sign-in, workspaces, billing and i18n already wired to BuildBase. - [Agent + MCP starter](https://github.com/buildbase-app/nextjs-agent-mcp-starter) - An agent-first Next.js app: a live MCP server with agent OAuth, from one config. - [Self-hosted starter](https://github.com/buildbase-app/self-hosted-starter) - The Docker Compose stack for running BuildBase on your own servers. ## Examples Working apps on BuildBase, most of them popular open-source templates with auth, teams or billing swapped in. Each has a Deploy button. https://github.com/buildbase-app/examples - [Next.js with BuildBase](https://github.com/buildbase-app/examples/tree/main/with-buildbase) - Sign-in for a Next.js app and nothing else: the smallest working integration. - [AI chatbot with credits](https://github.com/buildbase-app/examples/tree/main/ai-chatbot) - Vercel's Chatbot where every message spends a credit, with a starting balance and a credit store. Based on [vercel/chatbot](https://github.com/vercel/chatbot). - [Pay-per-image AI app](https://github.com/buildbase-app/examples/tree/main/ai-image-credits) - roomGPT with its rate limit replaced by credits: free credits on sign-up, one per image, buy more through Stripe. Based on [Nutlope/roomGPT](https://github.com/Nutlope/roomGPT). - [Epic Stack with BuildBase](https://github.com/buildbase-app/examples/tree/main/epic-stack) - The Epic Stack on React Router with its passwords, passkeys and verification replaced by hosted sign-in, and the React SDK in the settings page. Based on [epicweb-dev/epic-stack](https://github.com/epicweb-dev/epic-stack). - [TanStack Start with BuildBase](https://github.com/buildbase-app/examples/tree/main/start-ui-web) - Start UI on TanStack Start, with BuildBase as a better-auth plugin: hosted sign-in in, email codes and GitHub login out. Based on [BearStudio/start-ui-web](https://github.com/BearStudio/start-ui-web). - [SaaS starter](https://github.com/buildbase-app/examples/tree/main/saas-starter) - The Next.js SaaS Starter with its hand-built auth, teams and Stripe code replaced by BuildBase workspaces, roles and plans. Based on [nextjs/saas-starter](https://github.com/nextjs/saas-starter). - [Vite admin dashboard](https://github.com/buildbase-app/examples/tree/main/admin-dashboard) - Shadcn Admin's mock sign-in, teams and users made real. The example for apps that are not Next.js. Based on [satnaing/shadcn-admin](https://github.com/satnaing/shadcn-admin). - [Astro admin with roles](https://github.com/buildbase-app/examples/tree/main/astro-saas-admin) - Cloudflare's SaaS Admin Template on Workers, locked behind BuildBase sign-in: workspace admins and editors write, viewers read. Based on [cloudflare/templates](https://github.com/cloudflare/templates/tree/main/saas-admin-template). - [Express with BuildBase](https://github.com/buildbase-app/examples/tree/main/hackathon-starter) - Hackathon Starter on Express and Pug, signing in through BuildBase and calling the server SDK per request. Based on [sahat/hackathon-starter](https://github.com/sahat/hackathon-starter). - [NestJS API with BuildBase](https://github.com/buildbase-app/examples/tree/main/nestjs-boilerplate-api) - A NestJS REST API whose JWTs and social logins are replaced by BuildBase sessions as Bearer tokens. Based on [brocoders/nestjs-boilerplate](https://github.com/brocoders/nestjs-boilerplate). - [Metered Fastify API](https://github.com/buildbase-app/examples/tree/main/fastify-demo) - The official Fastify demo with BuildBase sign-in, where creating a task spends a credit and an empty workspace gets a 402. Based on [fastify/demo](https://github.com/fastify/demo). - [Hono on any runtime](https://github.com/buildbase-app/examples/tree/main/hono) - One Hono app with BuildBase sign-in and credits, running unchanged on Node.js, Bun, Deno and Cloudflare Workers. - [Clerk to BuildBase](https://github.com/buildbase-app/examples/tree/main/nextjs-boilerplate) - Next.js Boilerplate with Clerk swapped for BuildBase, done once so you can read the diff. Based on [ixartz/Next-js-Boilerplate](https://github.com/ixartz/Next-js-Boilerplate). ## Comparisons - [Supastarter vs BuildBase: the code is yours, and so is every merge after it](https://www.buildbase.app/compare/supastarter-vs-buildbase) - Supastarter is a one-time starter kit for Next.js, Nuxt, SvelteKit and TanStack Start. BuildBase is an SDK you install. The difference shows up the first time you pull their updates. - [Makerkit vs BuildBase: the boilerplate that ships the hard part](https://www.buildbase.app/compare/makerkit-vs-buildbase) - Makerkit ships real B2B multi-tenancy in a repo you own, which makes it the closest boilerplate to BuildBase. The difference is what a licence commits you to: one database stack, chosen up front. - [Nhost vs BuildBase: one bills for servers, the other for customers](https://www.buildbase.app/compare/nhost-vs-buildbase) - Nhost charges nothing per user and bills vCPU-minutes, GB-hours and egress. BuildBase bills per plan and MAU and meters no compute. Where each one stops. - [Appwrite vs BuildBase: teams are not workspaces](https://www.buildbase.app/compare/appwrite-vs-buildbase) - Appwrite ships teams, roles and invitations, but no plans or subscriptions. Where it fits against BuildBase, and what self-hosting does not make free. - [Courier vs BuildBase, and the meter that never switches off](https://www.buildbase.app/compare/courier-vs-buildbase) - Courier has no subscription line. It is $0.005 a send from the first one, sitting on top of the provider bill you already pay, and it is cheaper than our top plan below roughly 20,000 sends a month. - [Novu vs BuildBase, and the workflow run that means two things](https://www.buildbase.app/compare/novu-vs-buildbase) - Novu bills workflow runs at $1.20 per 1,000. So do we, at $0.10 to $0.25. The gap looks decisive, but the two products do not mean the same thing by a run, and that is the comparison. - [Knock vs BuildBase for product notifications](https://www.buildbase.app/compare/knock-vs-buildbase) - Knock bills per message sent. BuildBase never meters transactional mail. That one difference decides most of this comparison, and it bites harder the better your product gets at engaging people. - [Schematic vs BuildBase for entitlements and pricing](https://www.buildbase.app/compare/schematic-vs-buildbase) - Schematic prices on the revenue you run through it. BuildBase prices on a plan. That single difference decides most of this comparison, and the effective rate bites hardest just past the free cap. - [Recurly vs BuildBase: the $249 you pay before the percentage starts](https://www.buildbase.app/compare/recurly-vs-buildbase) - Recurly's Starter plan is $249 a month plus 0.9% of billing volume, with the first $40K excluded from the percentage. What that floor costs before you have revenue, and where BuildBase fits instead. - [Chargebee vs BuildBase: what 0.80% of your invoices buys](https://www.buildbase.app/compare/chargebee-vs-buildbase) - Chargebee's Flow plan charges a percentage of what you invoice. Here is the arithmetic behind its own $66K breakeven marker, what the percentage actually buys, and where BuildBase fits instead. - [Orb vs BuildBase: what $6.00 a credit actually buys](https://www.buildbase.app/compare/orb-vs-buildbase) - Orb now publishes a self-serve price: $6.00 per credit, with credits drawn by billings and by ingested events at the same time. Here is the arithmetic, and where BuildBase fits instead. - [Metronome vs BuildBase: metering infrastructure, or one module of your app?](https://www.buildbase.app/compare/metronome-vs-buildbase) - Metronome is usage-based billing infrastructure, now part of Stripe, priced on billing volume and ingested events. BuildBase makes billing one of 20 modules on your own Stripe account. - [Stripe Billing vs BuildBase, and why it is not either-or](https://www.buildbase.app/compare/stripe-billing-vs-buildbase) - Stripe Billing is the subscription engine on your Stripe account. BuildBase is the entitlement layer above it, on that same account. Here is what each one actually decides. - [Descope vs BuildBase: a flow builder for auth, or auth inside a backend](https://www.buildbase.app/compare/descope-vs-buildbase) - Descope is an auth platform with a drag-and-drop flow builder, SSO and mobile SDKs. BuildBase is one SDK for auth, billing and workspaces. Prices, sign-in methods and where each one wins. - [Frontegg vs BuildBase: SSO on the free plan, or 20 modules on one bill](https://www.buildbase.app/compare/frontegg-vs-buildbase) - Frontegg puts enterprise SSO on its free plan and charges $0.10 per MAU above 7,500. BuildBase is one SDK for auth, billing and workspaces. Verified prices, and where each one wins. - [FusionAuth vs BuildBase: free to self-host, under a licence worth reading](https://www.buildbase.app/compare/fusionauth-vs-buildbase) - FusionAuth Community is free to self-host and publishes no user cap, but it is not open source. What the licence actually restricts, what the paid tiers publish, and what you still build after login. - [Ory vs BuildBase: priced per daily user, assembled per service](https://www.buildbase.app/compare/ory-vs-buildbase) - Ory bills per average daily active user and ships as four services you run yourself. What that converts to, where Ory wins outright, and when BuildBase is the wrong shape for the job. - [SuperTokens vs BuildBase: where free self-hosting stops being free](https://www.buildbase.app/compare/supertokens-vs-buildbase) - SuperTokens core is free to self-host at any scale. MFA, account linking and multi-tenancy are paid add-ons with a $100 a month floor. How that compares with BuildBase, free to 10,000 users. - [Stytch vs BuildBase: the auth decision you cannot reverse cheaply](https://www.buildbase.app/compare/stytch-vs-buildbase) - Stytch is an auth vendor you add to a stack. BuildBase is a backend that includes auth. The difference that matters is what it costs to change your mind later. - [The best Clerk and Stripe combination, and when to skip it](https://www.buildbase.app/compare/clerk-stripe-combination) - Clerk plus Stripe is two vendors and three jobs. Which combination fits which app, what the seam between them costs you to own, and when a bundled backend is the better call. 24 more at https://www.buildbase.app/compare (full list in https://www.buildbase.app/sitemap.xml). ## Guides - [How to add workflow automation in Next.js](https://www.buildbase.app/guides/workflow-automation-nextjs) - Workflow automation in Next.js adds two files to your repo, not a workflow engine: the code that already emits the event, and the route handler that answers the workflow's callback. - [How to add webhooks in Next.js without processing one twice](https://www.buildbase.app/guides/webhooks-nextjs) - A webhook endpoint in the App Router is twenty lines. What decides whether it works is the delivery contract: answer within 15 seconds, dedupe on the event id, and reconcile for what never arrives. - [How to add feature flags in Next.js](https://www.buildbase.app/guides/feature-flags-nextjs) - Feature flags in Next.js: gate the UI with WhenWorkspaceFeatureEnabled, check the flag again on the server, and know why a server component inside the gate still runs. - [How to add enterprise SSO to your SaaS through your own WorkOS account](https://www.buildbase.app/guides/add-enterprise-sso-saas-workos) - Enterprise SSO and SCIM for a B2B SaaS, in order: your WorkOS keys, the IT admin setup link, verified domains, required SSO, workspace bindings and the in-app screen. - [Credits and usage limits for an AI app you built with a prompt](https://www.buildbase.app/guides/credits-and-usage-limits-for-an-ai-app) - An AI feature needs a balance someone can spend down and a hard stop when it is gone. What the agent builds instead is a number in a column. Here is the shape that holds, and the prompts that get it. - [Add login, teams and paid plans to a Bolt.new app, and keep Bolt Cloud or Supabase for your data](https://www.buildbase.app/guides/add-login-teams-and-paid-plans-to-a-bolt-app) - Bolt runs Node in your browser tab, so the three sign-in routes answer inside the preview. Where the live copy of them runs is the one decision this guide is built around. Read on 27 October 2026. - [Add login, teams and paid plans to a Replit Agent app, and keep Replit's database for your data](https://www.buildbase.app/guides/add-login-teams-and-paid-plans-to-a-replit-app) - A Replit project is a real Linux workspace with a shell, so the SDK installs like anywhere else. The three sign-in routes go on the Express server Agent already wrote; we ran them on 27 October 2026. - [Emails that arrive: confirmation, reset and welcome emails for an AI-built app](https://www.buildbase.app/guides/emails-that-arrive-for-an-ai-built-app) - The confirmation email worked for you and never reaches a stranger, because the sender is for development. Find the sender, put your domain behind it, and make the lifecycle emails run on their own. - [Add login, teams and paid plans to a Lovable app, and keep Lovable Cloud or Supabase for your data](https://www.buildbase.app/guides/add-login-teams-and-paid-plans-to-a-lovable-app) - New Lovable apps are TanStack Start apps, which means they can hold the three server routes BuildBase sign-in needs. Built and typechecked on 27 October 2026, with the Supabase wrinkle stated plainly. - [Add sign-in, teams and paid plans to a v0 app without leaving Next.js](https://www.buildbase.app/guides/add-sign-in-teams-and-paid-plans-to-a-v0-app) - A v0 app is a Next.js app, which is the easiest place to add BuildBase: one prompt or one init command, five variables in Vercel, one redirect address, then teams, plans and the failed-payment email. - [Login that works after you publish: the live-site checklist for a vibe-coded app](https://www.buildbase.app/guides/login-that-works-after-you-publish) - Sign-in works in the preview and loops, lands on localhost or hangs on the live site. Six checks, in the order a stranger hits them, with the exact error strings and the setting behind each one. - [Paid plans that actually gate features: plans, trials, limits and seats for a vibe-coded app](https://www.buildbase.app/guides/paid-plans-that-gate-features-vibe-coded-app) - Every builder takes the money. The hard half is after: the plan has to change what the app does, and nobody may mark themselves paid. Each step with a prompt, from the webhook to the server gate. - [Teams, invites and admin vs member for an app you built with a prompt](https://www.buildbase.app/guides/teams-invites-and-roles-for-a-vibe-coded-app) - No builder ships teams for your end users. Give every customer their own workspace, let them invite colleagues by email, and make admin vs member a rule the server enforces, not a hidden button. - [The vibe coder's launch checklist: 20 things between a demo and a product](https://www.buildbase.app/guides/vibe-coded-app-launch-checklist) - Your AI-built app works for you. Before strangers use it, twenty things have to be true that a demo never tests: login that holds up live, teams, plans that gate access, emails that arrive. - [Vibe coding with Claude Code or Cursor: one skill, then sign-in, teams and billing](https://www.buildbase.app/guides/vibe-coding-with-claude-code-or-cursor) - In a coding agent the SDK installs in your own repo, so the whole job is making the agent know it exists. One skill line, one init command, one prompt, and what to check in the diff it hands back. - [Keeping a pricing page honest against your plans](https://www.buildbase.app/guides/keeping-a-pricing-page-honest-against-your-plans) - Why pricing pages drift from the plans you actually bill, and how to render the table from your catalog instead of copying it, plus what to do with the numbers you cannot render. - [When you need a second pricing page, and when you need a plan version](https://www.buildbase.app/guides/when-you-need-a-second-pricing-page) - When a second pricing group is the right call and when it is a plan version or a currency variant instead, plus what a second public pricing page costs you in attribution and in-app upgrades. - [Structuring a product catalog you will not regret](https://www.buildbase.app/guides/structuring-a-product-catalog-you-will-not-regret) - How to structure a product catalog for SaaS billing: what counts as one product, why prices belong on plan versions, and why the slug is the part you cannot rename later. - [Which notifications users get to turn off, and which stay on](https://www.buildbase.app/guides/which-notifications-users-can-turn-off) - Which notifications should be mandatory, which users may switch off, and how the opt-out is actually enforced at send time. - [One auth client per environment, and what goes on each](https://www.buildbase.app/guides/auth-client-per-environment) - How to split auth clients and redirect URLs across dev, staging and production, when a wildcard is safe, and why localhost does not belong on a production client. 46 more at https://www.buildbase.app/guides (full list in https://www.buildbase.app/sitemap.xml). ## Blog - [What self-hosted really means, versus open source](https://www.buildbase.app/blog/self-hosted-vs-open-source) - Self-hosted says where the code runs. An open license says what you may do with it. Two independent questions, and the one that actually decides your exit is neither. - [The vibe-coded app that got hacked: the 2025-2026 incidents and the five checks that would have caught them](https://www.buildbase.app/blog/vibe-coded-app-hacked-incidents-and-five-checks) - Eleven public incidents from March 2025 to October 2026, each with its date, its source and what actually broke, sorted into the pile that was yours to prevent and the pile that was the builder's. - [What vibe coding costs after launch: credits, fixes and the bill at 100, 1,000 and 10,000 users](https://www.buildbase.app/blog/what-vibe-coding-costs-after-launch) - The subscriptions for a Lovable app with Supabase, Resend and Stripe, added up at three sizes with every assumption shown, prices read on 27 October 2026. The subscriptions are not the expensive part. - [Sign in with Apple, phone codes and two-step sign-in, now on BuildBase](https://www.buildbase.app/blog/new-sign-in-methods) - What is new in BuildBase sign-in: Apple, phone codes through your own provider, two-step sign-in, wallets, device code and user import. Why it is built this way, and what stays the same. - [What "built-in backend" means on Lovable, Bolt, Replit, v0 and Base44, and what it leaves out](https://www.buildbase.app/blog/what-built-in-backend-means-on-lovable-bolt-replit-v0-and-base44) - Every builder now ships a backend: database, sign-in, storage, functions. What each includes, read from its own docs on 27 October 2026, what none covers, and when the built-in is the right call. - [What is an MCP server, and what it quietly asks you to own](https://www.buildbase.app/blog/what-is-an-mcp-server) - An MCP server exposes tools, resources and prompts to AI clients over the Model Context Protocol. What it is, how it works, and why it is not the thing that authorizes the agent. - [What a coding agent builds for login and billing when nobody tells it otherwise](https://www.buildbase.app/blog/what-a-coding-agent-builds-when-nobody-tells-it-otherwise) - We gave a coding agent a plain request for sign-in, teams, subscriptions and a failed-payment email, with no brand named. Here is what it built in 34 turns, and what one installed skill changed. - [What are webhooks, and what happens when the delivery fails](https://www.buildbase.app/blog/what-are-webhooks) - A webhook is a POST you receive instead of polling for changes. That is the easy half. The retry ladder, the signature window and the fan-out are what decide whether it works. - [What is a feature flag, and how long until flipping it reaches the user](https://www.buildbase.app/blog/what-is-a-feature-flag) - A feature flag changes behaviour without a deploy. The part most definitions skip is how long the flip takes to reach a user, and which kinds of flag can live with the wait. - [Bring your own Stripe, explained](https://www.buildbase.app/blog/bring-your-own-stripe) - Bring your own Stripe means you keep the Stripe account and the platform connects to it. What that changes: who the legal seller is, who owes the tax, and what it really costs. - [What is a passkey, and which of the two kinds you just got](https://www.buildbase.app/blog/what-are-passkeys) - A passkey is a key pair your user's device holds and proves on your domain. A synced one and a device-bound one behave differently the day a phone dies, and the ceremony tells you which you got. - [What is a SaaS backend, and which half of it is your product](https://www.buildbase.app/blog/what-is-a-saas-backend) - A SaaS backend is the server side of a subscription product. What makes it a SaaS backend is not the stack but the account model it carries: tenant, permission, usage and subscription. - [What are magic links, and what the click actually hands over](https://www.buildbase.app/blog/what-are-magic-links) - A magic link is a single-use URL emailed instead of a password. The token lives an hour. The session it buys lives thirty days, and that is the number worth arguing about. - [Idempotency in billing, and why it matters](https://www.buildbase.app/blog/idempotency-in-billing) - Idempotency in billing means a retried charge, usage event, credit debit or webhook takes effect once. Having a key is the easy part. What the key names is where double billing starts. - [Idempotency keys on the metering write path](https://www.buildbase.app/blog/idempotency-keys-metering-write-path) - How BuildBase keeps a retried usage record from counting twice: a key per hop, minted where its quantity stops changing, and the one hop where our check still runs early. - [Metered vs seat-based billing: charge for people or for work](https://www.buildbase.app/blog/metered-vs-seat-based-billing) - Seat-based billing charges per person with access; metered billing charges per unit of work. Pick by what grows when a customer gets more value. - [What are entitlements in SaaS, and what a plan change does to each kind](https://www.buildbase.app/blog/what-are-entitlements) - In SaaS, an entitlement is what a customer's plan lets them do: a feature, a limit, a quota or a credit grant. The four look alike until the plan changes. - [What is multi-tenancy, and why the tenant is whoever pays](https://www.buildbase.app/blog/what-is-multi-tenancy) - Multi-tenancy is one app serving many customers with their data kept apart. The decision that costs you later is which object in your schema is the tenant. - [What is RBAC, and where it leaks in a B2B SaaS app](https://www.buildbase.app/blog/what-is-rbac) - RBAC grants permissions to roles and roles to people. In a B2B app the role sits on the workspace membership, and the leaks are in the defaults, not the matrix. - [Why a permission change no longer waits for the hourly refresh](https://www.buildbase.app/blog/why-permissions-refresh-hourly) - RBAC permission propagation delay, from our code: role and grant changes land at the write, and the hourly refresh only catches writes that announce nothing. 12 more at https://www.buildbase.app/blog (full list in https://www.buildbase.app/sitemap.xml).