Custom Software
API Development & Integration
Well-documented REST and GraphQL APIs and dependable third-party integrations, with proper auth, versioning, rate limits, webhooks and idempotency.
A SaaS product has to do more than let users sign up and pay. It needs a dependable way to keep each customer's data separate, decide who can do what, keep billing in sync with what people can access, and stay easy to change as features pile up. Those decisions are far cheaper to get right before the first hundred customers arrive.
SaaS development is the engineering of software sold as a subscription and delivered over the web, where many customer organisations (tenants) share one running application. Beyond the product features, it covers tenant isolation, account and team management, authentication, plans and billing, and the infrastructure to serve every tenant reliably from a single codebase.
Schema, queries and middleware that scope every read and write to the current organisation.
Sign-up, login, SSO where needed, invitations, and organisation switching for users in several workspaces.
Subscription integration with a payment provider, webhook handling and a single place that decides what each plan can use.
Roles and permissions defined as data, enforced on the API rather than only hidden in the UI.
Internal screens to look up tenants, adjust plans and investigate issues without direct database access.
CI/CD, environments, logging and alerting so issues surface before customers report them.
There are three common ways to isolate tenants, and the choice shapes everything from migrations to pricing.
| Model | Isolation | Operational cost | Good fit |
|---|---|---|---|
Shared tables with tenant_id | Logical, enforced in code or row-level security | Lowest | Most B2B SaaS, especially early |
| Schema per tenant | Stronger, separate tables per customer | Medium: migrations run per schema | Moderate tenant counts with some customisation |
| Database per tenant | Strongest, physical separation | Highest | Enterprise or regulated customers who require it |
For most products I start with shared tables and a tenant_id on every tenant-owned row, enforced centrally in a NestJS request context so individual queries can't forget it. PostgreSQL row-level security can add a second guard at the database level. A hybrid, where a few large customers get dedicated databases, can be added later if contracts demand it.
Payment providers such as Stripe own the subscription state, and your app learns about changes through webhooks. The handler has to verify the signature, tolerate duplicate and out-of-order events, and record each event ID so it is processed once. From those events the app maintains entitlements: a per-tenant record of plan limits and features. Feature checks read entitlements, never the raw plan name, so changing pricing doesn't mean hunting through the codebase.
Roles are stored as data with a permission set, checked by guards on each API route, so adding a "billing admin" role is a configuration change. On the data side (database design matters here), composite indexes that lead with tenant_id, Redis caching for hot read paths, and moving heavy work such as exports and emails into background queues cover most growth. My write-up on SaaS architecture with Next.js and NestJS goes deeper on these patterns, and if you need enterprise sign-on, that is covered under enterprise software.
Agree what a tenant is, which roles exist and what each plan includes before writing code.
Auth, organisations, roles and billing webhooks first, so every feature after it is tenant-aware by default.
Deliver the one workflow customers pay for, with weekly demos and real accounts on staging.
Add monitoring, rate limits, backups and admin tooling before opening sign-ups widely.
Use product analytics and support tickets to decide what to build next and what to cut.
Moving from shared tables to per-tenant databases after launch is a migration project. Decide early, with your likely customers in mind.
Entitlements decoupled from plan names let you experiment with pricing without redeploying feature code.
Metering usage accurately needs event recording, aggregation and reconciliation with the payment provider.
SSO, audit logs and custom domains can wait until a customer actually needs them. See shipping an MVP in six weeks.
From my portfolio. Descriptions are the same as on the projects page.

Web
B2B CRM for cold-email outreach with AI-powered personalization, deliverability and warm-up. Built core CRM modules, AI prompt tooling and real-time updates.

Web
Workforce-management platform for businesses to streamline operations, projects and productivity.
Custom Software
Well-documented REST and GraphQL APIs and dependable third-party integrations, with proper auth, versioning, rate limits, webhooks and idempotency.
Custom Software
Schema design, indexing, query tuning, safe migrations and backups across PostgreSQL, MongoDB, SingleStore and Redis, chosen to fit your access patterns.
Custom Software
Internal and customer-facing systems for larger organisations: SSO, fine-grained access, audit trails, legacy integration and phased modernisation.
Web Development
Next.js apps and sites on the App Router with Server Components and deliberate caching, built for crawlable pages and fast loads.
Usually not at the start. Shared tables with a tenant ID, enforced centrally, are simpler to run and migrate. Separate databases make sense when specific customers contractually require physical isolation, and a hybrid model can serve both.
The webhook is the authoritative signal that a subscription was created, renewed, changed or cancelled. Your handler verifies the signature, stores the event ID to avoid processing it twice, and updates the tenant's entitlements, which the rest of the app checks.
The platform layer. Tenant isolation, team invitations, roles, billing, plan limits and admin tooling all exist before any product feature does. These are the parts that are expensive to retrofit, so they are worth budgeting for up front.
Yes, but it is a structural change. It means adding a tenant key to owned data, scoping every query, migrating existing records into an organisation, and introducing billing and roles. A code audit first shows how much of the app is affected.
As soon as more than one person from a customer will use it. Even two roles, admin and member, are worth modelling as data from day one, because adding RBAC later means touching every protected endpoint.