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

@hulumi/cloudflare-baseline

v1.5.0

Published

Hardened Pulumi baseline components for Cloudflare edge posture.

Readme

@hulumi/cloudflare-baseline

Hardened Pulumi components for Cloudflare edge posture.

M1 introduces two primitives:

  • ZoneFoundation enables DNSSEC and secure zone TLS settings for an existing Cloudflare zone.
  • PublicHostname creates public DNS records with proxied application traffic as the default and an explicit acknowledgement path for DNS-only public application records.

M2 adds edge-defense primitives:

  • EdgeWafBaseline creates managed WAF rulesets where the declared Cloudflare plan supports them, bounded custom WAF rules, and route rate-limit helpers.
  • BotProtectionBaseline maps simple, balanced, and granular intent to plan-aware bot controls and records unsupported or degraded controls in outputs.
  • ProtectedAdminHostname creates Cloudflare Access application and allow-policy resources for admin, internal, and preview hostnames.
import { PublicHostname, ZoneFoundation } from "@hulumi/cloudflare-baseline";

const zone = new ZoneFoundation("app-zone", {
  tier: "startup-hardened",
  zoneId: "zone_123",
});

new PublicHostname("app", {
  tier: "startup-hardened",
  zoneId: zone.zoneId,
  hostname: "app.example.com",
  recordType: "CNAME",
  target: "origin.example.net",
  purpose: "public-app",
});

DNS-only public application records require acknowledgeDnsOnlyExposure: true and a non-empty dnsOnlyJustification. Use that path only for a bounded migration or when another origin-control layer is already in place.

If a Cloudflare plan/account rejects DNS record tags, set emitDnsRecordTags: false and keep other ownership evidence in place.

import {
  BotProtectionBaseline,
  EdgeWafBaseline,
  ProtectedAdminHostname,
  loginRateLimitRule,
} from "@hulumi/cloudflare-baseline";

new EdgeWafBaseline("edge", {
  tier: "startup-hardened",
  zoneId: "zone_123",
  plan: "business",
  enableManagedRulesets: true,
  rateLimitRules: [loginRateLimitRule({ pathPrefix: "/login" })],
});

new BotProtectionBaseline("bots", {
  tier: "startup-hardened",
  zoneId: "zone_123",
  plan: "enterprise",
  intent: "granular",
});

new ProtectedAdminHostname("admin", {
  tier: "startup-hardened",
  zoneId: "zone_123",
  accountId: "acct_123",
  hostname: "admin.example.com",
  allowedEmailDomains: ["example.com"],
});

Custom WAF rule expressions can be pulumi.Input<string> values, including Pulumi secret outputs, for private IP allowlists and other sensitive predicates.

Install And Import Paths

pnpm add @hulumi/cloudflare-baseline @pulumi/cloudflare @pulumi/pulumi
import {
  BotProtectionBaseline,
  EdgeWafBaseline,
  ProtectedAdminHostname,
  PublicHostname,
  ZoneFoundation,
} from "@hulumi/cloudflare-baseline";

Plan Caveats

  • Managed WAF rulesets require Cloudflare Business or Enterprise plan support.
  • Granular bot scoring is Enterprise-only; lower plans report unsupported or degraded controls rather than silently claiming coverage.
  • DNSSEC may require registrar DS-record handoff outside Pulumi.
  • Real provider testing is opt-in: pnpm --filter @hulumi/cloudflare-baseline test:integration skips unless HULUMI_CLOUDFLARE_INTEGRATION=1, CLOUDFLARE_API_TOKEN, HULUMI_CLOUDFLARE_ACCOUNT_ID, and HULUMI_CLOUDFLARE_ZONE_ID are set.

Verifying SLSA Attestations

Every published tarball ships with GitHub Artifact Attestations provenance from the reusable sign-and-publish.yml release lane. Verify before installing:

pnpm pack @hulumi/[email protected] --pack-destination .
gh attestation verify ./hulumi-cloudflare-baseline-1.5.0.tgz \
  --repo kerberosmansour/hulumi