On this page
Examples
Use these examples when you want a short, typechecked file that exercises one public integration path. The files export Effect programs or handlers. Your application runtime decides how to run them.
Example files
The validation, calculator-help, fact-definition, integration-test and raw HTTP error guides also copy their complete TypeScript fences from checked example files. Authored-content validation rejects a fence that differs from its source. Source links select an accepted immutable revision with the same checked file bytes; publication also checks the emitted guide fences and links.
- External input validation
- Typed calculator help
- Raw HTTP error envelope
- Fact definition
- Integration tests
Typecheck examples
Typecheck every checked example:
The browser HTTP example takes an explicit URL and uses the typed API client
with FetchHttpClient.layer. The application host owns Effect execution and
error handling; the example does not start a runtime.