Crates.io | bunbun |
lib.rs | bunbun |
version | 0.8.0 |
source | src |
created_at | 2019-12-15 20:09:06.790452 |
updated_at | 2020-09-28 05:01:50.643303 |
description | Re-implementation of bunny1 in Rust |
homepage | |
repository | https://github.com/edward-shen/bunbun |
max_upload_size | |
id | 189600 |
size | 197,759 |
Self-hostable, easy-to-configure, fast search/jump multiplexer service.
bunbun is a pure-Rust implementation of bunny1, providing a customizable search engine and quick-jump tool in one small binary.
After adding it to your web-browser and setting it as your default search engine, you'll gain the ability to quick-jump to a specific page or search from a specific engine:
g hello world // Searches "hello world" in google
r anime // Goes to reddit.com/r/anime
ls // Lists all available commands and aliases
foo bar // If foo is a defined command, do something with bar
// Alternatively, if a default route is set, use the entire
// query for the default route
strip
and upx --lzma
on the release
binary).If you have cargo
, you can simply run cargo install bunbun
.
Once installed, simply run it. A default config file will be created if one does not exist.
If you're looking to run this as a daemon (as most would do), you should put the
binary in /usr/bin
and copy aux/systemd/bunbun.service
into your preferred
systemd system folder. Then you may run systemctl enable bunbun --now
to start
a daemon instance of bunbun.
If running Arch Linux, you may use the provided PKGBUILD
to install bunbun.
Run makepkg
followed by sudo pacman -U bunbun.<version>.tar.gz
. This
installs the systemd service for you. Run systemctl enable bunbun --now
to
start bunbun as a daemon.
If you're looking to build a release binary, here are the steps I use:
cargo build --release
strip target/release/bunbun
upx --lzma target/release/bunbun
LZMA provides the best level of compress for Rust binaries; it performs at the
same level as upx --ultra-brute
without the time cost and without breaking
the binary.
If configuring for development, no further configuration is required. If running
this for production, you should edit the public_address
field.
the config file is watched, so updates are immediate unless invalid, or if
you're using certain programs such as nvim
, which performs updating a file via
swapping rather than directly updating the file.
bunbun supports the OpenSearch Description Format. Visit the root page of your desired instance of bunbun to learn more.