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

@rapidrest/core

v5.1.0

Published

A collection of common utilities and core functionality for rapidly building RESTful applications.

Readme

RapidREST: Core Library

CI Coverage Status npm version

A shared utility library consumed by RapidREST-based applications and servers, including @rapidrest/service-core. It provides the foundational building blocks — dependency injection, caching, messaging, logging, token-based auth and more — that the rest of the RapidREST ecosystem is built on.

For complete documentation please visit RapidREST.dev.

Features

Object Lifecycle & Dependency Injection

  • ClassLoader — dynamically discovers and loads classes at runtime from a folder structure, using C#/Java-style namespace conventions
  • ObjectFactory — a lightweight DI container that creates and tracks classes and instances
  • Easily inject class dependencies via @Inject, @Config, @Logger
  • Control object lifecycle via @Init, @Destroy

Caching & Session Storage

  • A common SimpleStore interface for TTL-based record storage, with MemoryStore (in-process) and RedisStore (Redis-backed, for sharing state across multiple app instances) implementations
  • Bulk (loadMany/saveMany) and named record-set (loadSet/saveSet) operations

Auth & Validation

  • JWTUtils — create, sign, verify and decode JSON Web Tokens, with optional password- or key-based payload encryption and compression
  • UserUtils — role, scope and organization-membership checks against authenticated user objects
  • ValidationUtils — a library of common field validators (email, URL, phone, UUID, semantic version, IP address, date, JSON, etc.) for use with the @Validator decorator

Messaging & Alerting

  • MessagingUtils — send templated (Handlebars) messages over e-mail, SMS or Slack from a shared template store
  • AlertUtils — send priority-based (P1–P5) incident alerts, with file attachments, to an external alerting/on-call service
  • NotificationUtils — publish real-time push notifications over Redis pub/sub, to a single user's channel or broadcast to every subscriber

Observability

  • Logger — a pre-configured, cached Winston logger that automatically tags log lines with the calling class/method name
  • TelemetryUtils — record application telemetry events and forward them to a configured collection service

General Utilities

  • StringUtils — template variable substitution and other string helpers
  • ObjectUtils — deep property get/set, scoped-property scrubbing, and schema-driven object validation
  • FileUtils — file/directory existence checks, copying and reads, with optional root-directory containment
  • OASUtils — load, cache and query OpenAPI (Swagger) specifications from a local file or URL (JSON or YAML), with opt-in path/host allow-listing
  • CacheUtils — shared helpers for bounded, eviction-on-insert Map-based caches
  • ApiError — an HTTP-aware Error subclass carrying an error code, HTTP status, and templated messages

Concurrency

  • ThreadPool — manage a pool of Node.js worker threads (auto-sized to the number of CPUs by default), with typed message passing and automatic restart on worker crash

Getting Started

Yarn

yarn add @rapidrest/core

NPM

npm i @rapidrest/core

Requirements

This package targets Node.js >=24.0.0 and is published as an ESM-only package.

The following peer dependencies are required:

| Peer dependency | Required for | | ------------------- | ------------------------------------ | | axios | Always | | redis | Caching & sessions via RedisStore | | reflect-metadata | Always | | winston | Always | | winston-transport | Always |

MessagingUtils dynamically imports the following packages at runtime, so they are not declared as dependencies — only install the ones for the channel(s) you actually use:

| Package | Required for | | ------------- | ------------------| | nodemailer | E-mail messaging | | twilio | SMS messaging | | @slack/bolt | Slack messaging |

License

MPL v2.0 — see LICENSE.