Overview
This section is for developers building applications on top of ADAPT. It assumes you have read What is ADAPT and Architecture — if not, those two pages take ten minutes and will save you an hour.
The section is organised the way most projects unfold:
- Set up your toolchain — install the MUFL compiler, REPL, and optionally the VS Code language server.
- The MUFL language — learn the language your packet logic is written in.
- Compile your MUFL code — turn
.muflsources into the.mufloartifacts that the evaluator runs. - Ship a product — embed the
.muflointo a host application (Embed .muflo in your app) and stand up the runtime components your network needs (Deploy your network). - Tutorials — end-to-end walk-throughs from a one-line script to a fully-encrypted messenger. (Currently being rewritten against the new toolchain; the runnable messenger-demo is the up-to-date reference in the meantime.)
- Debugging & logs — the workflow for diagnosing failed transactions and inspecting wrapper-level traces.
What lives where
The pieces you will be touching during development:
mufl-compile— the MUFL compiler. Reads.mufl/.mu/.mmsources, writes.muflo.mufl— the REPL. Quick experiments and one-off.mufloevaluation.meta— the type-checking library used by the compiler. Ships with the toolchain.mufl_stdlib— the standard library. Ships with the toolchain.transactions— internal library that implements the transaction-return convention used by MUFL.@adapt-toolkit/sdk— the npm package you depend on from your TypeScript / JavaScript application to talk to compiled packets. See the SDK API reference.- MUFL language server — VS Code extension that gives you diagnostics, autocomplete, and rename for MUFL files. See Install the language server.
A worked example
For a guided walk-through of building a real ADAPT application end to end, see the tutorials section (rewrite in progress) or the live messenger-demo repository.