Distributed systemsInfrastructure
Builds systems that have to agree with each other.
- Interested in systems & infrastructure work
- MS CS, UH–Clear Lake, 2027
- 3 yrs at TCS, core banking
- Houston, TX
Beside this, a dial runs a live five-node Raft cluster on Homonoia’s own core. It is the same cluster that narrates the log at the bottom of the page.
Selected work
#enrg-0001/052026Sole engineer
Browser-native LLM inference engine in WGSL compute shaders. Zero server cost.
- int4 weights, int8 embedding and head: 1884.6 MiB at fp32 becomes 334.9 MiB resident.
- Each token is one pass up through 24 layers: 460 WGSL compute dispatches, in order.
- Decode holds 43.1 tok/s at 2048 context, flat across context length.
- The visitor’s GPU does the work, so serving costs nothing beyond static files.
The dial draws the weights to scale as they shrink from fp32 to int4 and int8; then a token as a pulse climbing 24 layer rings, its 460 dispatches slowed 200 times; then decode speed against context length, as measured on an M2; then the model’s static files arriving once, a server cost of $0 per token, and the GPU this browser would hand Enargeia.
- tok/s at 2048 ctx
- 43.1
- weights resident
- 334.9 MiB
- compression
- 5.63×
- server cost
- $0
- tok/s at 2048 ctx
- 43.1
- weights resident
- 334.9 MiB
- compression
- 5.63×
- server cost
- $0
Notes on Enargeia
Enargeia runs Qwen2.5-0.5B-Instruct entirely in the browser. The visitor’s GPU does the inference, so serving it costs nothing beyond static files — no server, no API key, no per-token cost. Every kernel is WGSL running on WebGPU. Generating a token is one pass up through the model’s 24 layers, 460 compute dispatches in order (412 where the GPU lacks shader-f16), and every one of them runs on the machine in front of you.
The model is quantized to int4, except the tied embedding and LM head which ship at int8 — 334.9 MiB resident against 1884.6 at fp32, for 13.5% worse perplexity. Decode runs at 45.5 tokens a second at 512 context and 43.1 at 2048, flat across context length. Time to first token is 219 ms on a short prompt. Cold load over the CDN is 14.6 seconds; warm is 1.4.
Measured on an Apple M2 with a 10-core GPU, headless and with nothing else on the GPU; a foreground tab shares it with the compositor and reads about 15% lower: 38.2 tokens a second on the live site.
Built with
- WGSL
- WebGPU
- TypeScript
- Qwen2.5-0.5B
#dnme-0002/052026Sole engineer
Model CDN for the browser: verified weight chunks, progressive loads, and a cache shared across sites.
- Packed once: Qwen2.5-0.5B q4 is 42 content-addressed 8 MB chunks behind a two-level manifest.
- Streamed layer group by layer group, embed to lm_head, each chunk checked against its SHA-256.
- Served from Cloudflare’s edge cache: 323.9 MB in 15.6 s on a real Chrome load.
- A second site on Chrome reuses the same chunks through the CDN’s frame: 0.81 s, nothing downloaded.
A model built from Dianome’s measured numbers. The dial shows the q4 model’s 42 chunks arriving six at a time in manifest order, each checked against its SHA-256 as it lands; then a real Chrome load laid out on a seconds axis, 323.9 MB in 15.6 s; then, on the demo sites, a second site on Chrome filling every chunk from the shared cache in 0.81 s, against 22.91 s from the network on the first site (a separate run from the 15.6 s load), while Firefox and Safari keep the cache per site.
- from shared cache
- 0.81 s
- verified chunks
- 42
- SDK, gzipped
- 13.9 KB
- error when split
- 0.0
- from shared cache
- 0.81 s
- verified chunks
- 42
- SDK, gzipped
- 13.9 KB
- error when split
- 0.0
Notes on Dianome
Dianome delivers model weights to the browser. A model is packed once into 8 MB
content-addressed chunks with a two-level manifest, served from cdn.dianome.dev through
Cloudflare’s edge cache, and loaded by the dianome SDK progressively — layer group by
layer group, every chunk verified by SHA-256.
Chunks are cached per site in the Cache API on every browser. On Chrome they are also shared across sites, through a frame on the CDN origin after a one-time opt-in, so a second site that uses the same model does not download it again: Qwen2.5-0.5B at q4, 323.9 MB in 42 chunks, took 22.91 s from the network on the first demo site and 0.81 s from the shared cache on the second. Firefox and Safari do not unpartition the Cache API through Storage Access, so there the cache stays per site — a result the project’s own first spike got wrong, and then corrected in writing.
The same SDK runs inference through one run() call that plans per device and network:
whole model in the browser on WebGPU, on a split server, or split at a chosen layer. The
server half is bit-exact against the full model at every split point tested. The privacy
result is negative and stated as one: hidden states at every layer boundary stay linearly
invertible to the input tokens, so the honest claim is “raw text is not transmitted”, never
“the server cannot read it”.
A TypeScript SDK at 13.9 KB gzipped, Cloudflare Workers and R2 at the edge, a Python ingest and split server, and a WGSL runtime. Every number in the writeup links to the notes file that measured it.
Built with
- TypeScript
- Cloudflare Workers
- R2
- WebGPU
- Python
#hmna-0003/052026Sole engineer
Raft consensus implemented from the paper and made visible in the browser.
- The leader stops being heard from.
- A follower’s election timeout fires, and it stands as a candidate.
- Three votes out of five settle the term.
- Replication resumes from whoever won it.
The dial replays one election recorded from Homonoia’s own Raft core, with scroll as its clock: the leader goes quiet, a follower’s timeout fires, the votes come in and replication resumes. The buttons that follow switch it to the page’s live cluster, so you can crash the leader, partition it and heal the network.
- ticks fuzzed
- 3M
- leader changes
- 8,422
- safety violations
- 0
- tests
- 128
- ticks fuzzed
- 3M
- leader changes
- 8,422
- safety violations
- 0
- tests
- 128
Notes on Homonoia
Homonoia is an implementation of the Raft consensus algorithm, written from the paper and made visible in the browser. Five simulated nodes on a network you can break — you set latency and drop rate, cut partitions, and kill or revive nodes, then watch leader elections and log replication behave correctly under whatever you do to them.
The consensus core is pure: state in, state out, no I/O and no timers. The same code runs the visualization and the fuzz harness, so what you see on screen is the thing that was verified rather than a diagram of it. The fuzz sweep runs 1,000 seeds of 3,000 ticks each and checks all five safety properties after every tick; across 8,422 leader changes, 89,253 committed entries and 1,993,145 messages (96,741 of them duplicated), it finds no violations.
Deleting a safety rule to check that the tests catch it produced the more interesting result. With Raft’s current-term commit restriction removed, 5,000 seeds and 15 million ticks of random fuzzing found nothing, while a hand-written Figure 8 scenario fails at tick 1529. Random schedules essentially never line up the four conditions that bug needs; you have to know it exists and construct it.
Built with
- TypeScript
- React
- Canvas
- Vite
#phli-0004/052026Sole engineer
Real-time collaborative editor where concurrent edits converge without a lock.
- Three replicas edit one paragraph at once. Type, and you are the third.
- Every keystroke is a CRDT operation: no lock, and no server deciding who wins.
- The network delays and reorders delivery; every replica still ends up identical.
- The same holds at 10 clients, three dropping off and rejoining; a cold open takes ~350 ms.
The dial runs three real Yjs replicas of one paragraph in this tab, over a simulated network that delays and reorders their messages. You type as the third, through the field that follows, and the edits travel between them until all three agree. The last step is a model of Philoi’s ten-client test rig, in which three clients drop off, keep editing and rejoin.
- clients converging
- 10
- cold document open
- ~350 ms
- permission layers
- 3
- clients converging
- 10
- cold document open
- ~350 ms
- permission layers
- 3
Notes on Philoi
Philoi is a collaborative document editor. Several people edit the same document at once, see each other’s cursors, and leave comments anchored to the text — plus sharing with roles, version history, search, folders and export.
Concurrent edits converge without locking and without a server deciding who wins. Edits are CRDTs, so two people typing in the same paragraph both end up with the same document and nobody’s keystrokes are discarded. A test rig starts the sync server with its shipping config, connects 10 headless clients to one document, drives randomized concurrent edits, takes three of them offline to keep editing and brings them back, then asserts that every client holds byte-identical state.
Permissions are enforced at three layers, because hiding the UI is not enforcement: the REST handlers check the caller’s role, the WebSocket handshake checks a short-lived, document-scoped token, and a viewer’s or commenter’s connection is read-only, so its edits reach neither the other clients nor Postgres.
Measured on a production build, a document opens cold in ~350 ms and warm in ~330 ms. Documents soft-warn at ~1 MB and are refused at ~10 MB.
Next.js 15 and TipTap on the front, Yjs and Hocuspocus for sync, Postgres via Prisma, NextAuth with Argon2id, and Cloudflare R2 for storage. Running on a DigitalOcean droplet behind Caddy at philoi.net.
Built with
- Next.js 15
- Yjs
- Hocuspocus
- Postgres
- Cloudflare R2
#bsis-0005/052026Sole engineer
TypeScript SaaS boilerplate: rotating-token auth, Stripe billing and a one-origin Docker deploy, built once.
- Sign-in issues a short-lived JWT and a refresh token, stored httpOnly and hashed at rest.
- Refresh tokens rotate on every use; replay a retired one after 30 s and they are all revoked.
- Billing is Stripe: subscriptions, one-time purchases, the Customer Portal, live prices.
- Dockerized, single origin, migrations applied on deploy; built to run on Railway.
A model of Basis’s own flows. Sign-in issues a 15-minute access JWT and a refresh token whose SHA-256 is all the database keeps; each refresh rotates it, and a retired token replayed more than 30 s later revokes every refresh token the user holds, so the next refresh fails. Then Stripe’s prices and webhooks, and one Docker image that applies its migrations on boot and serves the API and the app on one origin. The button that follows replays an old token live.
Notes on Basis
Basis is a full-stack SaaS starter — the parts every product needs and nobody wants to build again. Clone it and you have working auth, billing and email rather than an empty repository.
Auth is email and password: 15-minute JWT access tokens, and refresh tokens that rotate on every use, travel in an httpOnly cookie and are stored only as a SHA-256 hash. A retired refresh token replayed after a 30-second grace window is treated as theft, and every refresh token the user holds is revoked. Billing is Stripe, covering subscriptions and one-time purchases, the Customer Portal, and pricing read live from Stripe rather than hardcoded. Transactional email runs through Resend, with optional S3 uploads and an admin panel for users and roles.
Node, Express and TypeScript on Postgres via Prisma; React, Vite and Tailwind on the front. Helmet, CORS, rate limiting and Zod validation throughout. Dockerized, single origin, migrations applied on deploy, and set up to run on Railway.
Built with
- TypeScript
- Express
- Postgres
- Prisma
- React
- Stripe
- Docker
AboutHouston, TX
About
I’m a computer science master’s student at the University of Houston–Clear Lake, where I also administer the lab environment — a mixed Ubuntu and Windows Server estate used by students and faculty. Before that I spent three years at Tata Consultancy Services as an assistant systems engineer, working on TCS BaNCS, a core banking platform.
Most of what I build ends up being about the same problem: getting separate things to agree. Raft is that problem stated formally. CRDTs are that problem without a referee. Enargeia and Basis are the exceptions: one because I wanted to know whether the arithmetic would fit in a browser, the other because every product needs the same plumbing.
I’m interested in systems and infrastructure work — the layer where the guarantees are made rather than assumed.
- Now
- Research assistant, UH–Clear Lake — a 4-server Ubuntu and Windows Server estate for 100+ students and faculty
- Before
- Assistant systems engineer, Tata Consultancy Services, 2022–2025 — TCS BaNCS core banking, Java and SQL
- Study
- MS Computer Science, UH–Clear Lake, expected May 2027
- BTech CSE, Karunya, 2022
Built with:
- WGSL compute shaders
- WebGPU
- Raft, from the paper
- CRDTs with Yjs
- TypeScript
- Cloudflare Workers and R2
- Postgres with Prisma
- Java and SQL
- Linux and Windows Server
- Stripe
- Python
Contact5 of 5 agree
If you are building something where the guarantees matter, I would like to hear about it.
The same night in three dimensions, lit by this page’s cluster. Fly the night