A lightweight, fast dictionary application powered by AI (OpenAI-compatible APIs) with a native GUI built in Rust using egui.
- Rust 1.91 or later
- For Nix users: just run
nix developto get the development environment
cargo build --releasecargo runOr with custom config file:
cargo run -- --config /path/to/config.toml--config <PATH>- Path to config file (defaults to~/.config/rdict/config.toml)--debug- Enable debug logging--quiet- Suppress info and debug logs, only show warnings and errors
Configuration is stored in ~/.config/rdict/config.toml:
[api]
base_url = "https://api.openai.com/v1"
api_key = "your-api-key-here"
model = "claude-haiku-4-5"
response_language = "Chinese"api.base_url- OpenAI-compatible API endpoint (default:https://api.openai.com/v1)api.api_key- Your API key for authenticationapi.model- Model to use for dictionary lookups (default:claude-haiku-4-5)api.response_language- Language for dictionary responses (default:Chinese). Can be set to any language (e.g.,English,Japanese,Spanish, etc.)
nix develop # Enter development shell
nix build # Build the package
nix fmt # Format codecargo fmtThis project is licensed under the WTFPL (Do What The Fuck You Want To Public License). See the LICENSE file for details.