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

@guitarserials/core

v0.3.0

Published

Guitar serial-number decoder — pure TypeScript, zero runtime dependencies. Supports 18 brands across a century of production, month/day precision where encoded, and every PRS model line from 1985 through 2024.

Readme

@guitarserials/core

Guitar serial-number decoder. Pure TypeScript, zero runtime dependencies. Ships as an ES module with full type declarations.

Powers the decoder at guitarserials.org. Drop it into your own dealer tool, appraisal workflow, or listing-validation pipeline.

Install

pnpm add @guitarserials/core
# or npm install @guitarserials/core

Use

import { matchSerial } from '@guitarserials/core';

const result = matchSerial('CS500123', 'gibson custom shop', { listingYear: 2015 });
// result.decodedYear        → 2015
// result.brandFormat        → 'gibson_cs'
// result.confidenceTier     → 'high'
// result.candidates         → every structurally valid interpretation considered

matchSerial(serial, brand, options?) — where brand is one of the ids in SUPPORTED_BRANDS:

| Brand | ID | |---|---| | Gibson | gibson | | Gibson Custom Shop | gibson custom shop | | Fender | fender | | PRS | prs | | Heritage | heritage | | Sire | sire | | Ibanez | ibanez | | Gretsch | gretsch | | Rickenbacker | rickenbacker | | Jackson | jackson | | Charvel | charvel | | Epiphone | epiphone | | Squier | squier | | G&L | g&l | | Schecter | schecter | | Martin | martin | | ESP | esp | | LTD | ltd | | Ernie Ball Music Man | music man |

Options:

  • listingYear?: number — cross-validates the decoded year against context (e.g. from a Reverb listing). Drives the confidence tier: within 1 year = high, 2–5 off = review, >5 = rejected. Also used to resolve decade ambiguity for single-digit-year formats (Gibson CS, Rickenbacker 1996+, ESP pre-2000, G&L Tribute, etc.).
  • modelHint?: string — free-form model string (e.g. "Les Paul Reissue R9", "American Vintage '52 Telecaster"). Used to gate model-specific rules — the Gibson Custom Shop historic-reissue rule, for instance, only fires when the hint clearly names an R-series / Historic / Murphy Lab instrument.

The full SerialMatch shape is in src/types.ts.

Methodology

Every format rule traces to at least two authoritative sources (manufacturer documentation where it exists, then reference books, registries, and long-running community wikis). Every rule has unit tests. See the methodology page for the confidence-tier model and the sourcing standard.

License

MIT. Attribution appreciated but not required.