| Crates.io | orbitrs |
| lib.rs | orbitrs |
| version | 0.1.10 |
| created_at | 2025-05-21 13:20:52.536428+00 |
| updated_at | 2025-05-21 18:07:48.943013+00 |
| description | Core UI framework for the Orbit ecosystem - provides the rendering engine, component model, and framework APIs |
| homepage | |
| repository | https://github.com/orbitrs/orbitrs |
| max_upload_size | |
| id | 1683383 |
| size | 269,785 |
Orbit is a Rust-first, cross-platform UI framework that enables building Web, Native, and Embedded applications from a unified, single-source component format: .orbit. Inspired by frameworks like Razor, Vue, and Blazor, Orbit combines declarative markup with Rust logic for high-performance, flexible, and maintainable UI development.
Build once, run anywhere โ combining Rustโs power with an intuitive component model.
.orbit files.Orbit uses a flexible file naming convention to support simple to advanced workflows.
| File Name | Purpose |
|---|---|
example.orbit |
Core component file mixing markup and Rust logic |
example.orbit.rs |
Optional Rust logic extension/shared file |
example.orbit.html |
Optional raw HTML fragment |
example.orbit.css |
Optional raw CSS styling |
example.orbit.js |
Optional raw JavaScript (interop, utilities) |
This encourages modular development while maintaining the ability to have everything in a single file for simplicity.
Orbit uses a hybrid rendering architecture that combines the strengths of both Skia and WGPU:
| Feature | Skia (Standard UI) | WGPU (Advanced UI) |
|---|---|---|
| High-quality 2D UI | โ Native vector graphics | โ ๏ธ Requires abstraction |
| Hardware-accelerated 3D | โ Not supported | โ Native support |
| Custom shaders | โ ๏ธ Limited support | โ Full control |
| Future game engine path | โ Not suitable | โ Fully extensible |
| WASM support | โ Stable and production-ready | โ ๏ธ Experimental but evolving |
| Performance for UI | โ Optimized for 2D | โ ๏ธ Overhead for simple UI |
Our Hybrid Solution: Orbit leverages both rendering backends through a unified abstraction:
This approach allows Orbit to excel across different application domains while maintaining a consistent API for developers.
.orbit parser (template + style + Rust blocks)new, build, dev commandsRendererBackend trait abstractioncargo integrationorbit/
โโโ core/ # Runtime core: state, events, reactivity
โโโ parser/ # Orbit file parser and AST
โโโ renderer/ # Renderer implementations
โ โโโ common/ # Shared renderer abstractions
โ โโโ skia/ # Skia renderer for standard UI
โ โโโ wgpu/ # WGPU renderer for advanced UI
โ โโโ compositor/ # Renderer output compositor
โโโ cli/ # Orbiton CLI
โโโ examples/ # Sample apps and demos
โโโ docs/ # Documentation
โโโ orbit-spec.md # Syntax and semantics specification
no_std with optimized Skia/WGPU backends.orbit to WASM packages for easy npm distributionOrbit is more than a UI frameworkโit's a Rust-native UI ecosystem designed for high performance, safety, and developer joy. By embracing a hybrid approach with both Skia and WGPU, Orbit provides the best tools for each use case while maintaining a unified APIโcreating the foundation for the next generation of Rust apps across web, desktop, embedded, and beyond.
The Orbit has begun. ๐ฐ๏ธ