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

relivio

v0.1.0

Published

Primitive TypeScript client for Relivio deploy registration, ingest, and exception capture.

Downloads

98

Readme

relivio

Primitive TypeScript client for Relivio deploy registration, ingest, and exception capture.

Status

  • current package scope: 0.1.0
  • supported runtime: Node.js 20+
  • current public surface:
    • deployments.register()
    • deployments.registerFromEnvironment()
    • ingest.send()
    • ingest.sendBatch()
    • captureException()
    • protection.getStatus()
    • verdicts.latest()
    • status()
  • automatic retry only for 429 RATE_LIMITED

Non-goals

  • full verdict consumer surface
  • feedback/history/list/search APIs
  • framework integration
  • guard or middleware implementation
  • broad auto instrumentation or metric collection
  • request object parsing

Installation

npm install relivio

For local development:

npm install

Quick Start

import { IngestLogInput, Relivio } from "relivio";

const relivio = new Relivio({ apiKey: "rk_..." });

const deployment = await relivio.deployments.register({ version: "1.2.3" });
console.log(deployment.id);

const result = await relivio.ingest.send({
  level: "ERROR",
  message: "checkout failed",
  apiPath: "/api/orders/finalize",
} satisfies IngestLogInput);
console.log(result.logEventId);

const verdict = await relivio.verdicts.latest();
if (verdict !== null) {
  console.log(verdict.verdict, verdict.decisionTier);
}

Capture exceptions explicitly from the boundary that already knows the safe path/context:

try {
  await runUsecase();
} catch (error) {
  await relivio.captureException(error, {
    service: "checkout-api",
    apiPath: "/api/orders/:id",
    traceId: "req_123",
  });
  throw error;
}

Read protection status explicitly from guard code:

const status = await relivio.protection.getStatus({
  service: "checkout-api",
  apiPath: "/api/orders/:id",
  method: "POST",
});

console.log(status.decisionTier, status.matchedApiPath);

Development

npm install
npm run build
npm test
npm run pack:check

Behavior Notes

  • API key is sent through X-API-Key
  • Idempotency-Key is supported for v0 writer endpoints
  • 429 responses are retried with Retry-After
  • 5xx responses are not retried
  • server can accept gzip payloads, but SDK v0 sends plain JSON only
  • SDK code never receives framework request objects
  • captureException() is an ingest helper, not a framework adapter
  • captureException() swallows Relivio delivery failures and records them in local status()
  • protection.getStatus() is a thin read over /api/v1/protection/status; it does not make block/allow decisions
  • verdicts.latest() is intentionally narrow and only exists to support service-side guard logic
  • verdicts.latest() returns null on 404 when a verdict is not available yet
  • status() reports SDK self-diagnostics locally; it does not send host metrics to Relivio

Security

Do not commit project API keys. Keep X-API-Key values in environment variables or local secret storage outside source control.

Contributing

Small, behavior-preserving changes are preferred. Keep transport, resource, type, and error responsibilities separate, and run the smallest effective test/build checks before sending a change.