Tenant isolation in multi-tenant SaaS: why tenant_id isn't enough
What we learned turning a single-Page bot into multi-tenant SaaS: tenant scoping at the database driver, leak tests with fault injection, webhooks and cron.
TrueIdentity.io
Our AI lookup service: a five-stage pipeline searches the web and lookup services, Gemini extracts and cross-checks what it finds, and paying users get one scored profile in a single search.
Illustration. Product screens are not public yet.
TrueIdentity.io is our AI reverse-lookup service. People enter a phone number, email address or username, and the platform searches the web and specialist lookup services, then uses AI to assemble what it finds into one profile with confidence scores. We designed, built and run all three parts: the customer web app, the Python API and the admin dashboard. Photo search is on the way.
Information about a phone number or email is scattered across many sources, and most search results are noise: shopping pages, unrelated namesakes and outdated listings. A useful answer has to draw on several sources at once, be cleaned and cross-checked, and arrive quickly.
Every search also costs money in API calls. As a paid product, the service needed caching, credit accounting and limits that keep costs predictable without slowing down paying users.
We built a five-stage pipeline in Python with FastAPI: validate and normalize the input, run several search strategies in parallel across web search and lookup services, extract structured data with Gemini, cross-check it across sources with confidence scores, and synthesize a single profile.
Relevance filtering scores each source and drops low-quality results. Searches are cached in Redis, so a repeated lookup returns faster and costs fewer credits, rate limits cap concurrent searches, and API keys for Gemini and web search rotate automatically to stay within provider limits.
Around the engine sit Firebase sign-in, credit packages and plans, payments through an online payment gateway with signed webhooks, transactional email, a support desk and an admin dashboard for users, packages, analytics and system settings.
The search is one tabbed input that understands phone numbers in international formats, emails and usernames, and the results page leads with what matters: the profile and how confident the system is in each detail.
The site was built to be found. We planned its technical and off-page SEO alongside the product, so pages, metadata and content target the searches people already make for phone and email lookups.
Three apps: a Next.js 15 web app, a FastAPI service in Docker on Fly.io, and a React admin dashboard on Vercel, sharing Firebase for identity and data and Redis for caching.
Five stages from input validation to profile synthesis, with search strategies run in parallel.
Gemini turns raw search results into structured data, with automatic key rotation to stay within rate limits.
Source reliability, relevance and agreement between sources combined into a confidence score for every detail.
Credit packages, plans and trials, cheaper repeat searches from the cache, and payment webhooks verified by signature.
A dashboard for users, packages, analytics and configuration, with email notifications and a support inbox.
Phased so that each stage reduced risk and produced something usable.
Input handling, parallel search strategies and Gemini extraction.
Relevance filtering, confidence scoring, Redis caching and rate limits.
Firebase sign-in, credit packages, plans and the payment gateway.
The admin dashboard, transactional email, technical SEO and production deployment.
What we learned turning a single-Page bot into multi-tenant SaaS: tenant scoping at the database driver, leak tests with fault injection, webhooks and cron.
What drives custom software development cost: scope, integrations, data, compliance and ongoing costs, plus pricing models and how to get a useful estimate.
PromptCV.app
Wedded Wonderland
PromptCV AI Sales Assistant
Tell us what you want to build and where you are today. We'll reply with questions, next steps and an honest view of how we can help.