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

@gabrielahn/gtfs-viz-cli

v1.3.1

Published

CLI for importing, querying, editing, and visualizing GTFS transit data with DuckDB

Readme

@gabrielahn/gtfs-viz-cli

Visualize, analyze, and edit GTFS transit data with a local DuckDB database and browser dashboard.

npm GitHub

GitHub | Web App | DuckDB Extension | Agent Skills

Features

  • Import GTFS zips — all data stored locally in DuckDB, no backend required
  • Browse stations, stops, and pathways with filters
  • Edit stations, stops, and pathway connections with live preview
  • Pathfinding between station parts with traversal times
  • Export edited data back to GTFS CSV format
  • Browser dashboard with interactive maps, tables, and flow editor
  • DuckDB SQL extension loadable from any DuckDB instance
  • AI agent skills for coding assistants

Install

npm install -g @gabrielahn/gtfs-viz-cli

Requires DuckDB CLI (duckdb on PATH or DUCKDB_BIN).

Quick Start

gtfs-viz import /path/to/feed.zip     # Import GTFS zip
gtfs-viz stations --name "Park"       # Filter stations
gtfs-viz station "Park Street"        # Open dashboard
gtfs-viz station "Park Street" --data # Print data in terminal
gtfs-viz examples                     # See all commands

Commands

| Command | Description | | --- | --- | | import <feed.zip> | Import GTFS zip into local DuckDB | | stations [--name --pathways --wheelchair] | Browse stations with filters | | stops [--name --location-type --wheelchair] | Browse stops with filters | | station <name\|id> | Station info (dashboard or --data) | | stop-info <name\|id> | Stop map with popup (dashboard or --data) | | station_connections <name\|id> | Connection flow graph | | station_pathways <name\|id> | Station parts and pathways | | station_routes <name\|id> | Timed routes between parts | | station_shortest_route <name\|id> | Fastest entrance-to-exit route | | add_connection / update_connection / delete_connection | Edit pathways | | add_node / update_node / delete_node | Edit stops | | export [--output --no-stops --no-pathways] | Export edited GTFS as CSV | | query --sql <sql> | Run SQL | | edit_table [pathways\|stops] | View pending edits | | stop | Stop dashboard session and clear session state | | restart | Stop session and remove local DuckDB/feed import | | examples | Show usage examples | | clean | Remove all local data |

Add --data for terminal output, --format json for JSON, --dashboard for browser.

DuckDB Extension

The CLI uses the same GTFS DuckDB extension as the web app. Install it in any DuckDB instance:

INSTALL gtfs FROM 'https://github.com/gabrielAHN/gtfs-viz/releases/download';
LOAD gtfs;
-- After loading GTFS data:
SELECT * FROM gtfs_init();

Agent Skills

Install reference docs for AI coding agents (Claude Code, Cursor, etc.):

gtfs-viz install-skill

Installs: SKILL.md | commands.md | tables.md | procedures.md | gtfs-schedule-reference.md | examples.sql