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

@eventcatalog/fieldtrip

v0.0.1

Published

Search across OpenAPI, AsyncAPI, Protobuf, Avro, and JSON Schema files

Readme

FieldTrip

Instantly search, explore, and visualize every field across your schemas.

Point it at a directory. It finds your OpenAPI, AsyncAPI, Protobuf, Avro, and JSON Schema files, indexes every property, and launches a local UI to explore them.

License: MIT npm version


FieldTrip Table View

Why FieldTrip?

Schema sprawl is real. When your system has dozens of services each with their own schema definitions, it becomes impossible to answer simple questions:

  • "Which schemas use a customerId field?"
  • "Is email required everywhere it appears?"
  • "What fields does Order share with Payment?"

FieldTrip answers these in seconds. One command, zero config.

Quick Start

npx fieldtrip --dir ./schemas

That's it. FieldTrip scans the directory, indexes every property, and opens a local UI at http://localhost:3200.

Features

Table View — Search & Filter

Full-text search across all property names, types, and descriptions. Filter by schema type, sort by name/schema/type, and click any property to view it in context with syntax highlighting.

  • Prefix and fuzzy matching
  • Exact match with "quoted strings"
  • Filter by schema type (OpenAPI, AsyncAPI, Proto, Avro, JSON)
  • Filter by specific schema files via the sidebar
  • Click any row to view the full schema with the property highlighted

FieldTrip Table View

Matrix View — Property x Schema

See which properties appear in which schemas at a glance. A heatmap-style grid where rows are properties and columns are schemas.

  • Green cells = required, Blue cells = optional
  • Hover to see type, schema, and required status
  • Sort by frequency, alphabetical, or required count
  • Instantly spot shared fields across your architecture

FieldTrip Matrix View

Graph View — Force-Directed Relationships

Visualize how schemas are connected through shared properties. Schema nodes cluster with their properties, and shared fields create visible bridges between schemas.

  • D3.js force-directed simulation
  • Click a property to highlight all schemas sharing that field
  • Click a schema to highlight all its properties
  • "Shared only" toggle to reduce noise
  • Drag, zoom, and pan

FieldTrip Graph View

Supported Schemas

| Format | Extensions | What's indexed | |--------|-----------|---------------| | OpenAPI | .yaml .yml .json | Components, definitions, inline request/response bodies | | AsyncAPI | .yaml .yml .json | Components, messages, channel payloads (v2 & v3) | | Protobuf | .proto | Messages, enums, nested types | | Avro | .avsc | Records, nested records, unions, arrays, maps | | JSON Schema | .json | Properties, nested objects, allOf/oneOf/anyOf |

CLI Options

Usage: fieldtrip [options]

Options:
  --dir <path>     Directory to scan for schema files (required)
  --port <number>  Port for the web UI (default: 3200)
  --no-open        Do not auto-open browser
  -h, --help       Display help

Development

# Install dependencies
npm install

# Run in dev mode
npm run dev

# Build for production
npm run build

How It Works

  1. Scan — Recursively finds schema files by extension and content detection
  2. Parse — Extracts every property with its name, type, description, path, and required status
  3. Index — Builds a MiniSearch full-text index with prefix search and fuzzy matching
  4. Serve — Launches an Express server with a Vite-built frontend

License

MIT