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

@devondragon/emdash-plugin-404-viewer

v0.3.1

Published

EmDash admin plugin: viewer for the built-in 404 log table

Downloads

331

Readme

@devondragon/emdash-plugin-404-viewer

EmDash admin plugin that surfaces the built-in _emdash_404_log table as a viewer in the EmDash admin sidebar. See aggregate hit counts, browse the full log with search and pagination, and prune or clear entries.

Requirements

  • EmDash ^0.1.0
  • React ^19
  • An EmDash site backed by Cloudflare D1 (the plugin reads _emdash_404_log, which is populated by EmDash's redirect middleware)

Installation

pnpm add @devondragon/emdash-plugin-404-viewer

Usage

In your astro.config.mjs:

import { defineConfig } from "astro/config";
import emdash from "emdash";
import { notFoundViewerPlugin } from "@devondragon/emdash-plugin-404-viewer";

export default defineConfig({
  integrations: [
    emdash({
      plugins: [notFoundViewerPlugin()],
    }),
  ],
});

After running your dev server, the "404 Log" page appears in the EmDash admin sidebar.

Features

  • Summary view — paths grouped by hit count, with severity badges and "last seen" timestamps.
  • Full log view — paginated browsing with search-by-path.
  • Create redirect from a 404 — admins get a "→ Redirect" button on each row that opens a modal to post a new rule via EmDash's built-in redirects API. Supports exact paths or Astro-style patterns ([param], [...rest]), includes post-title autosuggest for the destination, and picks from 301/302/307/308.
  • Prune older than N days — bulk delete with a date threshold.
  • Clear all — wipes the entire log (confirms first).

Notes

  • The plugin reads from EmDash's built-in API (/_emdash/api/redirects/404s) — no separate database setup required.
  • Uses @cloudflare/kumo and @phosphor-icons/react (already required by EmDash) for UI primitives.
  • Creating a redirect requires the redirects:manage permission (admin role). Non-admin users will not see the "→ Redirect" buttons.
  • Destination autosuggest uses EmDash's search API and fills the field with /<slug>; you may need to edit to match your collection's route (e.g. /blog/<slug>).

License

MIT © Devon Hillard