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

cloudgrip-proxy

v1.0.0

Published

Hard-cap LLM budgets and stop runaway agent loops locally.

Readme

CloudGrip AI

Real-time API reverse proxy and automated circuit breaker for autonomous AI agents.

I built CloudGrip AI to solve a specific problem: runaway API bills caused by autonomous AI agents getting stuck in unexpected loops. CloudGrip AI sits directly between your application client and upstream LLM providers (such as Google Gemini or OpenAI). It tracks spend per request and immediately cuts off traffic at the proxy level once a predefined budget threshold is reached.

Features

  • Inline Proxying: Intercepts traffic with minimal overhead using Express and http-proxy-middleware.
  • Automated Killswitch: Evaluates accumulated cost on every request and responds with an HTTP 429 error to drop further upstream traffic when the budget cap is hit.
  • Server-Sent Events (SSE): Streams request logs, spend metrics, and circuit breaker status directly to the frontend in real time without polling.
  • Real-Time Dashboard: Minimalist dark UI built with Tailwind CSS to visualize live spend, traffic counts, and system status.

Tech Stack

  • Backend: Node.js, Express, http-proxy-middleware
  • Streaming: Server-Sent Events (SSE)
  • Frontend: HTML5, Tailwind CSS
  • Hosting: Render

How It Works

  1. Incoming requests hit the CloudGrip AI proxy endpoint.
  2. The middleware increments internal spend tracking and evaluates the total against the hard budget cap (set to $0.50 in the current demo).
  3. If spend is within limits, the proxy forwards the request to the target provider (generativelanguage.googleapis.com) and streams telemetry data to the dashboard.
  4. If the budget cap is exceeded, the proxy blocks the request, triggers a KILLSWITCH_TRIGGERED event over SSE, and returns a 429 status code.

Local Setup

1. Repository Setup and Installation

git clone [https://github.com/Aliyunazeer/cloudgrip-backend.git](https://github.com/Aliyunazeer/cloudgrip-backend.git)
cd cloudgrip-backend
npm install