Architecture
Orbit is a single publishable library, @restless-dreams/orbit on npm;
the repository root is the package.
Library
src/corecontains the parsers and serializers, the layout, the scene engine (src/core/engine: scenes, camera, flights, spin physics, views), the renderer, the HTML controls, detail sheet and media viewer (src/core/ui), the stylesheet and themes, the web component helpers, and shared types. This is the dependency-free public core.src/reactcontains the optional React wrapper. It is exported only through@restless-dreams/orbit/react.src/markedcontains the optionalmarkedintegration. It is exported only through@restless-dreams/orbit/marked.scripts/build.tsproduces ESM, source maps, and TypeScript declarations indist, compiling the stylesheet withscripts/sass-plugin.ts.
The package root (@restless-dreams/orbit) is the primary entry. It exports the parsers, serializers, the renderer and its one-call helpers, the web component, the SVG export, the themes and shared types. @restless-dreams/orbit/react and @restless-dreams/orbit/marked are optional subpaths for the React wrapper and the marked integration.
Release surface
The npm package includes only:
dist/**README.mdLICENSECHANGELOG.mdpackage.json
Repository-level docs and tests are kept outside the package tarball.