Add a rotating globe animation to a terminal dashboard or CLI tool built with Ratatui
Display geographic context in a terminal app without needing a graphical window
Prototype a visually striking terminal UI component to impress users or stakeholders
Embed a low-dependency world map widget in a Rust terminal application
Run `cargo install tui-globe` to try the demo instantly. Adding it to your own Ratatui project requires adding the crate as a dependency. Regenerating map data needs a separate Python script.
tui-globe is a Rust library that renders a spinning 3D globe inside a terminal window. Terminals can only display text characters, so this library uses braille characters (the dot-pattern symbols used in accessible text) to draw fine-detail graphics that approximate a smooth image. The result is an animated globe you can embed in terminal-based applications. It is built as a widget for Ratatui, which is a Rust framework for creating visual interfaces that run entirely in the terminal without a graphical window. Developers add tui-globe as a component in their own terminal apps to display a rotating Earth. The globe's geographic data comes from Natural Earth, a public domain dataset of coastlines and country borders. That data is baked into the compiled binary at build time, so the finished program does not need to download or read external map files at runtime. You can choose between three levels of detail (coarse for a minimal overview, medium for a standard view, or fine for a dense mesh) and can optionally include or exclude country and state/province border lines. Installing the demo is one command: cargo install tui-globe, which uses Rust's standard package manager. Regenerating the geometry data, if you want to use different source maps or adjust detail levels, requires a separate Python script with a few dependencies. The code is licensed under GPL-3.0. The bundled map data is public domain from Natural Earth.
← d10n on gitmyhub — every repo by this author, as a profile.
Verify against the repo before relying on details.