@webframp/cloudflare
v2026.04.22.1
Cloudflare management - zones, DNS records, WAF/firewall rules, Workers, and cache/CDN
Repository
https://github.com/webframp/swamp-extensions
Contents
Quality score
How well-documented and verifiable this extension is.
Grade A
- Has README or module doc2/2earned
- README has a code example1/1earned
- README is substantive1/1earned
- Most symbols documented1/1earned
- No slow types1/1earned
- Has description1/1earned
- At least one platform tag (or universal)1/1earned
- Two or more platform tags (or universal)1/1earned
- License declared1/1earned
- Verified public repository2/2earned
Install
$ swamp extension pull @webframp/cloudflare@webframp/cloudflare/zonev2026.03.28.1cloudflare/zone.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| apiToken | string | Cloudflare API token with Zone read/write permissions |
listList all zones in the account
| Argument | Type | Description |
|---|---|---|
| status? | enum | Filter by zone status |
getGet details for a specific zone
| Argument | Type | Description |
|---|---|---|
| zoneId | string | Zone ID |
get_settingsGet all settings for a zone
| Argument | Type | Description |
|---|---|---|
| zoneId | string | Zone ID |
update_settingUpdate a specific zone setting
| Argument | Type | Description |
|---|---|---|
| zoneId | string | Zone ID |
| setting | string | Setting name (e.g., 'ssl', 'cache_level', 'minify') |
| value | unknown | New value for the setting |
pausePause a zone (disable Cloudflare proxy)
| Argument | Type | Description |
|---|---|---|
| zoneId | string | Zone ID |
unpauseUnpause a zone (enable Cloudflare proxy)
| Argument | Type | Description |
|---|---|---|
| zoneId | string | Zone ID |
Resources
zones(infinite)— List of all zones in the account
zone(infinite)— Single zone details
settings(infinite)— Zone settings (caching, SSL, etc.)
@webframp/cloudflare/dnsv2026.03.28.1cloudflare/dns.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| apiToken | string | Cloudflare API token with DNS read/write permissions |
| zoneId | string | Zone ID to manage DNS records for |
listList all DNS records in the zone
| Argument | Type | Description |
|---|---|---|
| type? | enum | Filter by record type |
| name? | string | Filter by record name (exact match) |
getGet a specific DNS record
| Argument | Type | Description |
|---|---|---|
| recordId | string | DNS record ID |
createCreate a new DNS record
| Argument | Type | Description |
|---|---|---|
| type | enum | Record type |
| name | string | Record name (e.g., 'www' or '@' for root) |
| content | string | Record content (IP address, hostname, etc.) |
| ttl | number | TTL in seconds (1 = auto) |
| proxied | boolean | Enable Cloudflare proxy (orange cloud) |
| priority? | number | Priority (required for MX records) |
| comment? | string | Comment for the record |
updateUpdate an existing DNS record
| Argument | Type | Description |
|---|---|---|
| recordId | string | DNS record ID to update |
| type | enum | Record type |
| name | string | Record name |
| content | string | Record content |
| ttl | number | TTL in seconds (1 = auto) |
| proxied | boolean | Enable Cloudflare proxy |
| priority? | number | Priority (for MX records) |
| comment? | string | Comment for the record |
deleteDelete a DNS record
| Argument | Type | Description |
|---|---|---|
| recordId | string | DNS record ID to delete |
exportExport all DNS records in BIND format
Resources
records(infinite)— List of DNS records for the zone
record(infinite)— Single DNS record
Files
export(text/plain)— DNS records exported in BIND zone file format
@webframp/cloudflare/wafv2026.03.28.1cloudflare/waf.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| apiToken | string | Cloudflare API token with Firewall read/write permissions |
| zoneId | string | Zone ID to manage firewall rules for |
list_rulesList all firewall rules
create_ruleCreate a new firewall rule
| Argument | Type | Description |
|---|---|---|
| expression | string | Firewall expression (e.g., 'ip.src eq 1.2.3.4' or 'http.request.uri.path contains \ |
| action | enum | Action to take when rule matches |
| description? | string | Human-readable description |
| priority? | number | Rule priority (lower = higher priority) |
| paused | boolean | Create rule in paused state |
delete_ruleDelete a firewall rule
| Argument | Type | Description |
|---|---|---|
| ruleId | string | Firewall rule ID to delete |
toggle_rulePause or unpause a firewall rule
| Argument | Type | Description |
|---|---|---|
| ruleId | string | Firewall rule ID |
| paused | boolean | Set to true to pause, false to enable |
list_packagesList WAF packages (managed rulesets)
get_security_eventsGet recent security events (blocks, challenges, etc.)
| Argument | Type | Description |
|---|---|---|
| limit | number | Maximum number of events to fetch |
Resources
rules(infinite)— Firewall rules for the zone
rule(infinite)— Single firewall rule
packages(infinite)— WAF packages (managed rulesets)
events(7d)— Recent security events
@webframp/cloudflare/workerv2026.03.28.1cloudflare/worker.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| apiToken | string | Cloudflare API token with Workers read/write permissions |
| accountId | string | Cloudflare account ID |
list_scriptsList all Worker scripts in the account
get_scriptGet Worker script metadata and source code
| Argument | Type | Description |
|---|---|---|
| scriptName | string | Worker script name |
deployDeploy a Worker script
| Argument | Type | Description |
|---|---|---|
| scriptName | string | Worker script name |
| script | string | JavaScript/TypeScript source code |
| bindings? | array | Environment bindings |
delete_scriptDelete a Worker script
| Argument | Type | Description |
|---|---|---|
| scriptName | string | Worker script name to delete |
list_routesList Worker routes for a zone
| Argument | Type | Description |
|---|---|---|
| zoneId | string | Zone ID |
create_routeCreate a Worker route
| Argument | Type | Description |
|---|---|---|
| zoneId | string | Zone ID |
| pattern | string | Route pattern (e.g., 'example.com/*') |
| scriptName | string | Worker script name to execute |
delete_routeDelete a Worker route
| Argument | Type | Description |
|---|---|---|
| zoneId | string | Zone ID |
| routeId | string | Route ID to delete |
toggle_subdomainEnable or disable workers.dev subdomain for a Worker script
| Argument | Type | Description |
|---|---|---|
| scriptName | string | Worker script name |
| enabled | boolean | Enable or disable workers.dev subdomain |
Resources
scripts(infinite)— List of Worker scripts in the account
script(infinite)— Single Worker script metadata
routes(infinite)— Worker routes for a zone
deployment(infinite)— Worker deployment result
Files
source(application/javascript)— Worker script source code
@webframp/cloudflare/cachev2026.03.28.1cloudflare/cache.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| apiToken | string | Cloudflare API token with Cache Purge permissions |
| zoneId | string | Zone ID to manage cache for |
purge_allPurge all cached content for the zone
purge_urlsPurge specific URLs from cache
| Argument | Type | Description |
|---|---|---|
| urls | array | List of URLs to purge (max 30) |
purge_tagsPurge cache by Cache-Tag headers (Enterprise only)
| Argument | Type | Description |
|---|---|---|
| tags | array | List of Cache-Tag values to purge |
purge_prefixesPurge cache by URL prefixes (Enterprise only)
| Argument | Type | Description |
|---|---|---|
| prefixes | array | List of URL prefixes to purge |
get_settingsGet cache-related settings for the zone
set_cache_levelSet the cache level for the zone
| Argument | Type | Description |
|---|---|---|
| level | enum | Cache level: bypass (no cache), basic, simplified, or aggressive |
toggle_dev_modeToggle development mode (bypasses cache for 3 hours)
| Argument | Type | Description |
|---|---|---|
| enabled | boolean | Enable or disable development mode |
get_analyticsGet cache analytics (hit rate, bandwidth)
| Argument | Type | Description |
|---|---|---|
| since | string | Start time (minutes ago, e.g., '-1440' for last 24h) |
| until | string | End time (minutes ago, '0' for now) |
Resources
purge(7d)— Cache purge operation result
settings(infinite)— Cache-related zone settings
analytics(1d)— Cache analytics and hit rates
2026.04.13.114.7 KBApr 13, 2026
Cloudflare management - zones, DNS records, WAF/firewall rules, Workers, and cache/CDN
linux-x86_64linux-aarch64darwin-x86_64darwin-aarch64
2026.03.31.214.3 KBMar 31, 2026
Cloudflare management - zones, DNS records, WAF/firewall rules, Workers, and cache/CDN
linux-x86_64linux-aarch64darwin-x86_64darwin-aarch64
2026.03.31.114.3 KBMar 31, 2026
Cloudflare management - zones, DNS records, WAF/firewall rules, Workers, and cache/CDN
linux-x86_64linux-aarch64darwin-x86_64darwin-aarch64
2026.03.28.115.6 KBMar 30, 2026
Cloudflare management - zones, DNS records, WAF/firewall rules, Workers, and cache/CDN
linux-x86_64linux-aarch64darwin-x86_64darwin-aarch64