§ case
Lit Law
Jul 2023 — Jul 2025AI · Legal-Tech · Full Stack · Backend Lead
Lit Law is a production AI-powered contract drafting platform for Indian law. I owned the backend — Node.js + Express microservices over gRPC, PostgreSQL with Drizzle ORM, Redis for caching, and 40+ JWT-authed REST APIs. RAG pipelines run on custom embeddings via Pinecone vector search; real-time collaboration (presence + concurrent editing) is delivered over SSE. The Next.js (SSR) frontend uses React, Redux, Tailwind, and Tiptap; payments are handled via Razorpay and Cashfree.
Node.jsExpress.jsPostgreSQLRedisDrizzle ORMgRPCPineconeNext.jsReactReduxTailwind CSSTiptapRazorpaySSE
◼ Challenges
- →Latency, throughput, and uptime targets on a production legal-AI platform
- →Real-time concurrent editing without server-state nightmares
- →Reliable payments at scale across two providers
◼ Solutions
- →Microservices over gRPC with PostgreSQL + Drizzle; 40+ JWT REST APIs and 95%+ test coverage
- →RAG with custom embeddings on Pinecone, 48% latency reduction at 1,500+ concurrent users
- →SSE-based collaboration; Razorpay + Cashfree integrated at 100% reliability across 500+ signings/mo