Skip to main content

Cloudflare Zone

@zhann/cloudflare-zonev2026.11.08.1· MIT· 13d agoBEHAVIORSACCEPTED WARNINGS
01README

A Cloudflare zone kept as declared: find or create it, enforce HTTPS and TLS 1.2, and fail on records nobody declared.

02Behaviors1
@zhann/cloudflare-zonev2026.11.05.1cloudflare_zone.ts

Global Arguments

ArgumentTypeDescription
accountIdstringCloudflare account id
zoneNamestringThe zone's domain name
workerRecordNamestringName of the read-only record the Workers Custom Domain owns
apiTokenstringCloudflare 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
ArgumentTypeDescription
ensuredIdsarrayThe 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

05Platforms
06Labels