···1+# Feature: universe builder
2+3+CLI tool that builds a self-contained universe of compiled OCaml packages
4+from an opam switch — the artifacts needed for the browser toplevel to
5+load libraries at runtime.
6+7+## Scope
8+9+- Walk an opam switch and for each installed package:
10+ - Copy META file
11+ - Compile `.cma` to `.cma.js` via js_of_ocaml
12+ - Generate `dynamic_cmis.json` from `.cmi` files
13+- Write `findlib_index.json` listing all packages
14+- Output a directory layout ready to serve over HTTP
15+16+## References
17+18+- [Design](docs/plans/2026-02-20-ocaml-interactive-tutorials-design.md) — Section 1
19+- [Plan](docs/plans/2026-02-20-ocaml-interactive-tutorials-plan.md) — Stream 3 (tasks 3.1–3.3)