Architecture of rmvdesi/obsidian-prism
rmvdesi/obsidian-prism is 157 source files holding 4,064 symbols across 8 modules, written mainly in JavaScript, C#, Swift. The largest module is test, with 81 files, and 7 files are entry points into the dependency graph.
How obsidian-prism fits together
The installers are the entry point for users: installer/setup/Program.cs is the Windows setup program and installer/macos/Setup/main.swift is the macOS one, and both deploy the plugin into the Antigravity configuration. The installer code in installer/common/CdpClient.cs is a shared client for the Chrome DevTools Protocol, which the plugin uses to reach the client's remote debugging port. sidecars/daemon/main.mjs is the background service entry point that runs locally and listens only on the local machine. ui-runtime.js is the front-end runtime on which the interface modules are built, and it works with controller modules that handle individual features. The index flags cdp.js and ui-runtime.js as hotspot files, and the test directory holds the largest share of the files.
Largest modules
- test: 81 files and 99,562 lines of code
- root: 24 files and 42,387 lines of code
- installer: 8 files and 17,315 lines of code
- sidecars: 7 files and 17,201 lines of code
- scripts: 5 files and 1,214 lines of code
- workbench: 4 files and 9,859 lines of code
- tools: 2 files and 3,517 lines of code
- assets: 1 file and 7 lines of code
Languages
By file count: JavaScript 124 files, C# 4 files, Swift 4 files.
Documentation
Repowise documents obsidian-prism in 184 pages generated from the source, 10 of them written explanations of the repository and its modules. Module guides include:
- sidecars/daemon: Background Sidecar Daemon
- scripts: Build and Test Orchestration
- installer/common: Cross-Platform Installer Application
- workbench: Developer Workbench Server
More on obsidian-prism: summary and FAQ, codebase overview, code health.
Related guide: Best dependency graph tools for monorepos