npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

lapvisor

v0.3.0

Published

Race data toolkit (SDK + CLI) — lap times, GPS telemetry, sector splits, track tooling. Agent-friendly.

Readme

lapvisor

A race-data toolkit — lap times, GPS telemetry, sector splits, track tooling — for hobby karting and amateur motorsport. Ships an SDK and a CLI from one codebase.

Status: v0.3.0. SDK + CLI split. Working: laps, session, lap, track create, track edit against RaceBox / Racelogic VBOX files and kart-track/v1 GeoJSON.

Two doors

Install

# CLI
npm install -g lapvisor
npx lapvisor --help

# SDK
npm install lapvisor

Requires Node.js 22+. End users do not need Bun.

CLI 60-second tour

The samples/ directory ships a real session at Plytinės Kartodromas (Vilnius) and the matching track file:

SESSION="samples/RaceBox Track Sessionon 05-05-2026 19-35.vbo"
TRACK="samples/plytines.track.json"

# 1. Lap-time summary
lapvisor laps "$SESSION"

# 2. Full session render bundle (JSON, lapvisor-session/v2)
lapvisor session "$SESSION" --track "$TRACK" | jq '.lapSummaries | length'  # 9

# 3. One lap with rich telemetry (JSON, lapvisor-lap/v1)
lapvisor lap "$SESSION" 3 --track "$TRACK" | jq '{laps: .lap, sectors: (.sectors | length)}'

Full CLI reference: docs/cli/overview.md.

SDK 60-second tour

import { parseVbo } from "lapvisor/adapters";
import { loadKartTrack } from "lapvisor/track";
import { buildSessionBundle } from "lapvisor/bundles";
import { readFile } from "node:fs/promises";

const text = await readFile("session.vbo", "utf8");
const vboFile = parseVbo(text, "session.vbo");
const track = await loadKartTrack("track.json");

const bundle = buildSessionBundle({
  source: { file: "session.vbo", format: "vbo" },
  vboFile,
  track,
});

console.log(bundle.schema);  // "lapvisor-session/v2"

Per-area subpaths: lapvisor/model, lapvisor/adapters, lapvisor/analysis, lapvisor/bundles, lapvisor/track, lapvisor/time. Browser-safe pure variants (parseVbo, parseKartTrack, loadSessionFromText) skip Node-only file I/O.

Full SDK reference: docs/sdk/overview.md. Runnable examples: examples/.

What's inside

| Section | Path | | --- | --- | | SDK overview, quick start, stability tiers | docs/sdk/ | | CLI reference | docs/cli/ | | Wire formats (VBO, kart-track/v1, lapvisor-lap/v1, lapvisor-session/v2) | docs/formats/ | | How to add adapters / analyses / bundle versions | docs/extending/ | | Analysis notes (lap detection geometry, filters) | docs/analysis/ | | Runnable SDK examples | examples/ |

Adapters

| Format | Status | Notes | | --- | --- | --- | | .vbo (Racelogic VBOX / RaceBox) | working | src/adapters/vbo.ts · spec | | .gpx, .fit, .tcx, lap-time CSV | planned | See docs/extending/adapter.md for how to add one. |

Develop

Bun (>=1.2) is used for dev and tests; tsup produces the Node-runnable artifacts.

bun install
bun run dev <subcommand> ...      # run CLI from source
bun test                          # run tests (includes examples + SDK exports when dist/ is built)
bun run lint                      # biome
bun run format                    # biome auto-fix
bun run build                     # produces dist/cli.js + dist/sdk/*.js + dist/sdk/*.d.ts
node dist/cli.js --help           # run the built CLI artifact

License

MIT — see LICENSE.