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

@reaatech/agent-auth-proxy-server

v2.0.0

Published

Identity-aware proxy server for agent-to-service communication — Fastify-based

Readme

@reaatech/agent-auth-proxy-server

Identity-aware proxy server for agent-to-service communication. Ships as a Fastify plugin (exporting buildApp and start from app.ts) and a CLI binary (agent-auth-proxy-server).

Handles API key authentication, OAuth2 authorization code flow with PKCE, JWT issuance, scope enforcement, proxied credential injection, and audit logging. Pairs with @reaatech/agent-auth-proxy-core for shared schemas and @reaatech/agent-auth-proxy-client for the typed HTTP SDK.

Install

pnpm add @reaatech/agent-auth-proxy-server

Quick start

import { buildApp, start } from '@reaatech/agent-auth-proxy-server';

// Build the app without starting it (useful for testing)
const app = await buildApp();
await app.ready();

// Or start the full server with signal handling
await start();

Or from the CLI:

npx agent-auth-proxy-server

Requires a PostgreSQL database and configuration via environment variables (see .env.example).

What's exported

  • buildApp() — Creates and configures a Fastify instance with all routes, plugins, and error handling registered. Returns the app without listening.
  • start() — Calls buildApp(), registers signal handlers, starts listening, and begins background cleanup timers. Returns the listening app.

Capabilities

| Route | Description | | -------------------- | ------------------------------------------------ | | GET /health | Health check | | POST /auth/init | OAuth2 initiate (authorization URL + PKCE) | | POST /auth/callback| OAuth2 callback (code exchange, token storage) | | POST /proxy | Proxy a request with injected credentials | | POST /api/v1/... | Admin management (users, agents, grants, tokens) |

License

MIT