| Crates.io | blocklet |
| lib.rs | blocklet |
| version | 0.1.3 |
| created_at | 2025-10-13 21:30:48.017699+00 |
| updated_at | 2025-10-13 22:47:11.885167+00 |
| description | A cross-platform CLI tool that generates ASCII art using Unicode block characters, similar to figlet but with beautiful solid Unicode blocks instead of outlines or hash symbols. |
| homepage | https://github.com/tanav-malhotra/blocklet |
| repository | https://github.com/tanav-malhotra/blocklet |
| max_upload_size | |
| id | 1881181 |
| size | 148,169 |
A cross-platform CLI tool that generates ASCII art using Unicode block characters, similar to figlet but with beautiful solid Unicode blocks instead of outlines or hash symbols.
Install from crates.io:
cargo install blocklet
Or build from source:
git clone https://github.com/tanav-malhotra/blocklet.git
cd blocklet
cargo install --path .
# Simple text rendering (with drop-shadow by default)
blocklet "Hello World"
# Multiple arguments = multiple lines
blocklet "Hello" "World"
# Mix quoted and unquoted arguments
blocklet "Hello World" Goodbye
# Disable drop-shadow for solid characters
blocklet "Clean Text" --no-shadow
# Short form to disable shadow
blocklet "Clean Text" -n
# With width limiting (word wrapping)
blocklet "This is a long text that will wrap" --width 40
# Choose different fonts
blocklet "Stylish" --font standard_solid
blocklet [OPTIONS] <TEXT>...
ARGUMENTS:
<TEXT>... The text to convert to ASCII art (multiple arguments = multiple lines)
OPTIONS:
-w, --width <WIDTH> Maximum width for output (0 = no limit) [default: 0]
-f, --font <FONT> Font to use (standard, standard_shadow, standard_solid) [default: standard_shadow]
-n, --no-shadow Use solid font without shadow (same as --font standard_solid)
-h, --help Print help information
-V, --version Print version information
Blocklet includes three font variants:
The shadow font features proper typographic descenders for characters like Q, comma, and question mark!
Font System (src/font.rs)
Rendering Engine (src/renderer.rs)
CLI Interface (src/main.rs)
Run the test suite:
# Unit tests
cargo test
# Performance benchmarks
cargo bench
# Check test coverage
cargo tarpaulin --out Html
Benchmarks on modern hardware show excellent performance:
Run your own benchmarks with:
cargo bench --bench rendering
We welcome contributions! Please see CONTRIBUTING.md for guidelines.
Prerequisites:
Clone and build:
git clone https://github.com/tanav-malhotra/blocklet.git
cd blocklet
cargo install --path .
Run tests:
cargo test
cargo bench
Code style:
cargo fmt
cargo clippy
src/font.rsFONTS HashMapThis project is licensed under the GNU General Public License v3.0.
See LICENSE or https://www.gnu.org/licenses/gpl-3.0.html for details.
at your option.
A: While figlet uses ASCII characters to create outlined text, Blocklet uses solid Unicode block characters (โ) for a more modern, filled appearance. It's designed to look better in modern terminals with Unicode support.
A: Yes, Blocklet works on any terminal that supports Unicode (UTF-8). This includes most modern terminals on Windows, macOS, and Linux.
A: Currently, fonts are built into the binary. Custom font support is planned for a future release.
A: Colored output is planned for a future release. Currently, the tool outputs monochrome Unicode blocks.
A: Please open an issue on our GitHub repository.
See CHANGELOG.md for a detailed history of changes.
Made with โค๏ธ in Rust ๐ฆ