SaaS development services for a product many businesses subscribe to
A product sold to many companies needs more than its features: each customer's data kept apart, plans that bill themselves and sign-up that works without a sales call. We build those foundations into the first release, because adding them underneath live customers is far harder.
Updated
What it is
SaaS (software as a service) development is building software that many customer organizations subscribe to and use over the web, all from one shared codebase. Besides the product's own features, it covers multi-tenancy (keeping each customer's data separate), subscription billing, self-serve onboarding and the internal tools a team needs to run the product as a business.
When it makes sense, and when it doesn't
When it makes sense
- You deliver a service by hand today and want to sell it as software other businesses run themselves.
- A tool you built for your own company keeps drawing questions from others in your industry.
- A prototype made in Lovable or v0 has paying users waiting, and now it needs tenancy, billing and code that has been reviewed.
- Larger prospects want single sign-on and an audit log before they will sign.
When it doesn't
- Nobody has committed to paying yet. Test demand first with a landing page, a waitlist and a version you deliver by hand to the first customers.
- Only your own company will use the software. That's a custom web app, with no tenancy or billing to build.
How we run it
Put the tenant in every row
Each table holding customer data carries an organization id, and Postgres row-level security policies compare it with the organization in the signed-in user's session. A query that forgets its filter is still limited to that customer's rows, so one missed line of code doesn't become another company's data on screen.
Bill from Stripe's events, not from redirects
Plans live in Stripe Billing and sign-up runs through Stripe Checkout. Features switch on when a verified invoice.paid webhook arrives for an active subscription, not when someone lands on a success page, so a faked redirect unlocks nothing, and a customer who closes the tab after paying still gets in. Failed renewals follow Smart Retries, and an account is limited only once the retries run out.
Onboard to a first result, not a blank screen
Sign-up creates the organization, its first admin and a trial in one step, then invites teammates by email. A new account opens with sample records, or an import from a CSV the customer already keeps, so people see the product do its job before they've configured anything.
Ship enterprise sign-in as a setting
Single sign-on through SAML or OpenID Connect is built as a per-customer setting, so one customer signs in through Okta or Microsoft Entra ID while the rest use email. Supabase Auth handles a separate SAML connection for each customer organization, and its provider id can feed the same row-level security rules.
Build the staff console alongside the product
Your team gets an internal admin area to find any account, see its plan, usage and recent errors, extend a trial or switch a feature on for one customer. Every staff action there is logged, and viewing an account as its user requires a recorded reason, a question enterprise security reviews tend to ask.
Three ways to separate customers' data
Ordered from least to most separation, and from least to most to run.
| Isolation | Cost as customers grow | Schema changes | Reporting across customers | When it fits | |
|---|---|---|---|---|---|
| Shared tables with a tenant id | Enforced in the app and by row-level security policies | Lowest: one database serves everyone | One migration updates every customer at once | One query across all customers | Most new products, from the first customer |
| A schema per tenant | Each customer in its own Postgres schema inside one database | Moderate; every schema adds tables to manage | Each migration runs once per schema, so a failure can leave customers on different versions | Queries must combine schemas, or data is copied to a warehouse | A modest number of customers who each need their own tables |
| A database per tenant | Separate databases, which can sit in a region a contract names | Highest: each customer adds a database to run, back up and monitor | Rolled out database by database, with tooling to track versions | Needs a warehouse fed from every database | Regulated or enterprise customers whose contracts demand physical separation |
Tools used
Next.js
The product app and its sign-up flow in one codebase
Supabase
Per-organization SAML connections and the tenant policies they feed
Stripe
Checkout, subscriptions, usage-based pricing and the billing portal
AWS
Large per-customer exports, queued so one big account can't slow the rest
Frequently asked questions
Should a SaaS MVP be multi-tenant from the start?
Yes. Added later, tenancy reaches into every existing row, rule and query. Each row needs an organization id backfilled, unique rules such as invoice numbers must become unique per customer so two customers can both have invoice 1001, and every query, cache key and file path has to be rechecked for a missing tenant. Built into the first tables, the same design costs a few columns and the policies that check them.
What should the first version of a SaaS product include?
One job done completely for one kind of customer, plus what lets strangers pay without talking to you: sign-up, a working trial, billing and teammate invitations. Leave out what only some prospects mention, such as integrations, custom roles or white-labeling, until paying customers ask twice. And charge from the first customer: a price, even a discounted one, tells you more than a free beta.
Does a SaaS product need a SOC 2 report?
Not to launch, but often to sell to larger companies, whose security reviews commonly ask for one. A SOC 2 report comes from an independent CPA firm that examines your controls against the AICPA's criteria for security, plus whichever of availability, processing integrity, confidentiality and privacy the company includes; a type 1 report looks at one date, and a type 2 also tests how controls operated over a period. We build so the evidence exists, such as access logs, reviewed code changes and tested backups; the audit is between you and the auditor.
How do SaaS products charge for usage?
By recording each billable event, such as a document processed or an API call, and reporting it to the billing system, which totals it per customer and adds it to the invoice. Stripe's usage-based billing does the counting and pricing. The harder parts are product decisions: what counts as one unit, whether allowances reset monthly, and what a customer sees in the app before the invoice arrives, so the bill matches what they expected.