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

@requestma/local-agent

v1.0.2

Published

Local agent for forwarding webhooks from Request.ma to localhost

Readme

@requestma/local-agent

Local agent for forwarding webhooks from Request.ma to your localhost development environment.

Quick Start

# Install and run in one command
npx @requestma/local-agent --endpoint YOUR_ENDPOINT_ID --token YOUR_TOKEN --port 3000

# With auto-discovery
npx @requestma/local-agent --endpoint YOUR_ENDPOINT_ID --token YOUR_TOKEN --discover

Installation

The agent can be run directly with npx (recommended) or installed globally:

# Direct execution (recommended)
npx @requestma/local-agent

# Global installation
npm install -g @requestma/local-agent
requestma-agent --help

Usage

Basic Usage

Forward webhooks to a specific port:

npx @requestma/local-agent \
  --endpoint q5jh94a321a6uw40tb153gdz \
  --token eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9... \
  --port 3000

Auto-Discovery

Automatically discover running services:

npx @requestma/local-agent \
  --endpoint q5jh94a321a6uw40tb153gdz \
  --token eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9... \
  --discover

Advanced Options

npx @requestma/local-agent \
  --endpoint q5jh94a321a6uw40tb153gdz \
  --token eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9... \
  --port 8000 \
  --host localhost \
  --server wss://api.request.ma \
  --verbose

Options

| Option | Short | Description | Default | |--------|-------|-------------|---------| | --endpoint <id> | -e | Request.ma endpoint ID | Required | | --token <token> | -t | Authentication token | Required | | --port <port> | -p | Target localhost port | Auto-detect | | --host <host> | -h | Target localhost host | localhost | | --server <url> | -s | Request.ma server URL | wss://api.request.ma | | --discover | -d | Auto-discover local services | false | | --verbose | -v | Verbose logging | false |

How It Works

  1. Authentication: Agent connects to Request.ma using your endpoint token
  2. Service Discovery: Optionally scans common ports for running services
  3. WebSocket Connection: Maintains persistent connection for real-time forwarding
  4. Request Forwarding: Receives webhooks and forwards them to your local server
  5. Response Handling: Captures local server responses and sends them back

Supported Frameworks

The agent automatically detects common development frameworks:

  • React (ports 3000, 3001, 5173, 5174)
  • Next.js (ports 3000, 3001)
  • Express.js (ports 3000, 8000)
  • FastAPI (ports 8000, 8080)
  • Flask (ports 5000, 8000)
  • Django (ports 8000, 8080)
  • Rails (ports 3000, 4000)
  • Vite (ports 5173, 5174)

Security

  • JWT Authentication: Secure token-based authentication
  • Local Only: Agent only connects to localhost services
  • No Elevated Permissions: Runs with normal user permissions
  • Open Source: Full source code available for security auditing

Troubleshooting

Connection Issues

# Check if your local service is running
curl http://localhost:3000

# Test with verbose logging
npx @requestma/local-agent -e YOUR_ENDPOINT -t YOUR_TOKEN -p 3000 --verbose

Service Discovery Issues

# Force discovery with verbose output
npx @requestma/local-agent -e YOUR_ENDPOINT -t YOUR_TOKEN --discover --verbose

Token Issues

  • Tokens are endpoint-specific and expire after 24 hours
  • Get a new token from the Request.ma Actions panel
  • Ensure the endpoint ID matches your webhook endpoint

Examples

React Development Server

# Start your React app
npm start  # Usually runs on port 3000

# In another terminal, start the agent
npx @requestma/local-agent -e abc123 -t xyz789 -p 3000

FastAPI Development

# Start your FastAPI app
uvicorn main:app --reload --port 8000

# Start the agent
npx @requestma/local-agent -e abc123 -t xyz789 -p 8000

Multiple Services with Discovery

# Start multiple services on different ports
npm start &          # React on 3000
uvicorn main:app &    # FastAPI on 8000

# Discover and select service
npx @requestma/local-agent -e abc123 -t xyz789 --discover

License

MIT

Support

  • Documentation: https://request.ma/docs/local-agent
  • Issues: https://github.com/requestma/webhooks/issues
  • Discord: https://discord.gg/requestma