Matteo Tosi

👋 hello fellow humans

A love letter to brownfield code (written in BDD)

Devlog: 2026-10

October: tooling cleanups and, true to the title, Behavior-Driven Development across my Leaflet plugins.

First target: the test and build setup of leaflet-elevation. BDD testing moved the suite from node:test to cucumber-js so scenarios read like plain English, and closed ten old issues on the way. I also replaced rollup with esbuild and removed d3js: few of my contributors ever knew how to use it properly.

Later in the month, the focus shifted to preparing for the next major Leaflet release. I opened pull requests to add support for Leaflet v2.0.0-alpha.1 in leaflet-rotate, leaflet-elevation (while retaining v1.9.4 compatibility), and leaflet-ui, which also picked up esbuild and BDD tests. I also opened a PR to Leaflet itself proposing to add several of my long-maintained plugins to the official directory (merged in November).

Illustration of leaflet-rotate

An illustration of leaflet-rotate.

Between v2 updates, leaflet-rotate got new features and a fix: pitch rotation, Maplibre-like gestures, and a fix for distortion when panning far from the rotation point.

On the g3w-suite side, I kept dependencies moving forward with client PRs for bumping OpenLayers to 10.11.0 and replacing vue-template-compiler, reviewed a handful of PRs across g3w-client and g3w-admin, and opened a PR to convert g3w-admin-portal from a Vue 3 project to vanilla JS and CSS.

Here's an interactive example straight from leaflet-rotate:

Pilot ID · SWE

Software Engineer @ g3w-suite

Over a decade fighting enterprise maps. Day job: getting QGIS projects to fly on the web.

Station
g3w-suite · client, server, Docker, plugins
On board since
2012
Side missions
Leaflet plugins, brownfield code
Motto
Peace, love, and lean code.

Callsign · Raruto

This is Raruto.

Just another human in the loop. The helmet does most of the work.

Callsign
Raruto
Name
Matteo Tosi
Home base
github.com/Raruto
Flight log
Debriefs →

Stencil · 01

No step

On a real airframe it marks the panels your boot would punch through. Here it marks the parts held together with duct tape. Tread lightly.

Stencil · 02

Mach 3+ inside

SR-71 cruise speed. This site gets close by shipping almost nothing: plain HTML, one stylesheet, no framework.

Mach 3
Not included.

Stencil · 04

Open hatch

Most of my open-source mileage is Leaflet plugins. Maps that rotate, draw elevation profiles, and lately go 3D.

Hangar
42 airframes →

Stencil · 03

Rust free

No theme, no page builder. Markdown in, HTML out, one small Node script in between. Hand-rolled HTML, like it's 1999.

Source
Raruto/raruto.github.io

Stencil · 05

Best viewed @ 85,000 ft

Roughly where the SR-71 cruised. Down here, any browser from this decade will do.

Ground crew

GitHub Pages

The runway. Markdown in, HTML out, one small Node script in between, pushed to a repo and served from there. No servers to babysit.

Source
Raruto/raruto.github.io
Service
pages.github.com