Kat-Katha — NGO Giving Platform
A full-stack giving site for a Delhi NGO — a hardened Razorpay donation pipeline with live campaign progress, plus a custom CMS the team runs themselves to publish stories, programs, and campaigns.

- Year
- 2024 — Present
- Type
- Freelance
- Role
- Solo developer · Full-stack · Ongoing
- Status
- Live
What needed solving
Kat-Katha does deep, story-driven work with women and children on Delhi's GB Road, but relied on a static site only a developer could update. Giving was friction-heavy, campaign progress was invisible to donors, and every story or program change needed code.
The solution
Built a full-stack Next.js 15 site with an end-to-end Razorpay flow — order creation, HMAC signature verification, and an idempotent settlement webhook writing to a Postgres donations ledger — feeding live per-campaign progress bars. A custom JSONB-backed CMS and admin panel let staff manage stories, programs, campaigns, team, and press without a developer, and the public site falls back to seeded content if the database is ever unavailable.
What changed
- Donors give in a few taps and get an instant thank-you email; campaign totals update live within seconds of a captured payment
- The team self-publishes stories, programs, and campaigns through a custom admin — zero developer involvement for content
- Donation pipeline hardened end-to-end: HMAC-verified webhooks, idempotent settlement with an append-only event audit trail, per-IP rate limits, and honeypot spam defense
- Public pages stay up even if the database is down — cached reads gracefully fall back to seeded content
Technical highlights
- Razorpay order → signature verify → async settlement webhook into a Postgres ledger, deduped by event id and ISR-cache-busting so progress bars refresh in ~1s
- Custom JSONB CMS driven by a field registry — one definition powers the admin form, validation, and seeding; writes bust per-type ISR cache tags
- JWT admin auth (jose) with httpOnly cookies, timing-safe credential checks, and Edge-middleware route gating
- Shared Zod schemas across client and server, Resend transactional email, and Vercel Blob image uploads from the admin
- Playwright E2E across every route and mobile viewport, Vitest units, and a CI gate (lint · format · test · build) before each Vercel deploy
The engineering, written up
A payment can succeed and still go wrong: a dropped webhook, a replayed one, a signature nobody checked. Here is how I verify them, settle exactly once, and keep a ledger I can reconcile against months later.
One page had to update the moment a donation landed. Another reloaded from scratch on every click. Both were caching problems in Next.js 15, pulling in opposite directions, and naming the four caches by where they live is what solved each of them.
// Next step
Need something like this?
I take on a small number of projects each quarter. Let's talk if your idea fits.
// More freelance work

Karloo
Free Online Tools
A browser-first catalogue of free online tools — calculators, text utilities, developer helpers, converters, and AI-assisted workflows — built to be fast, searchable, and cheap to run.
Next.js 16 · React 19 · TypeScript

Trendverse
D2C Ecommerce
A production-ready D2C storefront for the Indian market — catalogue, variants, cart, Razorpay checkout, accounts and a nine-screen admin, built to be branded and launched rather than built again. Nothing is tied to one product category.
Next.js 16 · React 19 · TypeScript

Hair Crezz
Salon Booking Template
A customizable salon-booking template — each owner gets a branded deployment with their own services, stylists, slots, payments, and SMS confirmations.
Next.js 14 · Supabase · Postgres RLS