Desktop apps
active-window-sessions
Turn active-win style polling into clean time segments per app and per website: merges short gaps, drops blips, respects idle time, ignores system UI and totals each app.
Make GPX tracks safe to share: trim the start and end, simplify the track, compute distance and climb, and write a minimal clean GPX file.
npm install gpx-privacyA recorded ride or run starts and ends at your front door. gpx-privacy edits a GPX file to fix that: it hides the first and last 500 m of the track (wherever along the track they recur), simplifies what is left, works out the distance, climb and duration, and writes a minimal GPX file with nothing but positions, heights and times.
It is a library and a command-line tool with one runtime dependency. @tmcw/togeojson and gpxparser read GPX into GeoJSON or plain objects and leave the privacy step to you. gpx-privacy starts where they stop: it trims the ends, thins the line, and returns a clean file you can publish.
npx gpx-privacy ride.gpx -o ride-public.gpxgpx-privacy: ride.gpx -> ride-public.gpx
Trimmed 500 m from the start and the end
Points 2,001 -> 500
Distance 43.98 km
Climb 343 m
Descent 344 m
Duration 1:40:00gpx-privacy ride.gpx -o ride-public.gpx --trim 300 --max-points 300 --drop-timesimport { makeShareable } from 'gpx-privacy';
const { gpx, stats, shared, points } = makeShareable(xml, { trim: 500, maxPoints: 500 });
// gpx: the clean document, stats.distance: metres of the whole ride, points: { input: 2001, output: 500 }gpx-privacy <in.gpx> [-o out.gpx] [--trim 500] [--max-points N] [--drop-times] [--stats] [--json]Run npx gpx-privacy ride.gpx -o ride-public.gpx. It removes every point within 500 m of the start and the end, simplifies the rest to at most 500 points and writes a new GPX file. Change the radius with --trim.
It does the same job as a privacy zone, on the file itself: trim the track before you upload it. A trim hides where the ride starts and ends, not the neighbourhood, so choose a larger --trim if that matters. It is not anonymisation.
No. gpx-privacy is a command-line tool and a library. The library uses no Node APIs, so you can run it in a browser page of your own.
No: GPX in, GPX out. parseGpx() returns the points and segments, so you can convert them yourself, or use @tmcw/togeojson, which reads GPX into GeoJSON.
Desktop apps
Turn active-win style polling into clean time segments per app and per website: merges short gaps, drops blips, respects idle time, ignores system UI and totals each app.
Localization
Translation quality assurance for the facts in a string: check that numbers, prices, percentages, URLs, emails and {placeholders} survive translation.
Author
Saimul Islam is a Forward Deployed Engineer and Solutions Architect. Several of these packages run in production on DeveloperLook, the Bundlewise CRM and Sitessa.