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/platform-patterns

v1.5.0

Published

Cross-provider Pulumi patterns for Cloudflare edge ingress, AWS deployment identity, secure Pulumi state backends, GitHub deployment repositories, build provenance, and runner governance.

Readme

@hulumi/platform-patterns

Cross-provider Pulumi patterns for Cloudflare edge ingress, AWS deployment identity, secure Pulumi state backends, GitHub deployment repositories, build provenance, and runner governance.

The package currently includes:

  • CloudflareOriginIngress
  • GitHubAwsOidcDeploymentRole
  • DeploymentRepositoryFoundation
  • BuildProvenanceFoundation
  • PulumiStateBackendFoundation
  • RunnerGovernanceFoundation
import * as pulumi from "@pulumi/pulumi";
import {
  BuildProvenanceFoundation,
  CloudflareOriginIngress,
  DeploymentRepositoryFoundation,
  GitHubAwsOidcDeploymentRole,
  PulumiStateBackendFoundation,
  RunnerGovernanceFoundation,
} from "@hulumi/platform-patterns";

new CloudflareOriginIngress("edge", {
  tier: "startup-hardened",
  mode: "tunnel",
  cloudflareAccountId: "acct_123",
  hostname: "app.example.com",
  service: "http://app.default.svc.cluster.local:8080",
  httpHostHeader: "app.default.svc.cluster.local",
  additionalRoutes: [
    {
      hostname: "api.example.com",
      service: "http://api.default.svc.cluster.local:8080",
      httpHostHeader: "api.default.svc.cluster.local",
      runtime: { kind: "eks", automation: "managed-contract" },
    },
  ],
  tunnelSecret: pulumi.secret("base64-tunnel-secret"),
  runtime: { kind: "eks", automation: "managed-contract" },
});

new GitHubAwsOidcDeploymentRole("deploy", {
  tier: "startup-hardened",
  owner: "kerberosmansour",
  repository: "hulumi",
  environment: "prod",
  reusableWorkflowRef: "kerberosmansour/hulumi/.github/workflows/deploy.yml@refs/heads/main",
  audience: "sts.amazonaws.com",
  roleName: "hulumi-prod-deploy",
  oidcProviderArn: "arn:aws:iam::123456789012:oidc-provider/token.actions.githubusercontent.com",
});

new DeploymentRepositoryFoundation("deploy-repo", {
  tier: "startup-hardened",
  owner: "kerberosmansour",
  name: "deployments",
});

new BuildProvenanceFoundation("provenance", {
  tier: "startup-hardened",
  artifactName: "dist/**",
});

new PulumiStateBackendFoundation("state", {
  tier: "startup-hardened",
  bucketName: "my-org-pulumi-state",
  kmsAliasName: "alias/hulumi-pulumi-state",
  enableLeaseTable: true,
});

new RunnerGovernanceFoundation("runners", {
  tier: "startup-hardened",
  owner: "kerberosmansour",
  repository: "hulumi",
  environments: [
    {
      name: "prod",
      requiredReviewers: true,
      protectedBranches: true,
    },
  ],
  privilegedWorkflows: [
    {
      workflowPath: ".github/workflows/deploy.yml",
      jobName: "deploy",
      environmentName: "prod",
      runsOn: ["ubuntu-latest"],
    },
  ],
});

Tunnel mode can front multiple public hostnames with one Cloudflare tunnel. Use httpHostHeader for service meshes or virtual-hosted origins that need the internal service FQDN at the origin.

Rotate historically exposed origin IPs after Cloudflare onboarding. Tunnel and allowlist+AOP patterns protect the active path, but old DNS and logs may have revealed previous origin addresses.

Install And Import Paths

pnpm add @hulumi/platform-patterns @hulumi/baseline @pulumi/aws @pulumi/cloudflare @pulumi/github @pulumi/pulumi
import {
  BuildProvenanceFoundation,
  CloudflareOriginIngress,
  DeploymentRepositoryFoundation,
  GitHubAwsOidcDeploymentRole,
  PulumiStateBackendFoundation,
  RunnerGovernanceFoundation,
} from "@hulumi/platform-patterns";

Plan Caveats

  • Cloudflare Tunnel works without requiring Enterprise-only bot features.
  • Allowlist+AOP needs valid origin certificate and Authenticated Origin Pull evidence.
  • GitHub protected environments require plan support in the target account/org.
  • Private repository provenance may have visibility caveats for downstream attestation discovery.
  • PulumiStateBackendFoundation emits backend posture resources and evidence; it does not migrate existing Pulumi stack state automatically.
  • RunnerGovernanceFoundation is a governance contract and validator descriptor; use the workflow linter and live validator to compare workflows and repo settings against it.
  • Real provider testing is opt-in: pnpm --filter @hulumi/platform-patterns test:integration skips unless the documented GitHub and AWS edge integration env vars 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-platform-patterns-1.5.0.tgz \
  --repo kerberosmansour/hulumi