Cloudflare
@webframp/cloudflarev2026.05.20.1
01README
Cloudflare management - zones, DNS records, WAF/firewall rules, Workers, and cache/CDN
02Models
@webframp/cloudflare/zonev2026.03.28.1cloudflare/zone.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| apiToken | string | Cloudflare API token with Zone read/write permissions |
fn list(status?: enum)
List all zones in the account
| Argument | Type | Description |
|---|---|---|
| status? | enum | Filter by zone status |
fn get(zoneId: string)
Get details for a specific zone
| Argument | Type | Description |
|---|---|---|
| zoneId | string | Zone ID |
fn get_settings(zoneId: string)
Get all settings for a zone
| Argument | Type | Description |
|---|---|---|
| zoneId | string | Zone ID |
fn update_setting(zoneId: string, setting: string, value: unknown)
Update 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 |
fn pause(zoneId: string)
Pause a zone (disable Cloudflare proxy)
| Argument | Type | Description |
|---|---|---|
| zoneId | string | Zone ID |
fn unpause(zoneId: string)
Unpause 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 |
fn list(type?: enum, name?: string)
List all DNS records in the zone
| Argument | Type | Description |
|---|---|---|
| type? | enum | Filter by record type |
| name? | string | Filter by record name (exact match) |
fn get(recordId: string)
Get a specific DNS record
| Argument | Type | Description |
|---|---|---|
| recordId | string | DNS record ID |
fn create(type: enum, name: string, content: string, ttl: number, proxied: boolean, priority?: number, comment?: string)
Create 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 |
fn update(recordId: string, type: enum, name: string, content: string, ttl: number, proxied: boolean, priority?: number, comment?: string)
Update 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 |
fn delete(recordId: string)
Delete a DNS record
| Argument | Type | Description |
|---|---|---|
| recordId | string | DNS record ID to delete |
fn export()
Export 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 |
fn list_rules()
List all firewall rules
fn create_rule(expression: string, action: enum, description?: string, priority?: number, paused: boolean)
Create 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 |
fn delete_rule(ruleId: string)
Delete a firewall rule
| Argument | Type | Description |
|---|---|---|
| ruleId | string | Firewall rule ID to delete |
fn toggle_rule(ruleId: string, paused: boolean)
Pause or unpause a firewall rule
| Argument | Type | Description |
|---|---|---|
| ruleId | string | Firewall rule ID |
| paused | boolean | Set to true to pause, false to enable |
fn list_packages()
List WAF packages (managed rulesets)
fn get_security_events(limit: number)
Get 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 |
fn list_scripts()
List all Worker scripts in the account
fn get_script(scriptName: string)
Get Worker script metadata and source code
| Argument | Type | Description |
|---|---|---|
| scriptName | string | Worker script name |
fn deploy(scriptName: string, script: string, bindings?: array)
Deploy a Worker script
| Argument | Type | Description |
|---|---|---|
| scriptName | string | Worker script name |
| script | string | JavaScript/TypeScript source code |
| bindings? | array | Environment bindings |
fn delete_script(scriptName: string)
Delete a Worker script
| Argument | Type | Description |
|---|---|---|
| scriptName | string | Worker script name to delete |
fn list_routes(zoneId: string)
List Worker routes for a zone
| Argument | Type | Description |
|---|---|---|
| zoneId | string | Zone ID |
fn create_route(zoneId: string, pattern: string, scriptName: string)
Create 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 |
fn delete_route(zoneId: string, routeId: string)
Delete a Worker route
| Argument | Type | Description |
|---|---|---|
| zoneId | string | Zone ID |
| routeId | string | Route ID to delete |
fn toggle_subdomain(scriptName: string, enabled: boolean)
Enable 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 |
fn purge_all()
Purge all cached content for the zone
fn purge_urls(urls: array)
Purge specific URLs from cache
| Argument | Type | Description |
|---|---|---|
| urls | array | List of URLs to purge (max 30) |
fn purge_tags(tags: array)
Purge cache by Cache-Tag headers (Enterprise only)
| Argument | Type | Description |
|---|---|---|
| tags | array | List of Cache-Tag values to purge |
fn purge_prefixes(prefixes: array)
Purge cache by URL prefixes (Enterprise only)
| Argument | Type | Description |
|---|---|---|
| prefixes | array | List of URL prefixes to purge |
fn get_settings()
Get cache-related settings for the zone
fn set_cache_level(level: enum)
Set the cache level for the zone
| Argument | Type | Description |
|---|---|---|
| level | enum | Cache level: bypass (no cache), basic, simplified, or aggressive |
fn toggle_dev_mode(enabled: boolean)
Toggle development mode (bypasses cache for 3 hours)
| Argument | Type | Description |
|---|---|---|
| enabled | boolean | Enable or disable development mode |
fn get_analytics(since: string, until: string)
Get 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
03Previous Versions
2026.04.22.1Apr 22, 2026
2026.04.13.1Apr 13, 2026
2026.03.31.2Mar 31, 2026
2026.03.31.1Mar 31, 2026
2026.03.28.1Mar 30, 2026
04Stats
A
100 / 100
Downloads
26
Archive size
26.8 KB
- 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
- Platform support declared (or universal)2/2earned
- License declared1/1earned
- Verified public repository2/2earned
05Platforms