How do I build an applet?
With the context-cli applet pipeline: scaffold, iterate on a draft, and deploy a single self-contained HTML file with shared state and optional backend functions.
The supported path is the CLI's bundled-UI pipeline. context-cli applet init scaffolds a Vite, React, and TypeScript project; applet draft --watch streams an ephemeral draft while you iterate; and applet deploy builds everything into one self-contained HTML file, runs the checks, and publishes a new version.
Applets talk to the workspace through a host bridge (prompt input, identity, template thumbnails), share one key-value store per applet, and can ship backend functions that run isolated with no ambient network. Publishing an applet to the organization catalog is a human action; agents cannot do it.
Written for developers. Last reviewed 2026-09-15.
Related questions
Still need an answer?
Tell us what you were looking for and we reply within one business day.
Contact the team →Running a security review?
Documents, controls, and the request form live in the Trust Center.
Open the Trust Center →