Architecture of anomalyco/rune
anomalyco/rune is 2,707 source files holding 45,278 symbols across 10 modules, written mainly in Rust, Python, TypeScript. The largest module is crates, with 1,480 files, and 72 files are entry points into the dependency graph.
How rune fits together
The README points to examples/hello as the starting point for a new app. The crates/rune package is the toolkit that draws an app's interface, routes its input and runs its animations. Each app's screen description is rebuilt by crates/rune as its state changes. The crates/rune-fx/src/lib.rs file is an entry point of the rune-fx crate, and crates/rune-fx/examples/gallery/main.rs is its gallery example. The crates/procwatch package supplies process statistics and frame timing that the main renderer uses. Apps can run headless, which renders frames to PNG and dumps the element tree so the output can be inspected.
Largest modules
- crates: 1,480 files and 290,923 lines of code
- examples: 111 files and 16,329 lines of code
- scripts: 62 files and 6,491 lines of code
- site: 24 files and 3,762 lines of code
- www: 23 files and 2,277 lines of code
- themes: 9 files and 894 lines of code
- research: 8 files and 1,306 lines of code
- spikes: 2 files and 303 lines of code
Languages
By file count: Rust 1,586 files, Python 49 files, TypeScript 36 files, Shell 24 files, JavaScript 14 files, Swift 5 files.
Documentation
Repowise documents rune in 1,773 pages generated from the source, 57 of them written explanations of the repository and its modules. Module guides include:
- crates/rune/src/a11y: Accessibility and Clipboard Bridge
More on rune: summary and FAQ, codebase overview, code health.
Related guide: Best dependency graph tools for monorepos