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

create-markdown-edge-for-agents

v0.2.1

Published

Scaffolder CLI for markdown-edge-for-agents

Readme

create-markdown-edge-for-agents

Scaffold a Markdown-for-Agents worker in one command.

CLI companion to @adhenawer-pkg/markdown-edge-for-agents. Detects your framework, generates a Cloudflare Worker with the right preset, installs dependencies, and points you to deploy.

CI npm License: MIT

Quick start

npx create-markdown-edge-for-agents init

That's it. The CLI will:

  1. Detect your framework (Astro, Hugo, or custom)
  2. Ask for your Cloudflare zone and route patterns
  3. Generate a worker at workers/markdown-agent/
  4. Install dependencies
  5. Print next steps for deployment

What it generates

workers/markdown-agent/
├── src/
│   └── index.ts          # 5-line worker using the lib
├── wrangler.toml          # Configured with your zone + routes
└── package.json           # With @adhenawer-pkg/markdown-edge-for-agents dep

Generated worker (Astro example)

import { createMarkdownWorker } from "@adhenawer-pkg/markdown-edge-for-agents";

export default createMarkdownWorker({
  preset: "astro",
});

Generated wrangler.toml

name = "markdown-agent"
main = "src/index.ts"
compatibility_date = "2026-04-15"

routes = [
  { pattern = "yoursite.com/posts/*", zone_name = "yoursite.com" }
]

Framework detection

The CLI auto-detects your framework:

| Signal | Detected as | |---|---| | astro in package.json dependencies | Astro | | hugo.toml, hugo.yaml, or config.toml present | Hugo | | Nothing matches | Custom (you configure selectors manually) |

Deploy

After scaffolding:

cd workers/markdown-agent
npx wrangler login      # First time only
npx wrangler deploy

Verify

# Should return markdown with YAML frontmatter
curl -H "Accept: text/markdown" https://yoursite.com/any-page.html

# Should return normal HTML (browser behavior)
curl https://yoursite.com/any-page.html

Aliases

Both commands work:

npx create-markdown-edge-for-agents init
npx mdea init

What this does NOT do

  • Does not modify your existing site or HTML
  • Does not require a Cloudflare Pro plan (works on Free tier)
  • Does not send any data to third parties
  • Does not run any background processes

The generated worker runs entirely on Cloudflare's edge network, intercepting requests only when AI agents ask for markdown.

Requirements

  • Node.js 22+
  • A Cloudflare account (Free tier works)
  • A site deployed behind Cloudflare DNS

Related

License

MIT