Ratzilla
Build terminal-themed web applications with Rust and WebAssembly. Powered by Ratatui.
Quickstart
Add Ratzilla as a dependency in your Cargo.toml
:
Here is a minimal example:
use ;
use ;
use ;
Then add your index.html
which imports the JavaScript module:
<!doctype html>
Ratzilla
Install trunk to build and serve the web application.
Add compilation target wasm32-unknown-unknown
:
Then serve it on your browser:
Now go to http://localhost:8080 and enjoy TUIs in your browser!
Documentation
Examples
- Minimal (Preview)
- Demo (Preview)
- Pong (Preview)
- Colors RGB (Preview)
- Animations (Preview)
- World Map (Preview)
Websites built with Ratzilla
- https://orhun.dev/ratzilla - The official website of Ratzilla
- https://terminalcollective.org - Terminal Collective community website
- https://www.function-type.com/tusistor - Resistor calculator
- http://timbeck.me - Personal website of Tim Beck
- https://map.apt-swarm.orca.toys - Map of apt-swarm p2p locations
Acknowledgements
Thanks to Webatui projects for the inspiration and the initial implementation of the essential parts of DOM backend.
Special thanks to Martin Blasko for his huge help and contributions.
Lastly, thanks to Ratatui for providing the core TUI components.
Contributing
Pull requests are welcome!
Consider submitting your ideas via issues first and check out the existing issues.
License
Licensed under either of Apache License Version 2.0 or The MIT License at your option.
🦀 ノ( º _ º ノ) - respect crables!
Copyright
Copyright © 2025, Orhun Parmaksız