May 2025 to now
Founder and Software Engineer
Cometra LLC, engineering for JoystickTV, remote
Cometra is my consultancy. Through it I work full-time on JoystickTV, a live video platform where creators stream, chat with viewers and get paid. I work across all of it: the viewer site, the admin app and the backend.
- 380changes merged and shipped in 2026
- 230+of them building tiered subscriptions
- 3codebases: viewer site, admin app, Crystal backend
- Designed and built tiered subscriptions, from the database schema to launch. Every purchase and renewal is recorded in an append-only ledger, and each subscriber's timeline is rebuilt from that history, so any balance can be explained and replayed.
- Moved the live product onto the new system while customers kept paying. Old and new ran side by side behind feature flags, and nothing switched over until reconciliation reports showed them in agreement.
- Made the payment code hard to break: purchases are checked against the projected timeline, rebilling has guardrails, rebuilds lock per subscriber, and two unlocks that race each other charge once.
- Found and fixed a backend memory leak at each of its sources: SQL terms that bloated the statement cache (one cost 4.6 KiB per request), WebSocket channels still subscribed after disconnect, and proxy clients that were never closed.
- Built creator and viewer features in Vue and Nuxt, including sales charts by tier, a pricing guide and tip menus, and fixed bugs across the live player, WebSocket chat, and HLS and WebRTC playback.
- Built the reports operations relies on: payout and subscription ledgers, audit and drift reports, and product analytics in Python and SQL.
- Made search faster with trigram and GIN indexes, shortened CI with a cached install, and covered the payment code with regression and end-to-end tests.