···11+# Feature: universe builder
22+33+CLI tool that builds a self-contained universe of compiled OCaml packages
44+from an opam switch — the artifacts needed for the browser toplevel to
55+load libraries at runtime.
66+77+## Scope
88+99+- Walk an opam switch and for each installed package:
1010+ - Copy META file
1111+ - Compile `.cma` to `.cma.js` via js_of_ocaml
1212+ - Generate `dynamic_cmis.json` from `.cmi` files
1313+- Write `findlib_index.json` listing all packages
1414+- Output a directory layout ready to serve over HTTP
1515+1616+## References
1717+1818+- [Design](docs/plans/2026-02-20-ocaml-interactive-tutorials-design.md) — Section 1
1919+- [Plan](docs/plans/2026-02-20-ocaml-interactive-tutorials-plan.md) — Stream 3 (tasks 3.1–3.3)