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

novaserve-provider-cloudflare

v3.0.4

Published

NovaServe Cloudflare Provider — Deploy to Cloudflare Workers, R2, and D1

Readme

novaserve-provider-cloudflare

Production Ready Cloudflare Workers, R2, D1, and KV deployment provider for NovaServe.

Target adapter compiling Nova Intermediate Representation (Nova IR 1.0.0) graphs to Cloudflare edge infrastructure.

Status: Production Ready 🚀

This provider is fully production-grade and supports:

  • Cloudflare Workers with integrated esbuild bundling (no Wrangler required)
  • R2 Object Storage
  • D1 Databases with safe SQL migrations
  • KV Namespaces
  • Queues
  • Environment Isolation (Staging vs Production resource prefixing)
  • Idempotent Deployments
  • Secure Secrets Management (secrets are never stored or logged)
  • Real-time Log Streaming via Cloudflare Tail
  • Zero-downtime Rollbacks

Installation

npm install novaserve-provider-cloudflare
# or
pnpm add novaserve-provider-cloudflare

Authentication

Set the following environment variables. The API token must have Edit permissions for Workers Scripts, KV, R2, and D1, and Read for Account Settings.

export CLOUDFLARE_API_TOKEN="your-api-token"
export CLOUDFLARE_ACCOUNT_ID="your-account-id"

# Optional: Only required if using custom domains or specific routes
export CLOUDFLARE_ZONE_ID="your-zone-id"

Configuration

In your nova.config.ts or nova.config.yaml:

export default {
  name: "my-app",
  provider: "cloudflare",
  
  // Provider-specific config
  cloudflare: {
    worker: {
      compatibilityDate: "2024-09-01",
      compatibilityFlags: ["nodejs_compat"]
    },
    
    // Custom domain configuration (requires Zone ID)
    domains: [
      { domain: "api.my-app.com" }
    ],

    // Environment overrides
    environments: {
      production: {
        worker: {
          vars: { LOG_LEVEL: "info" }
        }
      },
      staging: {
        worker: {
          vars: { LOG_LEVEL: "debug" }
        }
      }
    }
  }
}

Supported Resources

| Nova Resource | Cloudflare Equivalent | Notes | |---------------|-----------------------|-------| | api / function / cron | Cloudflare Worker | Automatically bundled via esbuild. | | storage | R2 Bucket | | | database | D1 Database | Supports automatic migrations (.sql files). | | cache | KV Namespace | Redis eviction semantics are best-effort. | | queue | Cloudflare Queue | |

Database Migrations

For D1 databases, specify the migrations directory in your resource configuration:

// Define D1 Database
const db = new Database("my-db", {
  migrationsDir: "./migrations"
});

The provider will automatically track and apply pending .sql files in the specified directory. Note: Destructive migrations (DROP, TRUNCATE, DELETE) are blocked in production environments to prevent accidental data loss.

Documentation & Repository

License

Apache-2.0 © Md Shadab Azam Ansari & NovaServe Contributors