Back to projects
Team Lead

SalesPal / Kalash Ecosystem

Multi-tenant SaaS platform built for scale

React/ViteNode/ExpressPostgreSQLGCP/Cloud RunRailwayRazorpayGemini AIn8n

The Problem

The client needed a production-grade CRM automation platform capable of handling multiple business tenants, each with isolated data, custom workflows, and real-time AI-assisted engagement. Existing solutions were rigid, overpriced, and couldn't accommodate the specific automation flows required.

Architecture

Multi-repo architecture with a React/Vite frontend, Node/Express API layer, PostgreSQL for persistent storage, and a custom n8n fork for workflow automation. Initially deployed on GCP Cloud Run, later migrated to Railway. Razorpay handled subscription billing with webhook-driven state management.

Key Decisions

1

Chose multi-tenant isolation at the database schema level rather than separate databases — balancing security with operational simplicity for the team size.

2

Built a custom n8n fork instead of using the hosted version to maintain control over workflow execution and reduce costs at scale.

3

Executed a live PostgreSQL migration from GCP to Railway at 2am when the GCP free trial expired mid-production — zero data loss, minimal downtime.

4

Integrated Gemini AI for automated response generation rather than OpenAI to reduce per-request costs by 60% while maintaining quality.

5

Implemented Razorpay webhook verification with idempotent subscription state management to prevent duplicate charges.

Outcome

Shipped to production with active paying tenants. Platform handles multi-tenant CRM automation, AI-assisted engagement, and subscription billing. Led the team as the youngest and most technically senior member at age 20.