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

@agentweb-dev/middleware

v0.1.1

Published

Agent Middleware — the Cloudflare for the agent web. Makes any website agent-consumable via MCP proxy.

Readme

@agentweb/middleware

The Cloudflare for the agent web.

A managed proxy that sits in front of any website and makes it agent-consumable via MCP. No code changes required on your origin site.

Quick Start

# Point at any website
ORIGIN_URL=https://example.com npx agentweb-middleware

# With your agent.json for brand voice + policies
ORIGIN_URL=https://example.com AGENT_JSON=./agent.json npx agentweb-middleware

Your site is now agent-ready at http://localhost:3000/mcp.

What It Does

Agents connect to the middleware MCP server and get tools to interact with your site:

| Tool | What It Does | |------|-------------| | browse_site | Read any page — content extracted, cleaned, and structured | | search_site | Find content across your site | | get_structured_data | Extract Schema.org JSON-LD (products, articles, events) | | get_policies | Return policies, shipping, returns from your agent.json | | get_brand_info | Brand voice, capabilities, endpoints | | request_human_help | Escalate to human support with context handoff | | get_analytics | Traffic metrics, top queries, cache stats (admin) |

How It Works

Agent (Claude, GPT, Siri...)
    │
    ▼
AgentWeb Middleware (MCP Server)
    │  ├─ Rate limiting
    │  ├─ Content caching
    │  ├─ Brand voice enforcement
    │  ├─ Escalation detection
    │  └─ Analytics tracking
    ▼
Your existing website (unchanged)
  1. Agent sends MCP tool call to the middleware
  2. Middleware fetches from your origin, extracts + structures content
  3. Brand voice rules are applied (prohibited terms filtered)
  4. Structured response returned to agent
  5. Everything is cached, rate-limited, and tracked

Configuration

| Env Variable | Default | Description | |---|---|---| | ORIGIN_URL | (required) | Your website URL | | AGENT_JSON | (optional) | Path to your agent.json file | | PORT | 3000 | Server port | | CACHE_TTL | 300 | Cache lifetime in seconds | | RATE_LIMIT | 100 | Requests per agent per minute |

Endpoints

| Path | Method | Description | |------|--------|-------------| | /mcp | POST | MCP server (Streamable HTTP) | | /health | GET | Health check + cache stats | | /agent.json | GET | Serves agent.json (or auto-generates one) | | /analytics | GET | Traffic analytics JSON |

With agent.json

When you provide an agent.json, the middleware uses it to:

  • Enforce brand voice — filters prohibited terms from all responses
  • Serve policies — returns, shipping, data handling available via get_policies
  • Route escalations — detects triggers and provides correct support channels
  • Describe capabilities — agents know what they can do before asking

Without an agent.json, the middleware still works — it just won't have brand voice rules or structured policies. Generate one:

npx agentweb init --industry retail --output agent.json

Pricing (Hosted Version)

| Tier | Agent Requests/mo | Features | Price | |------|-------------------|----------|-------| | Free | 10,000 | Basic proxy, caching | $0 | | Starter | 100,000 | + Analytics, brand voice | $99/mo | | Business | 1,000,000 | + A/B testing, custom rules | $499/mo | | Enterprise | Unlimited | + SLA, support, SSO | Custom |

Self-hosted is free and open source forever.

License

MIT (self-hosted) — Hosted version is commercial.