diff --git a/README.md b/README.md index 1afec16..7009984 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,7 @@ - [What is BrowserCode?](#about) - [Quickstart](#quickstart) - [Make it your own](#make-it-your-own) +- [Embedding](#embedding) - [Breaking BrowserCode](#breaking-browsercode) - [Roadmap](#roadmap) @@ -88,6 +89,22 @@ Other useful scripts: CLI availability and behavior are configured in [`src/lib/config/tools.ts`](src/lib/config/tools.ts) — this is the place to start if you want to add or tweak a CLI. +
+ The page embedding this frame must send
+ Cross-Origin-Opener-Policy: same-origin
+ and
+ Cross-Origin-Embedder-Policy: require-corp, and set
+ allow="cross-origin-isolated" on the iframe.
+
+ Requires Atomics.waitAsync (Chrome, Edge, Safari 16.4+). +
+ {/if} +Pass one of
+?repo=<github url>?framework=<id>?agent=<id>
+ optionally with &view=files,editor,terminal,preview.
+