whatisgithub

What is ratty?

orhun/ratty — explained in plain English

Analysis updated 2026-05-18

2,082RustAudience · developerComplexity · 3/5LicenseSetup · moderate

In one sentence

A Rust terminal emulator that renders on the GPU and can show inline, animated 3D objects like a spinning rat cursor.

Mindmap

mindmap
  root((repo))
    What it does
      GPU rendered terminal
      Inline 3D graphics
      Spinning rat cursor
    Tech stack
      Rust
      Bevy engine
      Ratatui
    Use cases
      Daily terminal driver
      Build 3D terminal apps
      Explore 3D mode
    Audience
      Rust developers
      Terminal enthusiasts
      Graphics hobbyists

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Use Ratty as a daily terminal emulator with a novel GPU rendered interface

USE CASE 2

Build a custom terminal application with embedded 3D objects using the ratatui-rgp widget library

USE CASE 3

Toggle 3D mode to explore the terminal's rendering as an interactive 3D scene

What is it built with?

RustBevyRatatuiwgpu

How does it compare?

orhun/rattywithcoral/coralnubskr/walrus
Stars2,0822,2471,887
LanguageRustRustRust
Setup difficultymoderatemoderatemoderate
Complexity3/53/55/5
Audiencedeveloperdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 30min

Needs a GPU and graphics stack supported by Bevy and wgpu, some platforms need extra system packages.

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

So what is it?

Ratty is a terminal emulator written in Rust that renders its interface on the GPU and can display inline three dimensional graphics inside the terminal itself. It combines the Ratatui terminal UI library with the Bevy game engine, and its most distinctive feature is a spinning three dimensional rat cursor that replaces the usual blinking text cursor. Beyond the traditional two dimensional terminal view, Ratty has a separate three dimensional mode that can be toggled with a keyboard shortcut, letting a user see what is effectively behind the flat terminal surface. It also supports inline three dimensional objects placed directly in terminal space through its own protocol, called the Ratty Graphics Protocol, which can register OBJ and GLB model files, position them at specific terminal cell locations, and animate their scale, color, and depth. A companion widget library called ratatui-rgp lets other developers build their own terminal applications that include these inline three dimensional objects, with example programs showing a giant rat model, an editable document with embedded 3D content, and a split pane drawing tool with a live 3D preview. Installation is available through Cargo, the Arch Linux package repository, prebuilt binary releases, or building directly from a Git checkout, and it requires a GPU and graphics stack supported by Bevy and wgpu. Configuration is handled through a TOML file that controls cursor appearance and animation, including which 3D model to use and how it scales and moves. Under the hood, the terminal buffer is drawn on the CPU through Ratatui, text is rendered on the GPU using the Parley and Vello libraries, the result is read back to the CPU, and then copied into an image that Bevy presents in either 2D or 3D. The project's author describes this as a GPU powered bridge rather than a fully GPU resident rendering path, and notes that achieving a fully GPU resident pipeline would require a dedicated Bevy render integration. The code is released under the MIT license.

Copy-paste prompts

Prompt 1
Show me how to install Ratty and customize the 3D cursor model in ratty.toml
Prompt 2
Explain how the Ratty Graphics Protocol places and animates inline 3D objects in terminal space
Prompt 3
Help me write a small ratatui-rgp example that shows a custom 3D model in a terminal app

Frequently asked questions

What is ratty?

A Rust terminal emulator that renders on the GPU and can show inline, animated 3D objects like a spinning rat cursor.

What language is ratty written in?

Mainly Rust. The stack also includes Rust, Bevy, Ratatui.

What license does ratty use?

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

How hard is ratty to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is ratty for?

Mainly developer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.