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

sidc-kit

v0.3.2

Published

A small TypeScript toolkit for rendering SIDCs and working with curated SIDC semantics.

Readme

SIDC Kit

SIDC Kit is a small Node-focused TypeScript toolkit for working with military Symbol Identification Codes.

It wraps the MIT-licensed milsymbol renderer and adds a curated semantic layer for common workflows:

  • search for symbols by plain-language terms
  • explain known SIDCs into structured parts
  • build known SIDCs from structured parts
  • render SIDCs to SVG with milsymbol

V0 can render syntactically valid 30-digit SIDCs that milsymbol supports. Search, explain, and build intentionally support only a tiny curated set and do not claim exhaustive MIL-STD-2525 or STANAG APP-6 semantic coverage.

Install

Install from npm after the first release is published:

npm install sidc-kit

For local development, clone the repository and install dependencies:

npm install

Build And Test

npm run build
npm test

Usage

import { buildSidc, explainSidc, renderSymbol, searchSymbols } from "sidc-kit";

const results = searchSymbols("friendly infantry platoon");

const explanation = explainSidc("130310001412110000000000000000");

const sidc = buildSidc({
  affiliation: "friend",
  domain: "land",
  entity: "infantry",
  echelon: "platoon"
});

const rendered = renderSymbol(sidc, { size: 40 });

API

searchSymbols(query, options?)

Performs deterministic lexical matching over curated names, aliases, and part labels. Returns ranked results with score, sidc, name, aliases, parts, and coverage.

explainSidc(sidc)

Explains a curated 30-digit SIDC into a stable JSON-serializable object. Unknown but syntactically valid SIDCs fail with UNSUPPORTED_SIDC.

buildSidc(parts)

Maps known curated part combinations to a SIDC. Unsupported combinations fail with UNSUPPORTED_COMBINATION rather than guessing. Partial combinations that match more than one curated SIDC fail with AMBIGUOUS_COMBINATION; add the distinguishing part named in the error, such as echelon.

renderSymbol(sidc, options?)

Renders a syntactically valid 30-digit SIDC with milsymbol and returns SVG plus anchor and size metadata when available. SIDCs that milsymbol cannot validate or render are reported as RENDER_FAILED.

Coverage

Rendering coverage follows the installed milsymbol package. The curated semantic set includes a few common land-unit examples such as friendly infantry platoon, hostile infantry platoon, armor platoon, artillery platoon, reconnaissance platoon, and infantry company.

Image-based reverse lookup is intentionally deferred.

Changelog

Release history is maintained in CHANGELOG.md and GitHub Releases. The npm package includes CHANGELOG.md so published artifacts carry the release history.

Release Automation

Releases are managed by Release Please. Commits merged to main should use Conventional Commit prefixes:

  • fix: creates a patch release
  • feat: creates a minor release
  • feat!: or fix!: creates a major release

On main, the release workflow opens or updates a release PR that contains the version bump and CHANGELOG.md. Merging that release PR creates the GitHub release and publishes the package to npm.

Npm publishing uses trusted publishing with GitHub Actions OIDC. Configure the package on npm with these trusted publisher values:

  • owner: the-Drunken-coder
  • repository: sidc-kit
  • workflow filename: release.yml
  • allowed action: npm publish

No long-lived NPM_TOKEN is required for the release workflow.

If OPENCODE_API_KEY is configured as a GitHub Actions secret, the release workflow asks OpenCode to summarize the diff between the new release tag and the previous release tag, then appends that summary to the GitHub release notes. Summary generation is best-effort and does not block npm publishing for normal push releases. Manual workflow_dispatch recovery runs still require the existing GitHub release notes to include a Manual Release Summary, Release Diff Summary, or OpenCode Diff Summary heading before publishing. Set the optional repository variable OPENCODE_MODEL to override the default opencode-go/kimi-k2.6 model.