bang-cli

Crates.iobang-cli
lib.rsbang-cli
version0.1.1
created_at2025-06-02 21:09:30.692378+00
updated_at2025-06-02 21:17:22.434634+00
descriptionA blazingly fast CLI made in rust that compiles DuckDuckGo-style `!bang` shortcuts into a binary map for instant query resolution
homepage
repositoryhttps://github.com/Y4dd/bang-cli
max_upload_size
id1698374
size62,094
Yadd (Y4dd)

documentation

README

GitHub license

Bang CLI

A blazingly fast CLI made in rust that compiles DuckDuckGo-style !bang shortcuts into a binary map for instant query resolution

Disclaimer

This queries DuckDuckGo's bang data and saves it as binary in the user's data directory You can view the JSON data at DuckDuckGo BANG!

Installation

cargo install bang-cli

or local build

git clone git@github.com:Y4dd/bang-cli.git
cd bang-cli
cargo install --path .

Usage

Query

# bang ![tag] [query]
bang !npm typescript
# https://www.npmjs.com/search?q=typescript
bang !npm
# https://www.npmjs.com

Utility

The CLI downloads and saves the data at first run if not found. If for any reason you want to delete it or rebuild it

# Deletes from data directory
bang --clean
# Deletes, fetches and rebuilds into data directory
bang --rebuild

Usage with Linux launchers

I've provided simple entry scripts under the ./scripts for launchers i've tested. Personally, i use wofi in both drun and dmenu mode as seen in ./scripts/bang-wrapper.sh

License

This project is licensed under the MIT License.

Commit count: 11

cargo fmt