| Crates.io | bang-cli |
| lib.rs | bang-cli |
| version | 0.1.1 |
| created_at | 2025-06-02 21:09:30.692378+00 |
| updated_at | 2025-06-02 21:17:22.434634+00 |
| description | A blazingly fast CLI made in rust that compiles DuckDuckGo-style `!bang` shortcuts into a binary map for instant query resolution |
| homepage | |
| repository | https://github.com/Y4dd/bang-cli |
| max_upload_size | |
| id | 1698374 |
| size | 62,094 |
A blazingly fast CLI made in rust that compiles DuckDuckGo-style !bang shortcuts into a binary map for instant query resolution
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!
cargo install bang-cli
or local build
git clone git@github.com:Y4dd/bang-cli.git
cd bang-cli
cargo install --path .
# bang ![tag] [query]
bang !npm typescript
# https://www.npmjs.com/search?q=typescript
bang !npm
# https://www.npmjs.com
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
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
This project is licensed under the MIT License.