Skip to content

Introduction

What Flare is and how these docs are laid out.

Reviewed Updated 10 days ago · Flare 0.3

Flare is a TypeScript application framework for Node.js and Cloudflare Workers. You register an application graph on a FlareHost: HTTP and WebSocket routes, services and their dependencies, typed configuration, and the contracts that parse what comes in. host.build() validates the whole graph and compiles it once, and the same graph runs on either runtime.

SectionCovers
InstallPackages, runtimes, project layout, flare.json
TutorialA first app, built out into a CRUD service with contracts, DI, and a test
FundamentalsThe arc model, build(), host, DI, config, logging, errors
HTTPRoutes, middleware, contracts, request state, CORS, errors
WebSocketsWebSocket routes, contracts, channels, connection state
RuntimesNode, Cloudflare Workers, Durable Objects, Bun/Deno status
Schema@flare-ts/lib primitives, DTOs, serialization
Testingapp.test(), service replacement, controller unit tests
API ReferenceGenerated TypeDoc for @flare-ts/core and @flare-ts/lib

New to Flare: Install, then your first app. Deciding whether to use it: Why Flare states the design decision and its trade. Migrating from 0.2: Release notes carries the breaking changes and rename tables.

This site documents Flare 0.3.

Every page ships provenance metadata and a raw Markdown form. Robots documents the machine surfaces: llms.txt, per-page .md URLs, and how grounding is recorded.