← Back to panelCase file · ST-04
One app for a housing society

Society Seva

RoleSole developer · concept → backend → apps
PeriodAug 2026 – now
Stack size15 parts
REST endpoints

A local marketplace and community platform for housing societies, in testing before public launch. The idea is mine; I built the Spring Modulith backend, the Flutter apps, the admin console and the content-safety service, with AI-assisted coding.

What was broken

Housing societies run on WhatsApp groups and paper registers. Residents who sell food or services to neighbours have no safe way to take payment, and committees can't see dues, gate entries or complaints in one place.

What I built

  1. 01A Spring Boot modular monolith: 55 Modulith packages, 898 REST endpoints, STOMP chat.
  2. 02Razorpay with signed, deduplicated webhooks and a double-entry ledger. Built and tested against my own gateway simulator; going live.
  3. 03A Flutter app for residents, sellers and society admins, plus a separate guard app.
  4. 04ONNX content checks for text and photos in English, Hindi and Hinglish.
  5. 05Seva Assist: a local Ollama model answering from Postgres full-text search.
Modulith modules
REST endpoints
1,937
backend tests, 0 failing

How data moves

SCHEMATIC · SOCIETY SEVA● SIGNAL
Flutter appresident · seller · guardAdmin consoleNext.jsModulith backend55 modulesPostgres + Redisledger · keysPayment gatewaysigned webhooksseva-guardONNX checksOllamaSeva Assist

What broke, and how it holds now

INCIDENTST-04 · what broke

A failed webhook erased the payment it was about.

Webhook handling ran in one transaction. If processing threw, the stored event rolled back with it and the payment left no trace. I split it: store the event first, process it in its own transaction, keep the error on the row, and let the gateway's redelivery retry it. A test now pins this.

Replay · break it yourself
Razorpay → payment.captured → seller settlement● IDEMPOTENCY KEYS ON
Order value₹1,249
Paid to seller₹0
Overpaid₹0
webhook log · deliver one to start

Every webhook is recorded under its key before any money logic runs. The second copy finds the key already there and stops. One order, one payout, however many times it's delivered.

What people see

Stack

  • Java 21
  • Spring Boot
  • Spring Modulith
  • PostgreSQL
  • PgBouncer
  • Redis
  • STOMP
  • Flutter
  • Riverpod
  • Next.js
  • FastAPI
  • ONNX Runtime
  • Ollama
  • Razorpay
  • Docker
Next case file · ST-05Roller Compaction →Proving every metre got rolled