Nishant

Backend Engineer TypeScript · Node.js · Python · PostgreSQL

Try to break
my backends

Summary

Backend engineer focused on the parts of a system that are expensive to get wrong: concurrent money movement, idempotent payment APIs, exact money arithmetic, tamper-evident audit logs and approval workflows. Failure cases are covered by tests, every project below runs CI on each push, and my portfolio lets you try to break these guarantees in five live labs.

Selected projects code links point to the exact lines

Bank Management System

TypeScript · Express 5 · PostgreSQL · Prisma · Docker

Retail banking REST API: accounts, deposits, withdrawals and transfers.

  • Locked every account a request touches with SELECT … FOR UPDATE in id order, so racing transfers queue instead of losing updates or deadlocking; a test fires 10 parallel withdrawals of 30.00 at 100.00 and asserts exactly 3 succeed. code test
  • Built idempotent payments: an Idempotency-Key replays the original result on retry, a reused key with a new body returns 422, and a unique index settles racing duplicates. code
  • Money as BigInt minor units in a double-entry ledger whose credits minus debits must equal total balances, with CHECK constraints as a last line of defence. code code
  • Refresh tokens stored only as SHA-256 hashes; replaying a rotated token revokes the whole token family. code

Ledgerline

React · TypeScript · Hono · Cloudflare D1 · Zod

Reconciles bank statements against ledger records without silently signing off on differences.

  • Matching that refuses to guess: tied or conflicting candidates stay unresolved for a human; money is exact integer minor units per currency. code
  • Independent review (a run's creator cannot approve it) and a hash-linked audit log with chain verification, missing-tail detection and SQL immutability triggers; 150+ tests in CI. code code

Aftermark

TypeScript · Fastify · Bun · Cloudflare D1 · OpenAPI

Evidence-driven incident response API.

  • Closing an incident needs two non-creator approvals of the current SHA-256 evidence manifest; new evidence makes earlier approvals stale. code code
  • Optimistic concurrency: each write claims the next revision and a conflicting writer's whole batch rolls back; SQL triggers keep audit events append-only. code code

Tracebench

Python · DuckDB · Pydantic · Typer · pytest

Local-first dataset contracts and drift reports for CSV, JSONL and Parquet.

  • Drift checks report “incomparable” instead of a false “stable” when the data cannot support a verdict; bounded ingestion, fingerprinted reports, 100+ tests. code

Hospital Management API

TypeScript · Express · Prisma · PostgreSQL · Redis

Hospital operations backend with payments and role-based access.

  • Razorpay payments verified by HMAC-SHA256 signature; TOTP two-factor auth, a Redis token blacklist and role-based access. code

Open source merged upstream

Skills

Languages
TypeScript, JavaScript, Python, SQL
Backend
Node.js, Express 5, Fastify, Hono, Bun, REST, OpenAPI, Zod, Pydantic
Data
PostgreSQL, Prisma, SQLite / Cloudflare D1, Redis, DuckDB, MySQL, MongoDB
Reliability
Row locking, optimistic concurrency, idempotency keys, double-entry ledgers, hash-chained audit logs
Security
JWT with refresh rotation, RBAC, HMAC signature checks, TOTP 2FA, rate limiting, input validation
Delivery
Vitest, pytest, Playwright, GitHub Actions, Docker, Cloudflare