Selected projects

Routiq and Snap the Grub.

Local-first LLM gateway

Routiq

A self-hosted gateway that reuses semantically similar responses, routes requests by complexity, and records model spend. Security work includes API-key checks, provider URL validation, and keeping prompt text out of logs.

Up to 88%
cost savings
84%
cache hit rate
9 ms
p50 gateway overhead
What was measured
Cache hit rate, API cost savings, and gateway overhead were reported separately. Gateway overhead was 9 ms at p50 and 67 ms at p95. The public write-up does not specify the request count or the exact cost comparison setup.
How the cache was tuned
I tuned a 0.82 cosine-similarity cutoff on live traffic using MiniLM embeddings. A loose cutoff can confuse a request about sorting a list with one about sorting a dictionary. Long conversations can also match on shared context even when the latest question differs.
Routiq request stages from alias resolution and caching through routing, provider response, and cost recording.
Request pipeline
The semantic cache decision path, including similarity threshold and fallback.
Semantic cache decision
Cost recording flow from provider response to a durable local write.
Cost recording

Food recognition mobile app

Snap the Grub

A Flutter app that identifies food from a photo and returns nutrition information. I collected and curated a custom food-image dataset, trained the recognition model, integrated an API, and built the mobile app.

Dataset and delivery
I photographed food from multiple sources, cropped and filtered candidate images, and manually reviewed more than 700 images per category across over 100 food items. I then trained the classifier and connected it to the mobile app through an API.
Original Snap the Grub app logo featuring a burger inside a camera frame.
Original app identity