Profile
Systems and backend engineer. I build high-performance, fault-tolerant services — and
everything beneath them, from the language runtime down to the bytes on the wire.
C++ carries the performance-critical paths; JavaScript and TypeScript handle the services
around them. I design the data layer with SQL and Redis, containerize with Docker, and
orchestrate at scale on Kubernetes across AWS. I work in distributed systems and network
programming, and on the unglamorous reliability problems — backpressure, failover,
consistency — that decide whether a system holds up under load.
Backend Projects
raft-kv — Fault-Tolerant Distributed Key-Value Store
C · 2026 ▸
A three-node distributed key-value store built on the Raft consensus algorithm in pure C, with zero external dependencies.
survives a hard SIGKILL
C · Raft consensus · POSIX sockets · O_DSYNC durability · pthreads · zero deps
A cluster of three C processes that behave as one reliable key-value store, implementing
the Raft paper closely — leader election, log replication, and crash recovery over raw
POSIX sockets. A write acknowledged to the client has been persisted to a majority of
nodes and survives any single failure, including a hard SIGKILL at the worst
possible moment; a crashed node replays its log and catches up on rejoin with no manual
intervention. Each node runs four threads — listener, election timer, leader heartbeat,
and an apply thread draining committed entries into the store — over a single
mutex-protected state machine. The log is the source of truth: entries are appended with
O_DSYNC so a write doesn't return until it hits stable storage, the same
durability guarantee Postgres uses for its WAL. Nodes speak a hand-rolled binary wire
protocol with a 4-byte framed header, every read funnelled through recv_all to
survive partial TCP reads. Correctness is proven by a chaos suite — random node kills
under continuous writes, network partitions via iptables, leader failover —
verified clean under ThreadSanitizer, ASan, and UBSan.
View on GitHub →
forge-http — HTTP/1.1 Server Framework
TypeScript · 2026 ▸
A production-grade HTTP/1.1 server framework written from scratch on raw TCP sockets, with zero runtime dependencies.
~10k req/s · p99 ≈ 8 ms
TypeScript · raw TCP sockets · HTTP/1.1 · WebSockets · TLS · zero deps
An HTTP/1.1 server framework built entirely from scratch on raw TCP sockets — bypassing
Node's http module for only net/tls, crypto, and
zlib. A byte-level incremental parser reassembles requests across TCP packets and
stays deliberately strict against request smuggling, rejecting conflicting
Transfer-Encoding and Content-Length, obsolete line folding, and oversized headers. A
radix-trie router with path parameters and wildcards feeds an onion-model async
middleware engine; the server speaks keep-alive, request pipelining, and chunked
transfer-encoding. Static delivery handles range requests, ETags, and conditional 304s;
responses negotiate gzip / brotli / deflate. Real-time traffic rides
over WebSockets (RFC 6455) and Server-Sent Events. Security and operations are
first-class — JWT with algorithm pinning and constant-time verification, CORS,
sliding-window rate limiting, Prometheus metrics, health checks, and graceful shutdown
with in-flight draining. Benchmarks around 10k req/s with p99 latency near
8 ms.
View on GitHub →
ephemeral-secret — Self-Destructing Secret Sharing
TypeScript · 2026 ▸
Encrypt a secret and get back a one-time URL — readable exactly once, then deleted, with the key never touching the server.
zero-knowledge · atomic GETDEL
TypeScript · AES-256-GCM · HKDF · Redis GETDEL · zero server-side key storage
A service for sharing passwords, API keys, and sensitive strings without leaving them in
chat logs and inboxes forever. The sender encrypts the secret client-side with
AES-256-GCM under a key derived via HKDF from a random token, then posts only the
ciphertext, IV, and auth tag; the server stores them in Redis and returns a one-time URL.
The token lives only in the URL fragment (#), which browsers strip before sending
a request — so the key never reaches the server, not even in its access logs. The server
is a courier, not a custodian: it moves ciphertext it cannot read. Retrieval uses Redis
GETDEL to fetch and delete atomically, closing the race where a second concurrent
request could also claim the secret; a second read returns 404. Authenticated encryption
means any tampering with the stored ciphertext fails decryption with a hard error rather
than returning plausible garbage, and unclaimed secrets self-expire via Redis TTL with no
cleanup job.
View on GitHub →
System Projects
Systems & Networking
Peer-to-Peer File-Sharing Distributed System
C++17 · 2026 ▸
Peer-to-peer content distribution over raw POSIX sockets, zero external dependencies.
200 MB transfer in ~7 MB RSS
C++17 · POSIX sockets · op-based replication · SHA-1
A peer-to-peer content-distribution system in C++17 over raw POSIX sockets, with zero
external dependencies. A control/data-plane split keeps a two-node tracker cluster
holding metadata only, while 512 KiB pieces move directly between peers. Trackers
stay consistent through idempotent, op-based replication with snapshot bootstrap —
converging without consensus or acknowledgements, so a partitioned node self-heals on
reconnect. Fail-over is transparent: client RPCs retry onto a surviving tracker with
session replay, leaving in-flight transfers undisturbed. A rarest-first scheduler runs
over a multi-connection pool with per-piece SHA-1 verify-before-commit; memory stays
constant in file size via positional I/O and streaming hashes — a 200 MB transfer
in roughly 7 MB RSS. Thread-per-connection with RAII ownership; verified clean
under ASan, UBSan, and LeakSanitizer.
View on GitHub →
POSIX Shell
C++17 · 2026 ▸
Interactive Unix shell built on process-management primitives.
pipelines · jobs · signals
C++17 · fork / exec · pipes · signals
An interactive Unix shell built directly on process-management primitives. Implements
the core built-ins, input/output redirection, arbitrary-depth pipelines, background job
control, and full signal handling, with tab completion and a persistent, navigable
command history.
View on GitHub →
Security & Cryptography
Kerberos Under Partial Compromise
Python · 2026 ▸
Kerberos-style auth that survives compromise of any single authority.
2-of-3 Schnorr multisig
Python · Schnorr multi-signatures · AES-256-CBC · threshold cryptography
A Kerberos-inspired authentication system that survives the compromise of any single
authority. Tickets are issued under a 2-of-3 Schnorr multi-signature scheme distributed
across Authentication and Ticket-Granting servers, each contributing a partial
signature that must be threshold-aggregated; tickets are sealed with AES-256-CBC. Ships
with attack simulations for key leakage and offline-authority compromise.
View on GitHub →
Secure UAV Command & Control System
C++17 · 2026 ▸
Encrypted command link between mission control and a drone fleet.
sub-500 ms handshake
C++17 · ElGamal 2048-bit · HMAC-SHA256 · AES-256-CBC
A secure command-and-control link between a Mission Control Center and a fleet of
drones. Hand-implemented 2048-bit ElGamal, HMAC-SHA256, and AES-256-CBC provide mutual
authentication, session- and group-key establishment, and encrypted fleet-wide command
broadcast — handshake under 500 ms after key generation.
View on GitHub →
Secure Multi-Client Communication
Python · 2026 ▸
Symmetric-key secure protocol for a server and many clients.
symmetric-key · multi-client
Python · symmetric-key cryptography · session state
A stateful, symmetric-key secure-communication protocol between a server and multiple
clients, designed to hold up in a hostile network environment.
View on GitHub →
Experience
Engineer Intern — Deendayal Port Authority (Major Port of India)
May – Nov 2023
Gandhidham, Gujarat · On-site
- Built on the port's Oracle Database cargo-logging system for Oil Jetty No. 8 (liquid-bulk tanker discharge) — wrote SQL and PL/SQL stored procedures to record, query, and reconcile consignment and vessel data, with constraints enforcing validation and referential integrity across high-volume daily entries.
- Maintained a structured logging and audit trail of consignment and vessel events through discharge — PL/SQL triggers keeping every cargo movement traceable and the records reconcilable end to end on the port's Linux servers.
- Wrote SQL and PL/SQL reports over the logged data, giving operations real-time visibility into jetty throughput and surfacing reconciliation discrepancies early.
Oracle Database · PL/SQL · SQL · Linux
Engineering Focus
The work I care about lives close to the metal and under load — where correctness, latency, and failure behavior decide whether a system actually survives contact with the real world.
- Distributed systems & networking — consensus-free, op-based replication; transparent failover with session replay; backpressure and rarest-first scheduling over raw POSIX sockets.
- Performance-critical C++ — constant-memory streaming I/O, RAII ownership, careful lock discipline; verified clean under ASan / UBSan / LeakSanitizer.
- Applied cryptography — threshold & Schnorr multi-signatures, hand-implemented ElGamal / AES / HMAC, mutually-authenticated secure channels.
- Cloud-native delivery — Docker and Kubernetes across AWS; containerized services, reproducible builds, and orchestration at scale.
- Reliability under load — the failure modes that decide whether a system holds: partitions, partial compromise, in-flight recovery, and records reconcilable end to end.