#ratatui-widgets #tui #ratatui

hyperrat

An OSC 8 link widget for ratatui that doesn't break your UI

2 releases

Uses new Rust 2024

0.1.1 Feb 19, 2026
0.1.0 Feb 19, 2026

#1246 in Command-line interface

Download history 33/week @ 2026-02-19 22/week @ 2026-02-26 163/week @ 2026-03-19 121/week @ 2026-03-26 389/week @ 2026-04-02 545/week @ 2026-04-09 74/week @ 2026-04-16 565/week @ 2026-04-23 111/week @ 2026-04-30 144/week @ 2026-05-07

932 downloads per month
Used in gitv-tui

Unlicense OR MIT

13KB
242 lines

hyperrat

This crate provides a Link widget for the ratatui library that renders clickable hyperlinks in supported terminals using the OSC 8 escape sequence. It handles label truncation, hover styles, and graceful degradation when hyperlinks aren't supported or enabled.

The Link widget can be customized with different styles, hover effects, and fallback suffixes to provide additional context when the label is truncated. It also ensures that any cells used for hyperlink rendering are properly marked to prevent interference with text selection and cursor movement in the terminal.

Dependencies

~6MB
~92K SLoC