// full-stack ai engineer · backend first

I design the parts of software you never see.

Data models that stay correct, rules that can be audited, and events that survive a crash. I’m Hankish, and I build ERP platforms, workflow systems and the access control between them.

currently: shipping Ramion · chai #3 ☕

A pencil sketch of Hankish Lohia
hi, that’s me 👋
TRACEorder.confirm200 OK · 48 ms

why pg.outbox.insert?

The "order confirmed" event is written to an outbox table in the same transaction as the order. If the process dies right after COMMIT, the event is still there. Nothing is lost.

click a span to see why it’s theresample trace · timings illustrative

GET /services← start with Ramion, it’s my favourite

Systems I’ve designed and shipped. How each one is built, not just what it does.

ramion·built independently

Ramion

Software that helps businesses reduce mistakes, save time, and grow with confidence — starting with restaurants.

owner: Everything — architecture, data model, product and the decision records behind them.

PythonFastAPIPostgreSQLRedisWebSocketsReactTypeScriptRedux ToolkitViteTailwind CSS

architecture.md

  1. Modular monolith on FastAPI: explicit module boundaries; domains talk through PostgreSQL functions, not each other's code
  2. PostgreSQL first: constraints, functions, row locks and immutable migrations carry the integrity, not the app alone
  3. One global identity per person; sessions with rotating refresh tokens; the active business is held by the server, never trusted from the client
  4. Central authorization on every request: role + responsibilities + overrides, resolved deterministically; deny wins
  5. Transactional outbox: realtime kitchen updates over WebSockets, WhatsApp and email delivered with retries, safe across restarts
  6. Every decision written down: 45+ architecture decision records; 2,000+ automated backend tests
open case study →
leecycle·professional work · tech prastish

Leecycle

An AI-guided ERP for waste and sustainability operations — with access rules that hold across every business on it.

owner: Worked on the shared multi-tenant foundations every module stands on: tenant registry, organisation hierarchy, the ABAC policy engine, row-level data scopes, field-level security and audit logs.

Node.jsExpressTypeScriptPostgreSQLNext.jsReactZodVitestTurbo

architecture.md

  1. pnpm + Turbo monorepo: a Node/Express API and multiple Next.js "zone" apps behind one shell
  2. PostgreSQL as the source of truth; row-level data scopes and field-level security
  3. ACM: permissions compiled per subject (role, team, department, service account…) instead of per user × resource
  4. Tiered permission resolution ending in default deny; pattern-based policies like module.finance.*
  5. Audit & access logs, approval matrix, document numbering, currencies & FX as platform services
open case study →
roadpulse·built independently

RoadPulse

Ambulance alerts for the drivers actually in its way — not everyone nearby.

owner: Everything — product, the relevance engine, the backend and the mobile app.

React NativeExpoNestJSPostgreSQLPostGISPrismaRedux ToolkitMapLibre

architecture.md

  1. Expo / React Native app with two modes: anonymous driver mode and authenticated emergency-operator mode
  2. NestJS modular monolith; PostgreSQL + PostGIS for the road graph, map matching and spatial queries
  3. A* routing over the stored road network, so routes and relevance use the same roads
  4. Alert lifecycle: NORMAL → HEAVY → IMMEDIATE by road distance, resolved automatically once passed
  5. MapLibre GL + OpenFreeMap in a WebView — no map API key, same map on phone and web
open case study →
voiceforge·built independently

VoiceForge

Text to natural speech, and speech back to text as you talk — all on your own machine, with no paid API.

owner: Everything — product, architecture, model integration and the live-dictation pipeline.

PythonFastAPIPyTorchKokoroWhisperWebSocketsReactTypeScriptRedux ToolkitTailwind CSS

architecture.md

  1. Provider interfaces for both directions (BaseTTSProvider, BaseSTTProvider), so another engine never touches business logic
  2. FastAPI with a background generation worker and SQLite; audio as files on disk, metadata in the database
  3. Live dictation: an AudioWorklet streams 16 kHz PCM over a WebSocket; Silero VAD finds pauses; a fast Whisper model gives partials, an accurate one gives finals
  4. Measured, not assumed: CPU beat Apple-Silicon MPS for Kokoro (3–7× faster than real time vs 1.6×), so CPU is the default
  5. Every WAV is validated (silence, clipping, format) before it is saved; MP3 is converted on demand with ffmpeg and cached
open case study →
db-lab·built independently

DB Lab

MongoDB, PostgreSQL and system design — from first principles to interview depth, in English and Hindi.

owner: Everything — the app, all 36 lessons and 314 questions, and both languages.

ReactTypeScriptViteTailwind CSSshadcn/uiMarkdown

architecture.md

  1. Content as Markdown + JSON, validated at build time by a Vite plugin that fails with the file name
  2. One lazy chunk per lesson per language, so readers download only the lesson they open
  3. Bilingual UI and content: a type-checked Hindi dictionary and a translation checker that guards code and diagrams
  4. No backend: progress lives in localStorage, with export and import as a backup
open case study →

$ open ./notebookreal flow, real mistakes

Before the code, the copy. Every system starts as a pencil sketch like this one.

order flow — Ramion09 / 11draft 1v3guest / counterQR or order padconfirmAPI (FastAPI)1. session ✓2. authorize()3. call the DB fnnever trust the client's business!deny wins!PostgreSQL• lock order row• stock ledger (+/− only)• outbox row• UPDATE stock -= qtyno! append onlyone txn!COMMIT = all or nothingAPI → kitchen directly✗ lost if it crashes → outboxafter commitoutbox workerreads new eventscrash? → retry, never lostkitchen screenWebSocket, liveWhatsApp billlink, once per billtwo cashiers confirmthe same order at once?→ row lock: one wins ✓

the same path as the trace up top — just in pencil.

POST /authorizego on, try to break it!

Try the access model I built. The most specific answer wins; anything unclear is denied.

permission
role
duties
membership
business override · CASHIER duty
business override · MANAGER role
member override · this person

authorize(member, "invitations.create")

✕ DENY

  1. guardmembership is ACTIVEskip
  2. 1 member overridethis one person: no answerskip
  3. 2 duty overridebusiness override for CASHIER: explicit DENY← decides

Same precedence as Ramion’s resolver; the default grants here are a small sample.

try: SUSPENDED, or make them OWNER →

$ git log --careerHEAD = right now

From features to platforms. Every year a layer deeper.

6b0e888(HEAD) Full-Stack AI Engineer @ Tech Prastish Software SolutionsBuilding AI-powered applications with the MERN stack and PostgreSQL.Mar 2025 — Present
1678887Full-Stack Engineer @ Ultivic Pvt. Ltd., MohaliTwo years developing scalable web applications.Nov 2022 — Mar 2025
7a1989Architecture first · AI engineering.Designing systems deliberately, and studying how to build AI that people can depend on.2026
7a1988Platform: tenancy & access control.Tenant registry, ABAC policies, data scopes and audit — the foundations other modules stand on.2025
7a1987ERP modules & workflow builders.From single features to modules: schema-driven services, forms and validation as data.2024
7a1986MERN in production.Shipping React and Node features to real users, learning what production asks of code.2023

$ npm ls --depth=1honest > impressive

The stack, honestly rated. Professional, working, or still learning.

@hankish/frontend

Interfaces that make complex rules feel simple.

├──Reactprofessional
├──TypeScriptprofessional
├──Reduxprofessional
├──Tailwind CSSprofessional
├──Next.jsworking knowledge
└──React Nativeworking knowledge

@hankish/backend

Services, APIs and the rules that guard them.

├──Node.jsprofessional
├──Expressprofessional
├──REST APIsprofessional
├──GraphQLworking knowledge
├──NestJSworking knowledge
├──Auth & authorizationworking knowledge
└──FastAPI (Python)working knowledge

@hankish/data

Data that stays correct as it grows.

├──MongoDBprofessional
├──PostgreSQLworking knowledge
├──SQLworking knowledge
├──Data modellingworking knowledge
├──Redisworking knowledge
└──PostGISworking knowledge

@hankish/engineering

Architecture, delivery and the systems between modules.

├──ERP systemsprofessional
├──Architectureworking knowledge
├──Workflow enginesworking knowledge
├──Docker & CI/CDworking knowledge
└──System designlearning

@hankish/emerging

Models wired into products people use — and what separates a demo from that.

├──LLM API integrationprofessional
├──Prompt engineeringprofessional
├──Speech models (TTS / STT)working knowledge
├──Streaming audio & VADworking knowledge
├──RAG & retrievallearning
├──Embeddingslearning
└──LangGraphlearning

now learning ✎

  • System design
  • RAG & retrieval
  • Embeddings
  • LangGraph

ask me again in 3 months →

POST /contactsay hi, it’s free :)

Want to build something? Open channel. Systems, platforms, and the hard parts in between.

$ curl -X POST /api/contact \
  -d '{"project": "something worth building"}'
{ "status": 202, "message": "Received. Hankish will reply personally." }
after the deploy :)
© 2026 Hankish Lohiamade with pencil + chaichandigarh / mohali, india

pg. 1