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

f1aire

v0.1.4

Published

An F1 AI race engineer chat agent (terminal UI).

Downloads

547

Readme

F1aire

Terminal F1 AI race engineer chat agent.

Pick a season/Grand Prix/session, download the official live timing feeds, then chat with an “engineer” that answers using the loaded session data (pace deltas, stints/tyres, gaps, safety car phases, undercut windows, etc.). The agent can also run sandboxed Python (Pyodide) for custom calculations.

Quickstart (recommended)

Run the latest published version (no clone required):

npx -y f1aire@latest

Requires Node >= 24.13.0. Set OPENAI_API_KEY (see Configuration) or paste it in-app when prompted.

Development (from source)

  1. Install Node via mise (see mise.toml):

    mise install
  2. Install dependencies:

    npm install

Running

  • Dev TUI (Ink):

    mise run dev
  • Unit tests (Vitest):

    mise run test

Configuration

OpenAI:

export OPENAI_API_KEY=...
# optional (defaults to gpt-5.2-codex)
export OPENAI_API_MODEL=...

You can also paste/store the API key in-app (Settings on the season/meeting/session screens, or when prompted after a download).

Usage

  • Navigation: Enter selects, b/Backspace/Esc goes back, q quits.
  • Engineer chat: Enter sends, PgUp/PgDn scroll, Esc back, Ctrl+C quits.

AI Race Engineer

After a session download finishes, the UI switches into chat mode. The first assistant message includes a quick summary, then you can ask questions like:

  • “Compare Norris vs Verstappen on clean laps 10–25.”
  • “What was the undercut window vs car #1? Assume 20.5s pit loss.”
  • “As of lap 35, who’s gaining the most on average?”

E2E tests (optional)

Runs a live streaming call against the OpenAI API (networked; costs money):

npm run test:e2e

Data directory

Session downloads are stored under the per-user data directory for the app name f1aire:

  • macOS/Linux:
    • $XDG_DATA_HOME/f1aire/data (when XDG_DATA_HOME is set)
    • ~/.local/share/f1aire/data (fallback)
  • Windows:
    • %LOCALAPPDATA%\f1aire\data (preferred)
    • %APPDATA%\f1aire\data (fallback)
    • %USERPROFILE%\AppData\Local\f1aire\data (final fallback)

Usage notes

  • Downloads fetch data from livetiming.formula1.com and write live.jsonl and subscribe.json under the data directory.
  • If a session folder already exists, it will be reused; delete the folder to re-download cleanly (partial folders are rejected).
  • First run downloads the Pyodide runtime (~200MB) into the data directory; later runs reuse the cached assets.