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

arbiter-sdk

v1.1.1

Published

Official Node.js SDK for the Arbiter traffic protection service

Readme

Arbiter Node.js SDK

Official Node.js SDK for Arbiter, a distributed API protection platform.

Arbiter helps your backend decide:

Should this request be allowed right now?

It provides rate limiting, abuse detection, and traffic control using a cloud-managed configuration + lightweight SDK.

What is Arbiter?

Arbiter is not just a rate limiter.

It is a centralized decision system where:

  • Rules are managed in the dashboard (cloud)
  • SDK enforces those rules in your backend
  • Decisions are made using a distributed system (Redis-backed)

How it works

  1. You create a project in the Arbiter dashboard
  2. Define rules (rate limits, policies, abuse detection)
  3. Generate an API key
  4. SDK uses this API key to fetch configuration
  5. Each request is validated → allow or block

Installation

npm install arbiter-sdk

Quick Start

import { createArbiterClient } from "arbiter-sdk";

const arbiter = createArbiterClient({
  apiKey: process.env.ARBITER_API_KEY
});

await arbiter.init();

app.post("/login", async (req, res) => {
  const decision = await arbiter.protect({
    key: req.ip,
    rule: "login"
  });

  if (!decision.allowed) {
    return res.status(429).json({
      message: "Too many requests",
      decision
    });
  }

  res.json({ message: "Login allowed" });
});

Core Concept

Arbiter follows a request → decision model.

You provide:

  • key → identifies the client (IP, user ID, token)
  • rule → name of the rule defined in the dashboard

Arbiter returns:

  • whether the request is allowed
  • metadata about the decision

Cloud + Override Model

Arbiter uses a hybrid approach:

  • Cloud config (default) → managed in dashboard
  • Local overrides (optional) → defined in SDK

Example:

const arbiter = createArbiterClient({
  apiKey: process.env.ARBITER_API_KEY,

  rules: {
    login: {
      limit: 10 // overrides cloud config
    }
  }
});

This allows:

  • Central control without redeploys
  • Flexibility when needed

Request Protection

await arbiter.protect({
  key: req.ip,
  rule: "login"
});

Decision Response

{
  "allowed": true,
  "remaining": 2,
  "resetIn": 8,
  "reason": null
}

Where Arbiter Fits

  • Login / authentication endpoints
  • Public APIs
  • Payment routes
  • Microservices

Why Arbiter?

Traditional rate limiters:

  • Hardcoded configuration
  • No centralized control
  • No analytics
  • Break in distributed systems

Arbiter:

  • Centralized dashboard control
  • Distributed decision system
  • Redis-backed consistency
  • SDK-based integration
  • Real-time analytics

Learn More

  • Documentation: https://docs-arbiter.vercel.app/
  • Rate limiting deep dive: https://dev.to/guna01/rate-limiting-concepts-algorithms-and-distributed-challenges-4gfl

License

MIT