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

@rmdes/indiekit-endpoint-webmentions-proxy

v1.0.1

Published

Webmentions proxy endpoint for Indiekit. Proxies webmention.io API requests with server-side authentication.

Readme

@rmdes/indiekit-endpoint-webmentions-proxy

Webmentions proxy endpoint for Indiekit. Proxies webmention.io API requests with server-side authentication, enabling real-time webmention fetching from frontend applications without exposing API tokens.

Why This Plugin Exists

The official @indiekit/endpoint-webmention-io plugin provides an admin dashboard view at /webmentions, but:

  1. No public API - Only provides protected routes (requires authentication)
  2. No database storage - Fetches directly from webmention.io on each request, doesn't cache in MongoDB
  3. Renders HTML - Returns server-rendered views, not JSON for frontend consumption

For a static site (like Eleventy) that needs real-time webmentions on the frontend via JavaScript fetch, the options were:

| Approach | Drawback | |----------|----------| | Expose token to frontend | Security risk - token visible in browser | | Build-time data fetching | Not real-time, requires rebuild for updates | | Fork official plugin | Maintenance burden of tracking upstream | | Dedicated proxy plugin | Small additional dependency (this plugin) |

This plugin takes the dedicated proxy approach: a small, single-purpose endpoint (~70 lines) that keeps the token server-side while providing a public JSON API for frontends.

Installation

npm install @rmdes/indiekit-endpoint-webmentions-proxy

Configuration

// indiekit.config.js
export default {
  plugins: [
    "@rmdes/indiekit-endpoint-webmentions-proxy",
  ],

  "@rmdes/indiekit-endpoint-webmentions-proxy": {
    mountPath: "/webmentions-api",  // API mount path (default)
    token: process.env.WEBMENTION_IO_TOKEN,  // Your webmention.io token
    domain: "example.com",  // Domain to fetch webmentions for
    cacheTtl: 60,  // Cache TTL in seconds (default: 60)
  },
};

API Endpoints

GET /webmentions-api/api/mentions

Fetch webmentions from webmention.io.

Query Parameters:

  • page - Page number (default: 0)
  • per-page - Items per page (default: 50)

Response: JF2 format webmentions from webmention.io

License

MIT