# App-Compose

> App Compose helps you build front-end applications from isolated tasks with explicit context and predictable execution order—without containers, decorators, or framework-specific APIs.

Start with Quick Start to learn the API. Use Guides for specific patterns, Reference for API details, and Coda for helper utilities. Follow the links relevant to your task.

## Learn

- [Quick Start](https://app-compose.dev/learn/quick-start.txt): Walk through App-Compose in five steps — create a Task, run it, pass data, disable it, handle failures.
- [Installation](https://app-compose.dev/learn/installation.txt): Install @app-compose/core with your package manager — or try it in the sandbox without installing.
- [Using TypeScript](https://app-compose.dev/learn/typescript.txt): Type your App-Compose code so TypeScript catches mismatches on supply and read.
- [Linting](https://app-compose.dev/learn/linting.txt): Enforce App-Compose conventions with the ESLint plugin.

## Guides

Each guide covers one App-Compose pattern. Listed from light to deep — read in order or jump in.

- [Optional values](https://app-compose.dev/guides/optional.txt): Mark a value as not required — wherever it flows between Tasks and Wires. The Task still runs when the source is missing.
- [Mapping values](https://app-compose.dev/guides/mapping.txt): Use shape to pick, derive, or merge values flowing between Tasks and Wires.
- [Managing Tags](https://app-compose.dev/guides/managing-tags.txt): Find the right Tag count — reuse where meanings overlap, separate where they don't.
- [Organizing your composition](https://app-compose.dev/guides/nesting.txt): Group related work into a nested compose block — name reusable parts and match the layout to the structure.
- [Fallback on critical failures](https://app-compose.dev/guides/fallback.txt): Run a backup path when a critical Task fails — by watching its status.
- [Testing your configuration](https://app-compose.dev/guides/guard.txt): Catch misconfiguration before runtime — duplicate Tasks, unwired Tags, unused Wires — with one assert in a test.
- [Ship only enabled features](https://app-compose.dev/guides/code-splitting.txt): Ship a feature's code only when it's enabled — load it dynamically inside run.fn.
- [Composing a React app](https://app-compose.dev/guides/react.txt): Compose a React app from independent features — each feature is its own Task.
- [Composing a Vue app](https://app-compose.dev/guides/vue.txt): Compose a Vue app from independent features — each feature is its own Task.
- [Debugging your composition](https://app-compose.dev/guides/debug.txt): Inspect Tasks, Tags, and Spots inside a compose chain — runtime state in the console.
- [Observing your composition](https://app-compose.dev/guides/observability.txt): Attach lifecycle hooks to a compose chain — onStart, onComplete, onTaskFail — for logs and metrics.
- [Inspecting your app](https://app-compose.dev/guides/graph.txt): Inspect your composition as JSON — log it, render it as a diagram, or snapshot it to catch unintended changes.

## Reference

Each page documents one piece of the public API. Use it to look something up, not to learn a pattern.

- [compose](https://app-compose.dev/reference/compose.txt): Creates a Composer — chains Tasks and Wires through .step(), then runs, inspects, or guards them.
- [createTask](https://app-compose.dev/reference/create-task.txt): Creates a Task — one unit of work with a name, a run function, and optional inputs.
- [createWire](https://app-compose.dev/reference/create-wire.txt): Builds a Wire — supplies a value to a Tag so Tasks reading the Tag can use it.
- [is](https://app-compose.dev/reference/is.txt): Runtime checks for App-Compose units.
- [literal](https://app-compose.dev/reference/literal.txt): Wraps a known value (primitive or object) so a Wire or Task can use it as a source.
- [optional](https://app-compose.dev/reference/optional.txt): Marks a value as not required — works inside run.context, enabled.context, createWire.from, and shape.
- [shape](https://app-compose.dev/reference/shape.txt): Transforms one or several source values into a new one — inside run.context, enabled.context, or a Wire.
- [tag](https://app-compose.dev/reference/tag.txt): Creates a Tag — a typed, named placeholder that a Wire supplies and a Task reads.
- [Exported Types](https://app-compose.dev/reference/types.txt): Public TypeScript types exported from App-Compose.

## Coda

Coda is App-Compose's companion package. It wraps recurring Task and Wire patterns as named helpers, so you call one instead of rebuilding the same wiring.

- [Installation](https://app-compose.dev/coda/installation.txt): Install @app-compose/coda with your package manager.
- [debug](https://app-compose.dev/coda/debug.txt): A runtime inspection Task — logs Tasks, Tags, and Spots to the console.
- [every](https://app-compose.dev/coda/every.txt): All-of quantifier for Tasks, Tags, and Spots — by predicate or by Task status.
- [not](https://app-compose.dev/coda/not.txt): Inverts a Spot into its boolean opposite.
- [some](https://app-compose.dev/coda/some.txt): Any-of quantifier for Tasks, Tags, and Spots — by predicate or by Task status.
- [when](https://app-compose.dev/coda/when.txt): Bundles `every`, `some`, and `not` into a `{ context, fn: Boolean }` accepted by task.enabled or task.run.

## Additional

- [Community](https://app-compose.dev/community.txt): Channels for users and contributors of app-compose.
- [Privacy](https://app-compose.dev/privacy.txt): What data this site processes, and what it does not collect.
