SaaS & Product Engineering
SaaS products that survive their first thousand customers
Product discovery, MVPs that test the real risk, AI-powered SaaS, and the multi-tenant engineering (auth, billing, isolation, observability) that lets a product grow without a rewrite.
Free discovery callNDA on requestFixed proposal after scoping
In short
Solidity Labs builds SaaS products end to end: product discovery to decide what to build, MVPs scoped around the riskiest assumption, AI-powered features with evaluation and cost control, and multi-tenant platforms with SSO, billing, tenant isolation and monitoring. We also modernize legacy systems step by step and rescue apps built quickly with AI coding tools.
Definition
What is SaaS product engineering?
The MVP trap: an MVP that can’t become version 1 without a rewrite wasn’t minimal, it was disposable. We keep the scope small and the foundations (sign-in, tenant isolation, a schema that can grow) production-grade.
SaaS product engineering is everything between an idea and a subscription business: deciding what to build, building the smallest version that tests it, and then turning that version into a dependable multi-tenant product with sign-up, billing, permissions, analytics and support tooling. Multi-tenant means one application and one database serve many customer organizations (tenants), and each sees only its own data.
The early stage is about learning fast. The later stage is about not breaking things for paying customers. The most expensive mistakes tend to happen at the boundary: an MVP built without tenant isolation that leaks data the day a second customer signs up, or a platform rebuilt from scratch because the prototype’s data model couldn’t grow.
Our default is shared tables, with every row tagged by tenant and filtered by the database. A separate database or deployment per customer earns its extra cost when contracts require it (data residency, customer-managed keys) or when there will only ever be a few large customers; it multiplies migrations, monitoring and upgrades.
We use boring, well-supported technology (TypeScript or Python, PostgreSQL, a mainstream frontend framework, a managed cloud) so your next hire can work on it without learning anything exotic.
Service map
Our SaaS and product engineering services
Who it’s for
Where you might be
An idea and a budget
Test the riskiest assumption before writing much code: who pays, for which job, and what they use today. Then build the smallest product that answers it. Start with SaaS MVP.
An MVP with first users
Paying customers change the priorities: tenant isolation you can prove, SSO for larger buyers, billing that handles upgrades and failed payments, and alerts that reach a person.
An app built fast with AI tools
It works until it doesn’t. Before adding customers, check for API keys in frontend code, endpoints with no authorization check, missing tests and a schema changed by hand.
A legacy system holding you back
Replace it one module at a time behind the existing interface, so users keep working while each part moves, instead of a big-bang rewrite.
Reference architecture
The multi-tenant architecture we start from
Even an MVP gets tenant isolation and clean auth. Everything else is added when the product needs it.
- Usersmany tenants
- Edge / CDNWAF · cache
- Web app
- APItenant-scoped
- Workersjobs · webhooks
- Auth & SSOOIDC · SAML
- Tenant context
- PostgreSQL + RLSrow-level security
- BillingStripe · Paddle
- Admin console
- Product analytics
- Observabilitylogs · traces · SLOs
- Identity
- Email, social and single sign-on (SSO over OIDC or SAML); roles and permissions per tenant.
- Tenant isolation
- The tenant is taken from the signed-in session (never trusted from the request), set once per request and enforced again in PostgreSQL with row-level security, so a missed check in code still returns no other tenant’s rows.
- Billing
- Subscriptions on Stripe Billing or Paddle, usage recorded by background workers and reported to the provider, automatic retries of failed payments (dunning) and invoices.
- Product analytics
- Events you define up front, so you can answer “are people using this?” from the first release.
- Operations
- Logs, traces, error tracking, backups and alerts on the few metrics that matter.
MVP scope guide
What belongs in a SaaS MVP, and what can wait
Our default cut. Every product differs, but this list prevents the two classic mistakes: building too much, and skipping the foundations.
| Area | In the MVP | Usually later |
|---|---|---|
| Core workflow | The one job users pay for, end to end | Secondary workflows and nice-to-have screens |
| Auth & tenants | Sign-in, teams, roles, tenant isolation | SSO (SAML or OIDC) and SCIM user provisioning, unless enterprise buyers are the first customers |
| Billing | One plan, card payments, invoices, sales tax handled from the first sale | Usage-based pricing, coupons, multi-currency |
| Data | A schema that can grow; backups | Data warehouse, BI, exports |
| Quality | Tests on the core workflow; error tracking | Full E2E suites, load testing |
| Analytics | Activation and retention events | Dashboards, experimentation |
| Admin | Basic admin to fix customer issues | Self-serve admin, audit logs UI |
Failure modes
Where multi-tenant products break, and how to catch it early
These are ordinary mistakes in auth, the database and billing webhooks, and each one is easy to test for. We check for all six before the first paying customer.
Trusting the tenant ID in a request
If the API acts on a tenant or record ID sent by the browser, changing one number shows another customer’s data. OWASP lists this as broken object level authorization. The tenant comes from the session, and our tests call every endpoint with a second tenant’s IDs.
Row-level security that never runs
PostgreSQL skips row-level security for superusers, roles granted the right to bypass it and, by default, the table’s owner. An app that connects as the owner has policies that never apply. The app gets its own role without those rights, and tenant tables use FORCE ROW LEVEL SECURITY.
Tenant context leaking between requests
A plain SET of the current tenant on a pooled connection lasts for the whole session, so the next request on that connection can inherit it. We set it with SET LOCAL inside the request’s transaction, so it ends when the transaction does.
Webhooks handled once and in order
Stripe documents that the same event can arrive more than once and that events are not guaranteed to arrive in order. Record each processed event ID, and re-read the subscription from the provider before granting or removing access.
Plan names hard-coded in features
Checks such as “if plan is Pro” scattered through the code turn every pricing change into a release. Map each plan to entitlements (features and limits) in one place, and let the code check entitlements only.
Migrations that lock a busy table
A normal CREATE INDEX blocks writes to the table until it finishes, which on a large table looks like an outage. Build indexes with CREATE INDEX CONCURRENTLY and rehearse migrations on a database of production size first.
Process
How a SaaS project runs
-
Discovery call
The problem, who pays, what exists, and the riskiest assumption to test first. NDA on request.
Free call
-
Product discovery
User interviews or a review of what you have, a prioritized scope and acceptance criteria.
Written scope
-
Fixed proposal
Milestones that each deliver usable software, not a big reveal at the end, with milestone-based payments agreed in the proposal.
Fixed proposal
-
Build in small slices
Demos on staging at a cadence agreed in the proposal, each one something a real user could click through.
Regular demos
-
Launch and learn
Production launch, a review of the first analytics, and post-launch support as agreed in the proposal. Source code and IP are transferred to you on final payment.
Handover
Scope drivers
What shapes the scope of a SaaS project
No price lists and no week counts: they depend on scope. These are the drivers that matter most.
Scope of the core workflow
The number of screens, states and edge cases in the one thing users pay for.
Integrations
Each third-party system (CRM, accounting, payments, data sources) adds connectors and tests.
AI features
Model choice, evaluation sets and cost control for AI-powered features.
Enterprise readiness
SSO, audit logs, data residency and security questionnaires add real work.
Platforms
Web only is simplest; adding native or cross-platform mobile apps increases scope.
Existing code
Starting fresh is predictable; inheriting a codebase needs an assessment first.
Every engagement includes
- Source code & IP transfer
- Documentation
- Handover session
- Post-launch support as agreed
- Demos at an agreed cadence
We give a fixed proposal after a free discovery call and a written scope of work. Prepare a brief with the Project Planner
How much does it cost to build a SaaS MVP?
It depends on the core workflow, integrations, AI features and platforms. We don’t publish prices; after product discovery we write the scope and send a fixed proposal split into milestones that each deliver usable software, with milestone-based payments agreed in the proposal.
What should be in an MVP?
The one workflow users pay for, sign-in with tenant isolation, simple billing, backups, error tracking and activation events. Most other things can wait. The MVP scope guide above is our default cut.
Should we bill with Stripe or Paddle?
Decide who should be the seller of record. Paddle is a merchant of record: it sells to your customer and calculates, collects and remits sales tax, VAT and GST, so you don’t register for them country by country. Stripe offers the same for digital products through Managed Payments. With standard Stripe Billing your company is the seller, and Stripe Tax calculates and collects the tax and tracks registration thresholds, but the registrations are yours. We lean toward a merchant of record for a small team selling self-serve to many countries, and toward Stripe Billing with Stripe Tax for marketplaces and platforms, custom checkout flows, or a finance team that wants to own tax.
Can you add AI to our existing SaaS?
Yes. We start by choosing the feature where AI removes real effort for your users, build it against an evaluation set, and add per-tenant usage limits and cost tracking so model spend stays in line with what each plan earns.
Our app was built with an AI coding tool and is getting fragile. Can you help?
Yes. We review security, auth, data model, tests and deployment, fix the dangerous issues first, and then decide with you whether to harden or rebuild parts.
Which tech stack do you use?
Mainstream, well-supported tools: TypeScript or Python on the backend, Next.js or React on the web, Flutter for mobile, PostgreSQL, Stripe or Paddle for billing, and a managed cloud. We choose what your future team can hire for.
Do you help with SOC 2?
Yes, on the engineering side. SOC 2 is not a certification: it is a report by an independent CPA firm, under AICPA standards, on an examination of your controls relevant to security, availability, processing integrity, confidentiality or privacy. We build the controls those examinations test (access control, logging, change management, backups) and prepare the engineering evidence; the CPA firm issues the report.
Can you keep developing after launch?
Yes, through a dedicated team or an ongoing plan agreed separately, or we hand over to your own engineers with documentation and a handover session.
Last reviewed: Reviewed by our independent expert review under our editorial policy