How mathuo/dockview works
Project type and purpose
• This is an open-source, monorepo library (“dockview”) providing a zero-dependency layout manager core and multi-framework adapters (React, Vue, Angular, vanilla TypeScript), plus a documentation website and example sandboxes.
File structure
• Top-level: Lerna configuration and package.json orchestrate multiple packages under “packages/”.
• packages/dockview-core: the engine implementing panels, drag-and-drop, serialization, theming, etc., built with Gulp/Rollup and tested with Jest.
• packages/dockview, dockview-react, dockview-vue, dockview-angular: framework-specific adapters wrapping the core and exposing framework-native APIs. They share build scripts (Rollup, Gulp or custom scripts), TypeScript configs, and Jest tests.
• packages/docs: Docusaurus-based documentation site, example sandboxes, templates and API docs generated via TypeDoc.
• scripts/: custom utility scripts (docs generation, version management).
• .github/workflows: CI pipelines for build, test, code analysis, doc deploy, and npm publish.
README insights
• Core features: split‐views, grid‐views, tabs/groups, pop‐outs, floating windows, serialization, theming, Shadow DOM support.
• Emphasis on zero runtime dependencies, high test coverage, and transparent CI/CD with GitHub Actions.
• Live examples hosted on the docs site, version badges, and npm publishing.