Skip to content
Kitbay
Submit

k2

Apache-2.0Updated on Nov 10, 20263,337GitHub stars

A short Cloudflare skill for K2, Cloudflare's durable log service (K2 Streams) that separates the services producing events from those consuming them.

What the skill teaches

A short Cloudflare skill for K2, Cloudflare's durable log service (K2 Streams) that separates the services producing events from those consuming them. Rather than embedding setup details, it gives the agent a table of the K2 documentation pages to read for each task: creating a stream, the record and subscription model, inputs, authentication, CORS and retention, producing records from HTTP or a Worker, consuming them through subscriptions, and sizing limits. It tells the agent to check current limits and pricing before quoting them and points to the basin skill for SQL transforms into R2 tables.

Capabilities

  • Set up a K2 stream and its retention and inputs
  • Produce records to K2 from a Worker or over HTTP
  • Consume records through K2 subscriptions
  • Check K2 limits before sizing a stream