# crates-tui

> Terminal interface for browsing and exploring Rust crates from crates.io with search and clipboard integration.

Stars: 155 · Categories: Dev Tools

- Repository: https://github.com/ratatui-org/crates-tui
- Page: https://www.trmn.sh/tools/crates-tui

## Install

- Cargo: `cargo install crates-tui`
- AUR: `paru -S crates-tui`

## Overview

crates-tui is a terminal user interface for exploring Rust crates from the crates.io registry. Built with Ratatui, it provides a text-based browser for searching and examining Rust packages directly from the command line. The interface includes a search results table, crate summary view, and selection tabs for navigating between different crates.

The tool integrates with external tools by copying `cargo add` commands to the clipboard and opening documentation or crates.io pages in the default browser. It supports configurable key bindings that map to actions across different interface modes, and includes Base16 theme support for customizing the appearance with color schemes like Dracula, Rose Pine, and GitHub.

Developers working with Rust can use crates-tui to discover packages, examine crate metadata, and quickly add dependencies to their projects without leaving the terminal. The application uses async operations to fetch crate information from the API without blocking the user interface, maintaining responsiveness during network requests.

### Installation

```bash
# via Cargo
cargo install crates-tui
```

```bash
# via AUR
paru -S crates-tui
```

![Main interface demonstration](https://media.trmn.sh/cached/bed9c257b4eb707c0c84ebfdadfd07a5642a54a8041e66ca7f9f3a254a9a0bcb.mov)

![Browser integration](https://media.trmn.sh/cached/22f44f7675871feba7fb87cc373371c1b4986cb7943e6e0abd70b06d37cb9582.mp4)

![Dracula theme](https://media.trmn.sh/cached/48dc9e70e85e1f1b9d6d8b098cf9d18954b3225b9a83c027e5447c6481cce7f4.png)

## Alternatives

- [andcli](https://www.trmn.sh/tools/andcli.md): CLI tool for managing 2FA tokens from encrypted backups of popular authenticator apps (161 stars)
- [termframe](https://www.trmn.sh/tools/termframe.md): Non-interactive terminal emulator that executes commands and exports their output as SVG screenshots. (Rust, 144 stars)
- [awsesh](https://www.trmn.sh/tools/awsesh.md): TUI and CLI tool for managing AWS SSO sessions with fuzzy search, account switching, and shell integration. (Go, 143 stars)
- [b4n](https://www.trmn.sh/tools/b4n.md): Terminal user interface for Kubernetes API management with resource CRUD, logs, shell access, and port forwarding (109 stars)
- [textual-astview](https://www.trmn.sh/tools/textual-astview.md): TUI tool for exploring Python Abstract Syntax Trees (AST) with interactive tree view and source highlighting (Python, 100 stars)

---

Canonical: https://www.trmn.sh/tools/crates-tui
