{
  "slug": "wrangler-dev-supports-local-cloudflare-stream-bindings-ef5d6007c159",
  "title": "wrangler dev supports local Cloudflare Stream bindings",
  "tools": [
    "wrangler"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-03-27T14:44:47.000Z",
  "announced_at": "2026-03-27T14:44:47.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When developing or testing a Worker that uses Stream, bind Stream in Wrangler and run `npx wrangler dev`. Use the listed local operations; avoid direct uploads and `File`-based caption uploads or watermark generation, which throw locally.",
    "examples": [
      "{\"stream\":{\"binding\":\"STREAM\"}}",
      "npx wrangler dev"
    ],
    "gotchas": [
      "Version: 4.78.0",
      "stream.binding (required): Binding name exposed to Worker code, for example `env.STREAM`.",
      "streamPersist: Set to `false` in Miniflare options to disable Stream data persistence across restarts; persistence is on by default.",
      "Prerequisite: Use Wrangler 4.78.0 or later for the local Stream binding support introduced in 4.78.0.",
      "Prerequisite: Add the Stream binding to the Worker’s Wrangler configuration.",
      "Supported local operations: `upload()` (upload video via URL); `video(id).details()`, `.update()`, `.delete()`, `.generateToken()`; `videos.list()`; `captions.generate()`, `.list()`, `.delete()`; `downloads.generate()`, `.get()`, `.delete()`; and `watermarks.generate()`, `.list()`, `.get()`, `.delete()`.",
      "`createDirectUpload()`, caption upload via `File`, and watermark generation via `File` are not supported in local mode and will throw.",
      "Data persists across restarts by default. Set `streamPersist: false` in Miniflare options to disable persistence."
    ]
  },
  "why_it_matters": "Develop or test Worker code locally that uses Cloudflare Stream bindings.",
  "sources": [
    "https://github.com/cloudflare/workers-sdk/releases/tag/wrangler%404.78.0",
    "https://developers.cloudflare.com/stream/manage-video-library/bindings/",
    "https://developers.cloudflare.com/changelog/post/2026-05-07-stream-workers-binding/"
  ],
  "rank": 0.98026,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v1+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "backfill-20261007",
    "verdict_id": "backfill-20261007:backfill-20261007-5bc9cc28bd9d36ab-4:gate",
    "evidence_hash": "d3dfbc5a37d2f8ac3d0afde1b3ead7eedb2dc6f0ec468f0023e651da3c9577e9"
  },
  "review": {
    "draft_hash": "ae406f9636344a528a17e2a9471b4357c7d2d579b8071e56b76858252ee3101f",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "backfill-20261007:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.98 >= 0.9; 2 needed) and Jev gave 0.77 (>= 0.6 needed)."
  }
}
