- Rust 98.8%
- Shell 1.2%
Windows: HKCU Run key via winreg. macOS: LaunchAgent plist. Linux: XDG autostart .desktop. The config value is applied at startup and on reload, and a "Start with Windows / Start at login" check item in the tray menu toggles it and persists to config.toml without touching comments. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Ma9jU7fqbmDSK6AmwYeCUm |
||
|---|---|---|
| .github/workflows | ||
| crates | ||
| docs | ||
| eval | ||
| prompts | ||
| .gitignore | ||
| Cargo.lock | ||
| Cargo.toml | ||
| LICENSE | ||
| README.md | ||
textToEmoji
A single portable desktop app that turns the text you just typed, in any application, into a playful emoji translation using a small language model running entirely on your machine. No accounts, no cloud, no per-app plugins.
my cat knocked the coffee off the desk again → 🐈😼🐾 ☕🫗💥🪑🫠 🧹😤🔁
Use it
- Run
textToEmoji.exe. A tray icon appears. On first run it downloads the default model (about 1.1 GB) and shows progress in the tray tooltip. - Type a message anywhere: Discord, a browser, Slack, an editor.
- Select the text (or leave the cursor in the field to translate the whole field) and press a hotkey:
| Hotkey | Mode | What happens |
|---|---|---|
| Ctrl+Shift+E | translate | Whole message becomes emoji |
| Ctrl+Shift+S | sprinkle | Keeps your words, adds emoji after each clause |
| Ctrl+Shift+R | react | One to three emoji, like a chat reaction |
The text is replaced in place. Ctrl+Z in the host app undoes it. On macOS the hotkeys use Cmd instead of Ctrl.
Right-click the tray icon to switch models, open the config file, or quit.
Configure
The config file lives in %APPDATA%\textToEmoji\config\config.toml on Windows
(~/.config/textToEmoji/ on Linux, ~/Library/Application Support/textToEmoji/
on macOS), or next to the exe if a file named portable sits beside it. It is
created with comments on first run. Hotkeys, model, GPU layers, and paste method
are all in there.
Modes are TOML files. Drop a new one into prompts/ next to the config file to
add a mode; each has a system prompt, few-shot examples, temperature, and
length settings (min_emoji, max_emoji, emoji_per_word).
Command line
textToEmoji cli "text to translate" # one translation to stdout
textToEmoji eval --phrases eval/phrases.txt --mode translate
textToEmoji models # list known models, ✓ if present
textToEmoji download qwen2.5-3b-instruct-q4_k_m
textToEmoji config --print
Models
| id | size | notes |
|---|---|---|
| qwen2.5-0.5b-instruct-q4_k_m | 470 MB | low power, more literal |
| qwen2.5-1.5b-instruct-q4_k_m | 1.1 GB | default |
| qwen2.5-3b-instruct-q4_k_m | 2.0 GB | quality |
Any other .gguf works too: set model = "C:/path/to/file.gguf" in the config.
Build
Rust stable, CMake, and a C++ toolchain. GPU backends are Cargo features:
--features vulkan (Windows/Linux default), --features cuda, --features metal.
See docs/DEV.md for the Windows recipe (Ninja generator, LLVM for bindgen).
cargo build --release --features vulkan
Docs
- docs/DESIGN.md — what it is, UX, goals, model choice
- docs/ARCHITECTURE.md — stack decisions, runtime structure, the hotkey round-trip
- docs/PLAN.md — phased implementation plan, risks, progress log
- docs/DEV.md — machine-specific build notes
Known limitations (v1)
- Unsigned exe: Windows SmartScreen warns once on first run.
- Apps that ignore synthetic paste (some games, elevated windows) are not supported.
- Linux Wayland blocks global hotkeys and synthetic input by design; X11 works.
- The first request after a model switch takes a moment while GPU pipelines compile; the app warms up at startup so the first hotkey press is fast.