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

@rpgm-tools/neo-angband-mod-sdk

v1.3.0

Published

Pack schemas, validation, and tooling for Neo Angband mods (content packs, tile packs, scripted plugins)

Readme

@rpgm-tools/neo-angband-mod-sdk

The mod machinery for Neo Angband: manifest schema and validation, the deterministic load-order resolver, and the record-composition engine that merges packs.

npm install @rpgm-tools/neo-angband-mod-sdk

Full authoring docs ship in docs/, starting with docs/tutorials/README.md.

Why it is a separate package

The base game loads its own content through this pipeline, as pack zero. That is the point: there is no privileged path a mod cannot take, because the game itself does not have one. This package is that pipeline, with no engine attached, so a mod's build script or test can validate a manifest, resolve a load order or compose records without pulling in a game.

What is in it

| Area | Exports | | --- | --- | | Manifests | validateManifest, PackManifest, PackShape, packFacets, hasFacet, packRef, slugify | | Load order | resolveLoadOrder (enforces), satisfies (the semver subset the manifests use) | | Auto-sort | sortModOrder (proposes, and cannot fail), collectSortEdges, SortPin, SortTier, PACK_GROUPS | | Sections | resolveSectionState, expandSections, sectionFlag, PackSection, SECTION_BANDS: the named parts of a mod | | Compatibility | PackCompat, COMPAT_CLAIMS: what an author may claim about another mod (never binding) | | Composition | composePacks, composeContentPacks, mergePatch, applyFieldPatch, composeFieldPatches | | Conflicts | computeConflictReport (records), contestedSlots / describeContested (every other layer), Fold, foldDiscards | | Record identity | recordKey, keySpecFor, KEYED_RECORD_FILES, RECORD_KEY_SPECS | | Capabilities | CapabilitySet, parseCapability: what a scripted plugin is allowed to reach |

import { validateManifest, ManifestError } from "@rpgm-tools/neo-angband-mod-sdk";

try {
  const manifest = validateManifest(JSON.parse(text));
  console.log(manifest.id, manifest.shape, manifest.modApi);
} catch (e) {
  if (e instanceof ManifestError) console.error(`bad manifest: ${e.message}`);
}

The three pack shapes

  • content: declarative JSON validated against the record schemas. Safe by construction: it cannot execute anything.
  • tiles: a tile pack, either a tilesheet re-skin or a loose Linoleum pack.
  • plugin: a scripted mod. It default-exports a ModPlugin and receives the running engine as ctx.core, because a module loaded out of a mod folder cannot resolve a bare specifier and a bundled copy of the engine would give the plugin its own registries while the game ran on another set.

A single mod may declare several of these as facets; packFacets is what reads them.

Related

Versioning

Standard Semantic Versioning as of 1.0.0, the game's public release: a breaking API change is a MAJOR bump, a backward-compatible feature is MINOR, and a fix is PATCH. 0.x was the pre-release line, where the API could change inside a MINOR bump.

Licence

GNU GPL v2, or the Angband licence, at your option: Angband's dual licence, kept as the Angband project asks of its variants. npm carries one SPDX identifier so the manifest says GPL-2.0-only; both texts are in LICENSE.md.