Devflare Docs
Under the hood Bindings

How Devflare wires Flagship from config to runtime

Flagship feature-flag bindings for reading feature flags from Workers, with deterministic pure mocks that return configured flag values.

Flagship compiles from to Wrangler , with local/test behavior called out explicitly.

Use this page when you need emitted config, preview behavior, or Cloudflare-specific limits. The overview and example pages stay focused on everyday app code.

Normalization
Devflare normalizes before emitting Wrangler
Compile target
Wrangler
Preview note
Cloudflare owns real targeting-rule evaluation, flag management, and remote flag state; the local mock returns configured values and otherwise the default.

How authored config becomes Wrangler config

The authored config stays camelCase and project-oriented. The compiler translates that into the Wrangler keys Cloudflare expects.

The emitted output is shown here so the usage pages do not have to explain compiler details.

Flagship config and emitted Wrangler output

Use this when you need to check how the Devflare config becomes Wrangler-compatible config.

What local runtime support covers

  • Miniflare's Flagship plugin returns each call's default value locally and ignores the flag key (it does not evaluate flag rules), while Devflare's deterministic pure mock (createMockFlagshipBinding({ flags })) returns configured flag values, falling back to the default
  • The default docs recipe uses or .
  • Pure unit tests can use / when the test only needs deterministic application behavior.

Compile, preview, and cleanup behavior

  • Devflare emits Wrangler from the native config surface.
  • Preview and deployment lifecycle stay feature-specific; do not assume all Cloudflare products can be created, cloned, or cleaned up the same way.
  • Cloudflare owns real targeting-rule evaluation, flag management, and remote flag state; the local mock returns configured values and otherwise the default.

Cloudflare docs vs the Devflare layer

Cloudflare Workers bindings docs is the platform reference. Use this internals page when you need to compare Cloudflare's product docs with Devflare config, generated env types, local support, and preview behavior for .

QuestionCloudflare docsThis Devflare page
Primary focusPlatform reference for the underlying binding contract on Cloudflare Workers.How to author , what the runtime surface looks like, and how Flagship fits a Devflare project.
Testing and runtime lensCloudflare’s docs focus on the raw binding API, product semantics, and platform limits for the binding itself.Miniflare's Flagship plugin returns each call's default value locally and ignores the flag key (it does not evaluate flag rules), while Devflare's deterministic pure mock (createMockFlagshipBinding({ flags })) returns configured flag values, falling back to the default. Use the Devflare guidance when you need the honest local harness or the right remote gate instead of only the product API shape.
When to open itWhen you need the platform contract, limits, APIs, or account-level product details.When you are wiring, testing, previewing, or reviewing the binding inside a Devflare app.

Previous

Flagship

Add the Flagship config, call from worker code, and start with the local test path Devflare supports.

Next

Testing Flagship

Test Flagship by choosing the local harness that matches the product boundary instead of reaching for Cloudflare by default.