Devflare documentation
Build Cloudflare apps with less setup drag.
Start with one Worker. Add bindings, testing, previews, and framework support only when the project actually needs them.
Need the context first? See why Devflare exists
Starter commands
Three commands to get moving
You do not need the whole docs tree on day one. Get a Worker running, generate env types, and add the next capability when the code asks for it.
What Devflare gives you
The library should stand out before the setup lore does.
These are the capabilities most teams reach for first.
Config
Readable config
Author devflare.config.ts for humans and keep generated Wrangler output in the output lane.
Bindings
Typed bindings
Generate env.d.ts, work with KV, D1, R2, Durable Objects, and queues, and keep the runtime surface aligned.
Testing
Runtime-shaped tests
createTestContext() and cf.* let you test the worker you actually ship, not a hand-made imitation.
Deploys
Explicit previews
Separate preview and production on purpose, with names and cleanup paths that are easy to review.
Composition
Worker composition
Use service bindings and ref() when the app grows into more than one worker.
Frameworks
Frameworks when needed
Stay worker-first until the package genuinely needs Vite or SvelteKit around it.
Next: Do what matters
Pick the job in front of you, open the shortest working path, then follow the deeper reference only when you need it.
| I need to... | Open first | Then open |
|---|---|---|
| Create a Worker | Your first worker | Your first unit test |
| Add a route tree | Your first route tree | HTTP routing |
| Add a binding | First bindings | KV binding |
| Write tests | Your first unit test | Test helper reference |
| Deploy safely | Deploy and preview | Deploy command recipes |
| Understand a boundary | Feature index | Binding testing guides |
A route-tree path you can copy after the first worker runs
One config, one request-wide handler, one route leaf, and one test that exercises the route through the worker.