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

@neutrium/utilities

v5.0.0

Published

A collection of general purpose utility objects for the NeutriumJS library.

Readme

@neutrium/utilities

Reusable caches, input validation, configuration, immutable snapshots, integer operations, asynchronous coordination and expression-parsing tools for TypeScript and JavaScript applications.

API reference

Installation

pnpm add @neutrium/utilities
# or: npm install @neutrium/utilities

This package is ESM only and requires Node.js 24 or later. Use a .mjs file or set "type": "module" in your application's package.json. TypeScript declarations are included; Node applications can use "module": "NodeNext" and "moduleResolution": "NodeNext". Browser applications can use an ESM-aware bundler.

Feature index

Browse the feature guides below. Each feature is available from its subpath and the package root; for example, import caches from @neutrium/utilities/cache or @neutrium/utilities.

| Feature | Subpath | Includes | Guide | | --- | --- | --- | --- | | Caching | @neutrium/utilities/cache | LRU, weighted and budget caches; weak identity registries | Caching | | Validation | @neutrium/utilities/validation | Guards, assertions and safe data-record copying | Validation | | Configuration | @neutrium/utilities/configuration | Defined-value merging and validated configuration resolution | Configuration | | Integer operations | @neutrium/utilities/integer | BigInt integer helpers and 32-/64-bit word operations | Integer operations | | Asynchronous coordination | @neutrium/utilities/async | Serial operation queues and shared lazy initialization | Asynchronous operations | | Immutable snapshots | @neutrium/utilities/immutable | Deeply frozen snapshots of data graphs | Immutable snapshots | | Parsing | @neutrium/utilities/parsing | Pratt expression parsing, token cursors and parse errors | Parsing |

Upgrading to 5.0

Numerical adapters now live in @neutrium/math. The migration guide covers dependency and import changes for version 5, plus the earlier adapter-contract changes for consumers upgrading from version 3 or earlier.

Development

pnpm install
pnpm run verify

Documentation

The API documentation and feature guides are generated with TypeDoc. Build them locally with pnpm run docs, then open docs/index.html. Generated files are ignored by Git and excluded from the npm package. pnpm run verify runs the package tests and builds the documentation, treating documentation warnings as errors.

To build and preview the documentation locally:

pnpm run docs:dev

Open http://127.0.0.1:4173/utilities/. After editing documentation, run pnpm run docs in another terminal and refresh the browser. Stop the preview with Ctrl+C.

License

Overview

This project is licensed under the MIT License, see the LICENCE file for details.

You are free to:

  • Use this plugin for personal or commercial purposes
  • Modify and distribute the code
  • Include it in other projects

Under the following conditions:

  • You must include the original license and copyright notice

Disclaimer

This plugin is provided "as is", without warranty of any kind. Use at your own risk.