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

@uppercut-labs/fgc-data

v0.1.0

Published

Fighting-game rosters, gameplay summaries, a catalog of games with team-selection schemas, and the builder helpers that assemble them, as typed data with no dependencies.

Readme

@uppercut-labs/fgc-data

Typed fighting-game data in one place: the character rosters of twelve game lists, a gameplay summary for each character, a catalog of games with their team-selection rules, and the small builder functions that assemble them. Everything is plain data plus functions, so the package has no runtime dependencies and no side effects.

The catalog carries no character art. Art differs from app to app, so withArt attaches whatever art you have, of whatever type you choose, to a copy of the catalog.

npm install @uppercut-labs/fgc-data

What runs where

All of it is TypeScript compiled to ESM JavaScript. It runs in Node 18 or later, browsers, Deno, Bun and Cloudflare Workers on any OS. Nothing here is PowerShell or Bash. The commands under Working on it work in PowerShell on Windows and in Bash on macOS and Linux.

Example

import { catalog, findCharacter, getGame, withArt } from '@uppercut-labs/fgc-data';

const mvc2 = getGame('mvc2');
console.log(mvc2?.characters.length, mvc2?.schema.slots.map((slot) => slot.label));
console.log(findCharacter('mvc2', 'cable')?.summary);

// Attach your own art, of any type, to a copy of the catalog.
const withPortraits = withArt(catalog, (gameSlug, characterSlug) => ({ src: `/art/${gameSlug}-${characterSlug}.png` }));
console.log(withPortraits[0]?.characters[0]?.art?.src);

Exports

| Export | What it is | | --- | --- | | completeRosters | Roster lists keyed by marvelTokon, mvc2, umvc3, avatarFighters, melee, ggxxacpr, vampireSavior, sf6, mk1Fighters, mk1Kameos, tekken8, ggst. Each entry is { slug, name } | | avatarSupportOptionsByFighter, avatarSupportOptions | The three support picks for each fighter of the Avatar game, and the combined list | | characterSummariesByGame | Record<gameSlug, Record<characterSlug, string>>. The per-game objects (mvc2CharacterSummaries and so on) are exported too | | catalog, catalogBySlug | Every game as a GameVersion: names, source and check date, selection schema, and characters with summary and source | | getGame(slug), listGames(), findCharacter(gameSlug, characterSlug) | Lookups | | withArt(games, lookup) | Returns a copy of the games whose characters carry the art that lookup(gameSlug, characterSlug, character) returns. Characters with no art get no art field. The input is not changed | | fighter, sourcedRoster, summaryFor | Build characters from roster entries. sourcedRoster(gameSlug, sourceUrl, publisher, entries, role?, { checkedAt?, summaries? }) throws when an entry has no summary | | soloSchema, teamSchema(count), mvcSchema(assists) | Selection schemas | | ROSTER_CHECKED_AT | Date the rosters were last checked against their sources |

Types: Character<Art>, GameVersion<Art>, SelectionSchema (with noun of Character or Team), SelectionSlot, RosterRole, RosterEntry, SourcedRosterOptions, ArtLookup<Art>. Art is never for the plain catalog and the type your lookup returns after withArt.

Data and sources

Rosters come from each game's official pages, which each Character.sourceUrl names, and were last checked on the date in ROSTER_CHECKED_AT. The gameplay summaries are original text written for this package. Game names and character names belong to their publishers.

Working on it

From the repository root:

npm install
npm run check

The tests check that ids are unique, every roster entry has a summary and no summary lacks a roster entry, every catalog character is on its roster, selection schemas are well formed, and withArt copies instead of changing the catalog.

License

MIT