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-wrangler-config

v0.2.9

Published

CLI tool for quickly setting up a wrangler.jsonc configuration file for Cloudflare Workers projects

Downloads

6

Readme

create-wrangler-config

CLI tool for quickly setting up a wrangler.jsonc configuration file for Cloudflare Workers projects.

Features

  • 🚀 Quick Setup: Interactive prompts guide you through configuration
  • 🧠 Smart Defaults: Auto-detects entry points and asset directories
  • 📦 Package Manager Integration: Automatically installs wrangler if needed
  • 🛡️ Safety First: Prevents overwriting existing configuration files
  • Validation: Uses Zod for robust input validation

Usage

npm create wrangler-config@latest [assets-directory]

Arguments

  • assets-directory (optional): Path to directory containing static assets to be served by the Worker

Examples

# Basic setup in current directory
npm create wrangler-config@latest

# Setup with assets directory
npm create wrangler-config@latest ./public

# Setup in specific directory
cd my-worker-project && npm create wrangler-config@latest

Interactive Configuration

The tool will guide you through:

  1. Worker Name: Validates and sanitizes the worker name
  2. Feature Selection: Choose between Entry Point and/or Static Assets
  3. Feature Configuration: Configure specific details for selected features

Feature Detection

The tool automatically detects and pre-selects features based on your project:

  • Entry Point: Auto-checked if src/index.ts or index.ts exists
  • Static Assets: Auto-checked if assets directory provided or common directories detected (public, static, assets, dist)

Generated Configuration

Entry Point Only

{
  "name": "my-worker",
  "main": "src/index.ts",
  "compatibility_date": "2025-06-03",
  "observability": {
    "enabled": true
  }
}

Static Assets Only

{
  "name": "my-worker",
  "compatibility_date": "2025-06-03",
  "assets": {
    "directory": "./public"
  }
}

Both Features

{
  "name": "my-worker",
  "main": "src/index.ts",
  "compatibility_date": "2025-06-03",
  "observability": {
    "enabled": true
  },
  "assets": {
    "directory": "./public",
    "binding": "ASSETS"
  }
}

Requirements

  • Node.js 20+
  • npm/yarn/pnpm/bun for package management

Development

# Install dependencies
pnpm install

# Run tests
pnpm test

# Build
pnpm build

# Type check
pnpm check:types

# Lint
pnpm check:lint

License

MIT