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 🙏

© 2025 – Pkg Stats / Ryan Hefner

algoria-utils

v0.0.9

Published

A tiny helper library that ships types, schemas, and other utilities across Algoria project.

Readme

Algoria Utils

A tiny helper library that ships:

  • JSON Schema definitions describing the core entities of our application.
  • TypeScript type declarations automatically generated from those schemas.
  • A small set of utility classes (see src/utility) that make it easier to work with the entities at runtime.

The schemas can be fetched over HTTP and used for runtime validation (via AJV) or static type-checking (via json-schema-to-typescript). The build script in this repository takes care of converting raw schemas to typings and bundles a ready-to-consume dist folder.

Note
There is currently no convenient way to build JSON Schema compositions that can be understood by both json-schema-to-typescript and AJV at the same time.
Because of this limitation the challenge-related schemas in this repo are intentionally denormalised yet self-sufficient – every schema contains everything it needs to validate or instantiate the corresponding entity without external $refs.


Installation

With npm

pnpm install algoria-utils

Or use the repository directly for development

git clone <repo-url>
cd algoria-utils
pnpm install

Available npm scripts

| Command | Description | |---------------------|---------------------------------------------------------------------------------------------| | npm run dev | Starts Vite's dev server to host schema files while working with other project repositories | | npm run get-types | Regenerates .d.ts files from JSON Schema | | npm run build | Calls get-types script and compiles TypeScript sources to dist/ |

The project uses TypeScript 5.8 and is built with Vite 6.


Utility classes

All runtime helpers live in src/utility. Typical examples include:

  • DefaultLoggerFactory – a factory for creating a logger that shares a log level across all the logger instances, and supports context in logs, e.g. [File name]: log text
  • HTTPChallengesLoader – convenient way to load challenges and expectations over HTTP (names may change; check the folder for the latest API)

Contributing

  1. Fork the repo and create your branch:
    git checkout -b feat/my-awesome-feature
  2. Commit your changes: git commit -am "feat: add my feature"
  3. Push to the branch: git push origin feat/my-awesome-feature
  4. Open a pull request.

Licensing

Released under Creative Commons BY-NC-SA 4.0.
Commercial use is not permitted without the author’s explicit consent.