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

@framers/agentos-ext-cloud-cloudflare-pages

v0.2.0

Published

Cloudflare Pages cloud extension — deploy Pages projects, manage DNS records, and deploy Workers via the Cloudflare API v4.

Readme

Cloudflare Pages and Workers

This pack gives agents tools to deploy Pages projects from Git repositories, list projects, manage DNS records, and upload Worker scripts. It uses the Cloudflare REST API with bearer-token authentication.

Installation

npm install @framers/agentos-ext-cloud-cloudflare-pages

Peer dependency: @framers/agentos with range >=0.10.40.

Usage

import { AgentOS } from '@framers/agentos';

const agentos = await AgentOS.create({
  extensionManifest: {
    packs: [
      {
        package: '@framers/agentos-ext-cloud-cloudflare-pages',
        options: {
          apiToken: process.env.CLOUDFLARE_API_TOKEN,
          accountId: process.env.CLOUDFLARE_ACCOUNT_ID,
        },
      },
    ],
  },
});

Configuration

| Option | Secret id | Environment variable | Required | Default | | --- | --- | --- | --- | --- | | apiToken | cloudflare.apiToken | CLOUDFLARE_API_TOKEN | Yes | Empty string | | accountId | cloudflare.accountId | CLOUDFLARE_ACCOUNT_ID | Yes | Empty string | | secrets | | | No | context.secrets, then {} |

Explicit options take precedence over secrets, then environment variables. options.secrets takes precedence over context.secrets.

Tools

| Tool | What it does | | --- | --- | | cfDeployPages | Deploys a Pages project from a Git repository, creating the project if needed. | | cfListProjects | Lists Pages projects with their repository, branch, subdomain, and latest deployment status. | | cfConfigureDns | Adds, removes, lists, or updates DNS records after looking up the zone by domain. | | cfCreateWorker | Deploys a Worker script with route patterns, a compatibility date, and environment bindings. |

cfDeployPages

| Parameter | Type | Required | Description | | --- | --- | --- | --- | | gitUrl | string | Yes | Git repository URL. | | projectName | string | No | Pages project name, auto-generated from the repository name if omitted. | | productionBranch | string | No | Production branch name, default main. | | buildCommand | string | No | Build command override. | | buildOutputDirectory | string | No | Build output directory. | | envVars | object | No | Environment variables to set on the project as key-value pairs. |

cfListProjects

| Parameter | Type | Required | Description | | --- | --- | --- | --- | | limit | number | No | Maximum projects to return, default 25, schema description maximum 100. |

cfConfigureDns

| Parameter | Type | Required | Description | | --- | --- | --- | --- | | domain | string | Yes | Root domain for the Cloudflare zone. | | action | string: add, remove, list, update | No | Action to perform, default list. | | recordType | string: A, AAAA, CNAME, TXT, MX | No | DNS record type, described as required for add and update. | | name | string | No | Record name or hostname. | | content | string | No | IP address, hostname, or text content. | | ttl | number | No | TTL in seconds, default 1, which selects automatic TTL. | | proxied | boolean | No | Whether to proxy through Cloudflare, default false. | | priority | number | No | Priority for MX records. | | comment | string | No | Optional comment for the record. | | recordId | string | No | Record ID, required for update and remove. |

cfCreateWorker

| Parameter | Type | Required | Description | | --- | --- | --- | --- | | name | string | Yes | Worker script name used as its identifier. | | script | string | Yes | JavaScript or TypeScript source in ES modules format with a default export. | | routes | string[] | No | Route patterns to bind the Worker to. | | compatibilityDate | string | No | Runtime compatibility date, default 2024-01-01. | | bindings | object | No | Environment variable bindings as key-value pairs. |

Notes

Activation fails if the API token or account ID is missing. It verifies the token through the Cloudflare token verification endpoint.

Pages deployment creates projects, sets production environment variables, and triggers a remote build without waiting for completion. The tool deploys to the project named by projectName, or to one named after the repository in gitUrl when it is omitted. The URL parser accepts GitHub, GitLab, and Bitbucket hosts, but project creation always sends the source type github. Build settings are sent when creating a project.

Project environment variables and Worker bindings use plain_text. Worker source is uploaded as worker.js with a JavaScript module content type; the service does not transpile TypeScript. Worker route setup errors are ignored.

DNS add, update, and remove actions change remote records. Adding requires recordType, name, and content; updating and removing require recordId. Updating allows partial fields, including omission of recordType. A domain with no matching zone returns an error.

Project listing forwards limit without enforcing the schema description's maximum. Project and DNS listing fetch a page without following pagination.

License

Apache-2.0