# bit

> Terminal ANSI text generator with 100+ bitmap fonts, gradients, shadows, and multi-format export capabilities.

Stars: 438 · Categories: Dev Tools

- Repository: https://github.com/superstarryeyes/bit
- Page: https://www.trmn.sh/tools/bit

## Install

- Shell Script: `curl -sfL https://raw.githubusercontent.com/superstarryeyes/bit/main/install.sh | sh`
- Go Build: `go build -o bit ./cmd/bit`

## Overview

Bit is a terminal-based ANSI text generator that converts plain text into stylized ASCII art using over 100 bitmap fonts. The tool operates in two modes: an interactive TUI with six control panels for real-time text styling, and a CLI mode for direct command-line rendering. Users can apply color gradients (horizontal and vertical), shadow effects with configurable offsets and styles, and scale text from 0.5x to 4x.

The tool supports extensive customization including character spacing (0-10 pixels), word spacing (0-20 pixels), line spacing (0-10 pixels), and text alignment (left, center, right). Color support includes 14 predefined ANSI colors plus unlimited hex color values for gradients and text coloring. Multi-line text input is supported with per-row cursor tracking in the interactive mode.

Bit can export styled text to multiple formats including plain TXT, Go, JavaScript, Python, Rust, and Bash with language-specific formatting. The fonts are embedded using go:embed, making the binary self-contained. The tool also supports loading custom .bit font files or entire directories of fonts alongside the built-in collection. This makes it suitable for developers creating CLI tools, terminal applications, or anyone needing stylized text output for documentation or presentations.

### Installation

```bash
# via Shell Script
curl -sfL https://raw.githubusercontent.com/superstarryeyes/bit/main/install.sh | sh
```

```bash
# via Go Build
go build -o bit ./cmd/bit
```

![Bit interactive TUI demonstration](https://media.trmn.sh/cached/79f6428d0dd426beb768a71ec0a078c557e4b4e077add19ad27c7040646a3fcd.gif)

## Alternatives

- [dra](https://www.trmn.sh/tools/dra.md): CLI tool to download and install release assets from GitHub repositories (Rust, 364 stars)
- [octocov](https://www.trmn.sh/tools/octocov.md): Code metrics toolkit for collecting coverage, code-to-test ratio, test execution time, and custom metrics from multiple report formats (Go, 517 stars)
- [chiko](https://www.trmn.sh/tools/chiko.md): Terminal UI client for testing gRPC APIs with server reflection, bookmarks, and metadata support (358 stars)
- [logss](https://www.trmn.sh/tools/logss.md): CLI tool that splits and visualizes log streams into multiple containers based on regex patterns with real-time filtering (Rust, 296 stars)
- [dotbins](https://www.trmn.sh/tools/dotbins.md): Cross-platform CLI binary manager for dotfiles that downloads tools from GitHub releases without requiring admin privileges (273 stars)

---

Canonical: https://www.trmn.sh/tools/bit
