A multi-tenant SaaS for software spend. It reads vendor contracts with AI, tracks the cancellation-notice deadline behind every auto-renewal, and ranks where money is being wasted, with Stripe-gated plans and strict tenant isolation.

Most spend trackers tell you what you spent. Renewly is built around the notice window: miss it and the company has silently committed to another year. So the product treats one derived date as its centre of gravity, and everything else exists to make sure that date never passes unnoticed.
noticeDeadline = renewsOn − noticePeriodDays
Track the deadline, not the renewal.
Paste a contract and get vendor, amount, billing cycle, seats and notice period, plus a risk level and the reasons behind it. It can create the subscription from the extracted terms.
Ranked recommendations across the portfolio: idle seats, monthly versus annual billing, long auto-renew notice windows and overlapping tools in one category.
Shared database with row-level isolation. Every tenant-owned row carries an organisation id, and a guard scopes every query. Cross-tenant access returns 403, never data.
Free, Pro and Scale plans are enforced on the server. Going over a limit returns a real 402 Payment Required with an upgrade path, not just a locked button.
A scheduled sweep across all tenants finds deadlines inside the next 14 days and emails each organisation’s owners.
The AI provider and Stripe both ship with deterministic mock modes, so the whole product works offline. Add keys to switch to the live services.
Only the service layer touches the database. A request to create a subscription passes through each guard in order, and the tenant id is never read from the request body.
POST /api/subscriptions helmet · cors · body parser · rate limit requireAuth verify access JWT → req.user requireTenant membership in X-Org-Id → req.org requireRole member or above validate Zod schema service plan cap → 402 · scope by org · audit log
A 404 would reveal whether an organisation id exists. A 403 gives an attacker nothing to probe.
A stored notice deadline drifts the moment the renewal date or notice period changes. Computing it keeps it correct by construction.
The mock AI parses the contract you paste, and mock billing calls the same activation code as the Stripe webhook. Anyone can run the full product without keys, and the real paths stay exercised.
Refresh tokens are stored hashed and rotated on use, with reuse detection, so a stolen token only works until the real user refreshes.
A demo that needs a database container before it boots does not get run. Switching to PostgreSQL is a single line in the Prisma schema, and Docker Compose provisions it.
In place: authentication with token rotation, organisations and invites, role-based access, subscriptions with spend rollups, AI extraction and insights, Stripe checkout and webhooks, audit logs, Swagger docs, a Docker setup and a Jest and Supertest suite covering tenant isolation, RBAC, token rotation and plan gating.
Next: PDF upload ahead of extraction, Slack or Teams reminders, SSO and per-tenant usage metering.
Tell us a little about your idea. We will tell you honestly what it would take, how long it would take and what it would cost.
Multi-tenant isolation, billing and AI features are a focused build. Tell us what you are making and we’ll scope it.