new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

Cloudflare Workers · Runtime APIs · all subjects

r2

5 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

R2 is S3-compatible object storage

R2 is S3-compatible, zero egress-fee, globally distributed object storage. Workers can read from and write to R2 buckets through runtime APIs.

R2 runtime APIs available in Cloudflare Workers

Cloudflare Workers provides APIs to read from and write to R2 buckets. The API reference is available at /r2/api/workers/workers-api-reference/.

R2 has zero egress fees

R2 object storage has zero egress fees, meaning data transfers out of R2 are not charged.

R2 bucket binding in wrangler.toml

R2 buckets are declared in wrangler.toml using the r2_buckets array. Each binding requires a 'binding' property (the name used in code) and 'bucket_name' property (the actual bucket name). Example: { 'binding': 'MY_BUCKET', 'bucket_name': '<MY_BUCKET_NAME>' }

R2 bucket put method

R2 bucket bindings support the put method to upload objects. Example: await env.MY_BUCKET.put(key, request.body) where key is the object name and request.body is the data.

Give your agent this brain