All projects
Web Self-hosted

Händelsekartan

A self-hosted dashboard that tracks and visualises crime events across Sweden in real time, pulling from the Swedish Police public API and persisting the data for historical analysis.

ReactKotlinSpring BootMapLibreRaspberry PiSelf-hosted

Händelsekartan (“event map”) is a self-hosted full-stack project running on a Raspberry Pi. The name is straightforward — it shows what’s happening, and where.

Backend

A Spring Boot service polls the Swedish Police events API every two minutes and persists any new events to a local database. That persistence step is the whole point: the API only ever returns the 500 most recent entries, so without it there’s no history.

Frontend

The React frontend has two views. The map view plots events on an interactive MapLibre map — each marker opens a summary and links to the original event page on Polisen.se. Events also appear in a chronological feed alongside the map. The stats view shows accumulated data with filters for region and time period, broken down by event type, geography, and frequency over time.

Hosting

Both services run as local processes on the Pi. Only the frontend is exposed via a reverse proxy — the backend has no public access.

Screenshots

Map view and event feed
Map view and event feed
Statistics — event breakdown
Statistics — event breakdown
Statistics — frequency over time
Statistics — frequency over time