End-to-end B2B SaaS subscription billing, auth, and product stack
Complete stack for launching a B2B SaaS with seat-based subscriptions, SSO-ready auth, feature flags, and error monitoring.
The Stack
Stripe
— Subscription billing + payment processingStripe Billing's proration engine and Customer Portal handle seat upgrades, downgrades, and annual prepay out of the box. The metered billing add-on supports hybrid pricing (flat + overage) without a custom billing service.
Alternatives: chargebee, paddle, recurly
WorkOS
— Enterprise SSO, SAML, and SCIM directory syncWorkOS abstracts SAML 2.0, OIDC, Google Workspace, and Azure AD into a single API. At $125/mo it's cheaper than building SAML in-house, and enterprise buyers at $20k+ ACV routinely require it on security questionnaires.
Alternatives: auth0, okta
Clerk
— Authentication UI and session managementClerk's pre-built React components cover sign-up, sign-in, MFA, org switcher, and invitation flows. First 10,000 MAU are free; it connects directly to WorkOS via SAML federation so enterprise SSO doesn't require a separate integration.
Alternatives: propelauth, supertokens
PostHog
— Product analytics, session replay, and feature flagsPostHog replaces four tools (Mixpanel, FullStory, LaunchDarkly, Optimizely) in a single EU-hosted or self-hosted package. The free tier covers 1M events/mo; cohort-based feature flags let you toggle features per workspace or plan tier.
Alternatives: mixpanel, amplitude
Sentry
— Error monitoring and performance tracingSentry's SDK auto-instruments Next.js, Rails, and Django; release tracking shows whether a deploy introduced new errors. Free tier covers 5k errors/mo — sufficient through $500k ARR for most products.
Alternatives: rollbar, bugsnag
Svix
— Outbound webhooks as a service optionalSvix manages webhook delivery, retry logic, failure dashboards, and customer portal so enterprise buyers can debug their own integrations. Costs ~$50/mo vs. 3-4 weeks of engineering to build an equivalent system.
Resend
— Transactional email deliveryResend's React Email integration lets engineers write email templates in JSX with live preview. 3,000 emails/mo free; DKIM/DMARC setup is automatic — critical for invoice and billing notification deliverability.
Alternatives: postmark, sendgrid
ChartMogul
— SaaS revenue analytics (MRR, churn, LTV) optionalChartMogul imports Stripe data daily and surfaces MRR, churn rate, ARPU, and cohort LTV without any SQL. Essential when you need to share investor-grade metrics without building a BI layer.
Alternatives: baremetrics, profitwell-paddle
Gotchas
- ⚠️ Stripe's Tax product (automatic sales tax) is billed at 0.5% of transaction volume — at $500k GMV that's $2,500/mo. Factor this into pricing before enabling it; Avalara or TaxJar are cheaper above $1M GMV.
- ⚠️ WorkOS charges per connection (SAML/OIDC/SCIM) at $125/connection/mo after the free tier. Budget $375-750/mo at 3-6 enterprise customers before you've collected a dollar from them.
- ⚠️ Clerk and WorkOS have overlapping org-management features; clarify at implementation time which system is the source of truth for org membership, or you'll end up with dual writes and sync bugs in production.
Related Stacks
Adding enterprise SSO, SAML, and SCIM to an existing B2B SaaS
Bolt enterprise SSO, SAML 2.0, OIDC, and SCIM provisioning onto an existing product without owning IdP integrations yourself.
Modern usage-based and metered billing stack for API-first products
Metered billing infrastructure for API products: ingest usage events, aggregate meters, invoice with overages, and report MRR accurately.
Multi-tenant admin dashboard with audit logs and role management
Internal admin tooling stack for B2B SaaS: tenant impersonation, RBAC, immutable audit logs, and ops dashboards without building from scratch.