Cloudflare Zone
@zhann/cloudflare-zonev2026.11.08.1
01README
A Cloudflare zone kept as declared: find or create it, enforce HTTPS and TLS 1.2, and fail on records nobody declared.
02Behaviors
@zhann/cloudflare-zonev2026.11.05.1cloudflare_zone.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| accountId | string | Cloudflare account id |
| zoneName | string | The zone's domain name |
| workerRecordName | string | Name of the read-only record the Workers Custom Domain owns |
| apiToken | string | Cloudflare API token |
fn ensure()
Find the zone by name, creating it only if it's missing
fn apply_settings()
Turn on Always Use HTTPS and require TLS 1.2 or newer
fn audit(ensuredIds: array)
Fail if the zone holds a record other than this run's ensured ids
| Argument | Type | Description |
|---|---|---|
| ensuredIds | array | The record ids this run's ensure steps wrote, passed in through CEL |
Resources
zone(infinite)— The zone's id, nameservers and status
settings(infinite)— The settings this type enforces, and which ones it changed
audit(infinite)— How many records the audit checked, and which it skipped
03Stats
B
87 / 100
Downloads
49
Archive size
8.8 KB
- Has README or module doc2/2earned
- README has a code example1/1earned
- README is substantive1/1earned
- Most symbols documented1/1earned
- No slow types (deprecated)1/1earned
- Dependencies pass trust audit2/2earned
- Docs keep secrets in a vault1/1earned
- Has description1/1earned
- Platform support declared (or universal)2/2earned
- License2/2earned
- Verified public repository0/2missing
behavior-spelling1 accepted
- (extension) — its consumers run a swamp release that reads export const behavior
05Platforms
06Labels