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/service-core

v2.0.0

Published

Provides all core functionality for RapidREST based backend services.

Readme

RapidREST: service-core

CI Coverage Status npm version

A library for implementing REST API services and backend applications using a decorator-driven, aspect oriented programming (AOP), architecture. It combines a high-performance HTTP engine, built on uWebSockets.js or Bun, with integrated database abstraction with native MongoDB and SQL (via (TypeORM)[https://typeorm.io/]) support, sessions, JWT-based authenticaiton, Roles Based Access Control, and more.

For complete documentation please visit RapidREST.dev.

Features

API & Routing

  • Decorator-driven, aspect-oriented routing — declare REST and WebSocket endpoints on plain classes, with parameter injection, before/after hooks, and request validation
  • Scaffolded CRUD — a full REST API (list, get, create, update, delete, filtering, pagination) for a data model from a single decorated class
  • Automatic OpenAPI 3 spec generation from the same route and model decorators
  • Runs on uWebSockets.js or native Bun

Data & Persistence

  • Unified data access layer over native MongoDB and SQL (via TypeORM)
  • Multi-connection ACID transactions via @Transactional decorator, with automatic fallback for backends that don't support them
  • Soft-delete and optimistic-locked versioning built into the base entity model, with restore support
  • Declarative Redis-backed caching

Auth & Security

  • Built-in JWT authentication, plus a pluggable middleware for other schemes (OAuth/OIDC, WebAuthn passkeys, TOTP, etc.)
  • Roles Based Access Control layered with per-record Access Control Lists for fine-grained, row-level authorization
  • Server-side session management (in-memory or Redis-backed)
  • Attempt-count rate limiting (RateLimiter) for brute-force/abuse defense, layered per-identifier and per-source-IP (reverse-proxy aware), Redis-backed and atomic across instances

Real-time & Background Work

  • Real-time push over WebSocket — channel-based pub/sub (Redis-backed) with per-subscription access control
  • Scheduled, cron-style background services with lifecycle management
  • An application-wide event system for decoupled, in-process pub/sub

Operations

  • Prometheus metrics out of the box
  • Ready-made admin routes: health/status, live log streaming over WebSocket, static asset serving

Installation

NPM

npm i @rapidrest/service-core

Yarn

yarn add @rapidrest/service-core

Requirements

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

It declares @rapidrest/core as required peer dependencies. The remaining peer dependencies are optional and only need to be installed if you use the corresponding feature:

| Peer dependency | Required for | | ------------------ | ----------------------------------------- | | @rapidrest/core | Always | | lodash-es | Always | | mongodb | MongoDB datasources | | openapi3-ts | Always | | prom-client | Always | | redis | Caching, sessions, WebSocket/Push support | | reflect-metadata | Always | | typeorm | SQL datasources | | uWebSockets.js | Node.js runtime | | winston | Always |

License

MPL v2.0 — see LICENSE.