Skip to main content
Compose is the offchain-to-onchain framework for high-stakes systems. It lets you write code that durably moves money, data, and events between every platform you use, whether it’s offchain or onchain. Write simple TypeScript code that runs in verifiable sandboxes, with auditable datastores and traceable functions. Monitor the input and output of every mutation in production, and use TEE-powered attestations to prove that your logic actually ran as intended.

Jump to quickstart

Run our install script to get all necessary dependencies and instantly generate your first Compose App.

What you’ll find here

Quickstart

Generate and deploy your first Compose app in under 5 minutes.

Task authoring

Tasks, triggers, and context APIs: fetch, collections, EVM chains, wallets, and contracts.

Build-a-X guides

End-to-end worked examples: oracles, VRF, prediction markets, compliance, and payouts.

Deploy & monitor

Environments, secrets, lifecycle, and tracing every execution.

Use cases

Custom price/data feeds

Tailored to your app’s logic and update cadence

Custom oracles

Trustless, verifiable and auditable data sources

Circuit breakers

Detect anomalies and pause or reroute activity

Prediction market resolution

Market data ingestion with application-specific rules

Identity and attestation flows

Verify offchain facts (KYC/AML, account status) and write onchain attestations

Scheduled tasks and keepers

Rebalance strategies, payouts, or maintenance windows

Cross-chain coordination

Read across chains and external APIs then write atomically, anywhere

Offchain notifications

Triggered notifications from onchain events with guaranteed delivery

How it works

Every Compose app can have multiple tasks, which can be triggered through on-chain events, cron-like scheduling, or an API. Tasks run in auditable sandboxes with immutable tracing on every function call that touches the external world. State is versioned and tracked, and execution persists through downtime.
  • Ultracompliance: Write your code in your local environment, and run exactly the same code in our cloud environment or in a Trusted Executable Environment (TEE).
  • Actually useful sandboxes: Task code runs in a sandbox, but can call safe functions that interact with the outside world.
  • Trace everything: Every step of every task is traced. From the CLI or UI, step through any task execution down to individual function calls.

Architecture

Compose executes tasks in auditable sandboxes that route all external communication through the Compose host, which handles durability and guaranteed execution. Every function call that mutates state (databases, blockchains) or accesses external resources is tracked, with inputs and outputs saved and viewable in the UI for tracing and debugging. The task sandbox is isolated and can run as a Trusted Executable Environment or as a normal container. The same code can be used in all environments. Code run in a TEE will also generate attestations, with guarantees that the code run is exactly the code you intend, with no side effects. Get started by setting up your first Compose application in under 5 minutes.