Portfolio case study
KillCalculator.com
A privacy-first Progressive Web App that provides real-time environmental intelligence for ballistic calculations, delivering capabilities equivalent to tens of thousands of dollars in military hardware, with the core features free to anyone with a browser.
Origin story
Built for one problem, used for another
When the United States sent M777 howitzers to Ukraine, they didn't ship with the digital fire control technology. It was classified. Ukrainian artillery crews had the hardware but lacked the computational tools to generate firing solutions. I set out to build something that could help.
By the time I had a working product, Ukraine had already sourced their own fire control solutions. But something unexpected happened: people were already using the app, and they weren't using the fire solution calculator. They were hammering the "Fetch Data" button.
What users actually needed wasn't another ballistic solver. They needed the inputs for their existing solvers: real-time elevation data, live atmospheric conditions, precise range, bearing, and altitude differentials between two coordinates. That data, gathered in the field, requires equipment that costs thousands.
So I pivoted. I stripped out the fire solution calculator and rebuilt the entire app around what was originally a single feature button. KillCalculator became the environmental intelligence layer that feeds into any ballistic calculator, turning what would cost tens of thousands in military procurement into a free, offline-capable web app.
The pivot
Led by real users
- V1: Full fire solution calculator. Built a ballistic trajectory solver with 30+ NATO and Soviet weapon systems, muzzle velocity tables, charge selections, and projectile physics. Aimed to replace classified fire control computers.
- Discovery: users wanted the data, not the solution. After release, the "Fetch Data" button was pushed hundreds of times while the fire solution features went largely unused. Users were copying environmental data into their own ballistic calculators (Kestrel, GunLab, Applied Ballistics), not relying on mine.
- V2: Environmental intelligence platform. Rebuilt the entire app around the fetch data concept. One button pulls live MET weather, topographic elevation, range, bearing, and altitude delta for any two coordinates on Earth. The app is the fetch data button now.
I shipped the wrong product, then listened to real usage data and pivoted to what users actually needed. That willingness to throw away my original vision and follow the evidence is something I bring to every project.
Privacy architecture
Zero knowledge by design
Coordinates are life or death. We simply don't keep them.
The nature of this application is unique: the data being entered (exact firing positions and target coordinates) represents the physical location of people in active combat zones. If that data were compromised, it could literally kill someone.
I'm not qualified to protect that data from a state-level adversary. Frankly, in the current threat landscape, almost no one is. So the engineering decision was straightforward: the best way to protect data you can't afford to lose is to never have it in the first place.
How the zero-knowledge architecture works
- Exact coordinates never leave the device. Weather is requested for a rounded ~10 km grid cell, which matches the weather model's own resolution. Elevation is computed on the device from public terrain tiles covering a whole ~50 km block, downloaded in random order. All map data goes straight from the browser to its provider, so the KillCalculator server never sees coordinates or the areas being viewed.
- No database of user positions. There is no backend database storing queries, results, or location history. The app has no user accounts, no session tracking, no analytics that capture coordinates.
- Client-side computation only. Range (Haversine), bearing, elevation delta, and all unit conversions happen in the browser. The math never leaves the device.
- RAM-only session data with explicit wipe. Active coordinates exist only in React state (RAM). The "Wipe RAM" button clears all form data and results from memory instantly. Close the tab and it's gone.
- Offline-first IndexedDB caching is local only. Offline downloads cover fixed ~100 km sectors rather than a circle around the user, so every user in a sector makes identical requests and providers learn only the sector. The tiles are stored in the browser via IndexedDB and are never synced or uploaded.
- No third-party analytics or tracking. No Google Analytics, no Mixpanel, no Sentry, no session replay. If it could inadvertently capture coordinates, it doesn't ship.
Delete sensitive data the moment it has served its purpose. Never keep anything that could be compromised. If a breach would be catastrophic, the only safe architecture is one where there's nothing to breach.
Equivalent military hardware cost
Several pieces of field equipment in one web app
KillCalculator consolidates the functionality of multiple pieces of military field equipment into a single web app with free core features. Here's what the equivalent capabilities cost through military procurement:
| Capability provided | Military equivalent | Unit cost |
|---|---|---|
| Live MET weather at positionTemp, pressure, wind vector, humidity | Kestrel 5700 Elite w/ Applied Ballistics | $769 |
| MET weather at second positionTarget-area atmospheric conditions | Second Kestrel 5700 unit | $769 |
| MGRS / Lat-Lon coordinate handlingMilitary grid reference conversion | DAGR GPS Receiver (AN/PSN-13) | $2,300 |
| Precision range & bearingTarget distance and azimuth computation | Lightweight Laser Designator Rangefinder (LLDR) | $264,000 |
| Topographic elevation profilingGround elevation at any coordinate pair | Digital terrain elevation data licensing + equipment | $10,000+ |
| Fire control data integrationAutomated computation & formatted output | AFATDS terminal (program cost per unit) | $346,000 |
| Total equivalent procurement cost | $623,838+ | |
Sources: Kestrel 5700, retailer pricing (Cabela's, Palmetto State Armory); DAGR, $58.6M contract for 25,000 units (Defense Industry Daily, 2007); LLDR, $91M for 300+ units (Strategy Page / Northrop Grumman, 2008); AFATDS, $1.132B program across 3,266 systems (DoD FY98 test report). KillCalculator's core features are free; premium is a one-time 0.5 XMR.
What the app delivers
One button. Two coordinates. Everything a ballistic calculator needs.
Elevation
Ground height in meters & feet, both positions.
Weather
Live MET data: temp, pressure, wind, humidity.
Range
Haversine distance in meters, km and yards.
Bearing
True azimuth in degrees & NATO mils.
ΔH
Altitude delta with an uphill / downhill indicator.
Copy
One-click export, formatted for any solver.
All data is formatted and ready to paste into any ballistic calculator: Kestrel, GunLab, Applied Ballistics, or even paper firing tables. The "Copy All Data" button exports a structured text report with every value an FDC (Fire Direction Center) needs.
Technical architecture
How it's built
Key engineering decisions
Client-side ballistic math
All geodesic calculations (Haversine distance, initial bearing, elevation differentials) run in the browser using pure TypeScript. No server round-trips for computation means lower latency, offline capability, and zero exposure of coordinate data.
Coarse requests instead of decoy traffic
I considered hiding real lookups among random decoy requests or routing through Tor, but decoys are easy to filter (real map use clusters around one area) and a web page cannot open a Tor circuit. Instead, every outbound request is made deliberately coarse: weather by 10 km grid cell, elevation by whole 50 km terrain blocks decoded on the device, and offline data by fixed 100 km sectors. Accuracy is unchanged because the precise math happens locally.
MGRS coordinate support
Military personnel work in MGRS (Military Grid Reference System), not decimal degrees. The app handles MGRS-to-LatLon conversion natively using the mgrs library, so users can input coordinates in the format they're trained on.
Offline-first with intelligent caching
In the field, connectivity is unreliable at best. Users download a whole sector of satellite imagery, terrain elevation tiles, and frontline overlays into IndexedDB; the map serves cached tiles first and elevation is computed from cached terrain, so both keep working with no connection. The service worker ensures the app itself loads offline.
Interactive tactical map with context menu targeting
Right-click anywhere on the Leaflet map to set an origin or target position. The map displays a live firing trajectory line, supports four basemap types (satellite, dark tactical, streets, topographic), overlays DeepState frontline data, and provides one-click sector jumps to active combat zones.
On-device AI via WebLLM
For users who want AI-assisted analysis, the app loads a Gemma 2B model directly into the browser via Web Workers. The model runs entirely on-device: no API calls, no data exfiltration, consistent with the zero-knowledge architecture. It's the same principle as our product autopilot: local models by default.
Lessons learned & honest reflection
An honest look back
I built the wrong thing first, and that was valuable
I spent significant time building a full fire solution calculator with weapon system databases, projectile physics, and muzzle velocity tables. When I finally tested it properly against real-world conditions (Arma Reforger), the solutions were off. But that failure led to the real insight: users didn't need another fire solution calculator. They needed the data to feed into the ones they already trust.
The lesson I carry forward: ship early, watch what users actually do, and don't be precious about throwing away code that doesn't serve them.
Privacy can't be an afterthought when stakes are real
In most web apps, a data breach means leaked emails or credit cards. Here, leaked coordinates could mean an artillery strike on a known position. That forced me to think about privacy not as a compliance checkbox but as a core architectural constraint, one that influenced every technical decision from API design to state management to what third-party services I would and wouldn't integrate.
Skills demonstrated
What this project shows
Full-stack product development
Concept to production: design, architecture, frontend, deployment, iteration.
User-driven pivoting
Recognized real usage patterns, abandoned the original vision, rebuilt around user needs.
Privacy-first architecture
Zero-knowledge design when the stakes demand it, not compliance theater.
Offline-first engineering
Service workers, IndexedDB caching, progressive enhancement for no-connectivity use.
Cross-platform delivery
One TypeScript codebase to PWA, Electron desktop, and Capacitor iOS/Android.
Domain expertise integration
Military coordinate systems, ballistic physics, meteorological data, weapon system databases.
Privacy-preserving monetization
Account-free premium tier: anonymous device IDs, Monero payments, a hashed public unlock list checked on-device, user-held license files.
Try it, or talk to us about your project
Built with Next.js, TypeScript, and a conviction that the best security is having nothing to steal.
Joshua Kyle · killcalculator.com · villainboutique.com/case-killcalculator.html