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

openwrangler

v0.0.9

Published

A library that implements wrangler's remote functionality, allowing you to use Cloudflare bindings via direct REST API calls instead of local simulation.

Readme

openwrangler

A library that implements wrangler's remote functionality, allowing you to use Cloudflare bindings via direct REST API calls instead of local simulation.

Overview

openwrangler provides the same binding interface as wrangler's getPlatformProxy, but instead of using local miniflare/workerd simulation, it directly calls the Cloudflare REST API. This enables you to work with remote Cloudflare resources during development.

Installation

npm install openwrangler
# or
pnpm add openwrangler

Direct Usage

You can use openwrangler directly in your Node.js applications:

import { getBindings } from 'openwrangler'

const bindings = getBindings({
  accountId: 'your-account-id',
  apiToken: 'your-api-token',
})

// Use bindings just like in Cloudflare Workers
await bindings.r2.put('image.png', buffer)
await bindings.kv.get('key')
await bindings.d1.exec('SELECT * FROM users')

Nitro Integration

openwrangler can be seamlessly integrated with Nitro applications using @bino0216/nitro-cloudflare-dev.

Setup

  1. Install the Nitro integration package:
npm install npm:@bino0216/nitro-cloudflare-dev
  1. Configure remote credentials in your Nitro config:
// nitro.config.ts
export default defineNitroConfig({
  cloudflareDev: {
    remoteCredentials: {
      accountId: 'your-account-id',
      apiToken: 'your-api-token',
    }
  }
})
  1. Mark bindings as remote in your wrangler.toml or wrangler.json:
# wrangler.toml
[[r2_buckets]]
binding = "MY_BUCKET"
bucket_name = "my-bucket"
remote = true

[[kv_namespaces]]
binding = "MY_KV"
id = "your-kv-id"
remote = true

[[d1_databases]]
binding = "MY_DB"
database_name = "my-database"
database_id = "your-db-id"
remote = true

Or in JSON format:

{
  "r2_buckets": [
    {
      "binding": "MY_BUCKET",
      "bucket_name": "my-bucket",
      "remote": true
    }
  ],
  "kv_namespaces": [
    {
      "binding": "MY_KV",
      "id": "your-kv-id",
      "remote": true
    }
  ],
  "d1_databases": [
    {
      "binding": "MY_DB",
      "database_name": "my-database",
      "database_id": "your-db-id",
      "remote": true
    }
  ]
}

When bindings have remote = true, Nitro will use openwrangler's implementation to connect to your actual Cloudflare resources instead of local simulation.

Supported Bindings

  • R2 (R2Bucket) - Object storage
  • KV (KVNamespace) - Key-value storage
  • D1 (D1Database) - SQL database

All types are imported from @cloudflare/workers-types to ensure compatibility with Cloudflare Workers.

Development

pnpm install
pnpm dev      # Run playground
pnpm build    # Build package

Project Structure

  • src/index.ts - Package entry point, getBindings() function
  • playground/ - Nuxt/Nitro v3 based test environment
  • build.config.ts - unbuild configuration

Use Cases

  • Development against production data: Work with real Cloudflare resources during development
  • Testing: Test against actual Cloudflare services without deployment
  • CI/CD: Run integration tests against remote Cloudflare resources
  • Hybrid environments: Mix local and remote bindings based on your needs

License

MIT