Skip to content

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.

Built by
Joshua Kyle, solo developer & designer
Stack
Next.js · TypeScript · PWA
AI
Gemma 2B, on-device (WebLLM)
Status
Live
$0Core features. Free, no account required
$623K+Equivalent hardware, at military procurement cost
30+Weapon systems in NATO & Soviet databases
0Coordinates retained. Zero-knowledge architecture

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

  1. 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.
  2. 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.
  3. 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.
Key takeaway

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

  1. 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.
  2. 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.
  3. Client-side computation only. Range (Haversine), bearing, elevation delta, and all unit conversions happen in the browser. The math never leaves the device.
  4. 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.
  5. 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.
  6. 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.
The privacy principle

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.

Monetizing without surveillance

A premium tier where the seller learns almost nothing

Keeping the lights on meant charging for something. The obvious way to do that (user accounts, email sign-up, a card processor, a license server) would have tied a real identity to a device that is entering combat coordinates. That broke the core rule, so the premium service had to be built so that even the person selling it learns almost nothing about who bought it.

What premium unlocks: coordinates inside active conflict zones, offline Area of Operations caching (maps, frontlines, terrain), and the premium weapon system database. Everything else stays free with no account.

KillCalculator premium panel listing free and premium features, a one-time 0.5 XMR price, and Check Payment Status and Restore License buttons
The premium panel. Free and premium features side by side, with an anonymous device number and no sign-up.

How the premium flow protects users

  1. Anonymous device ID instead of an account. Each install generates a random device number locally. There is no username, password, or email field anywhere in the app, so there is no account database to breach.
  2. Monero instead of a card processor. Payment is a privacy-preserving cryptocurrency, and the device number rides inside the amount itself (0.500 followed by the 9-digit number). No note, email, or message is exchanged, and no card network or bank links a name to a purchase.
  3. A public list, checked privately. Unlocked devices are published as slow PBKDF2 hashes in a static file. Every app downloads the whole file and looks for itself locally, so no request ever says which device is asking, and the list can't cheaply be reversed into device numbers.
  4. Conflict-zone checks run on the device. Deciding whether a coordinate needs premium is a point-in-polygon test against bundled zone outlines, run locally before any network call. Coordinates are never sent anywhere to decide what a user is allowed to see.
  5. The user holds their own license. After unlocking, users download a small license file, like backing up a wallet seed. A copy is also kept in local IndexedDB so premium survives clearing cookies. If both are lost we cannot restore it, because we never kept it.
The trade-off I chose on purpose

Any check that runs on the client can be bypassed by someone determined enough to read the source. A login-based license server would be harder to crack, but it would also mean accounts and a log of which device checked in, from where, and when. Publishing the same hashed list to everyone means the server learns nothing about who is premium. Premium is priced as support for the project, not as DRM, and the privacy guarantee wins over piracy protection.

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 providedMilitary equivalentUnit cost
Live MET weather at positionTemp, pressure, wind vector, humidityKestrel 5700 Elite w/ Applied Ballistics$769
MET weather at second positionTarget-area atmospheric conditionsSecond Kestrel 5700 unit$769
MGRS / Lat-Lon coordinate handlingMilitary grid reference conversionDAGR GPS Receiver (AN/PSN-13)$2,300
Precision range & bearingTarget distance and azimuth computationLightweight Laser Designator Rangefinder (LLDR)$264,000
Topographic elevation profilingGround elevation at any coordinate pairDigital terrain elevation data licensing + equipment$10,000+
Fire control data integrationAutomated computation & formatted outputAFATDS 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.

KillCalculator with two coordinates entered, showing 6.329 km range, 22.7 degree bearing, a 1082 m height difference, and elevation, temperature, pressure, wind and humidity for both points
A real Fetch Data result for two example points at the Grand Canyon: 6.3 km range, 22.7° bearing (403.6 mils), 1,082 m downhill. Both points fall in the same ~10 km weather cell, so they share one weather reading. That's the privacy grid at work.

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

Next.js 15 + TurbopackReact server components, static export capability, fast dev iteration
TypeScript + ZodEnd-to-end type safety with runtime schema validation on all form inputs
Serwist service workerPrecaching, runtime caching, and offline-first asset delivery
IndexedDB (via idb)Client-side caching for terrain tiles, satellite imagery, and frontline GeoJSON
Leaflet + GeoJSONInteractive tactical map with satellite/topo/dark basemaps and DeepState frontlines
WebLLM (Gemma 2B)On-device AI inference via Web Workers. No data leaves the browser
Capacitor + ElectronCross-platform: PWA, native iOS/Android, and Windows desktop from one codebase
Radix UI + Tailwind CSSAccessible component primitives with utility-first responsive styling

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

01

Full-stack product development

Concept to production: design, architecture, frontend, deployment, iteration.

02

User-driven pivoting

Recognized real usage patterns, abandoned the original vision, rebuilt around user needs.

03

Privacy-first architecture

Zero-knowledge design when the stakes demand it, not compliance theater.

04

Offline-first engineering

Service workers, IndexedDB caching, progressive enhancement for no-connectivity use.

05

Cross-platform delivery

One TypeScript codebase to PWA, Electron desktop, and Capacitor iOS/Android.

06

Domain expertise integration

Military coordinate systems, ballistic physics, meteorological data, weapon system databases.

07

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.