| Crates.io | wordsmith-cli |
| lib.rs | wordsmith-cli |
| version | 0.1.0 |
| created_at | 2025-10-23 00:02:48.418291+00 |
| updated_at | 2025-10-23 00:02:48.418291+00 |
| description | A Rust-based word lookup tool for the terminal. Fetches definitions from dictionaryapi.dev, slang from Urban Dictionary, synonyms/antonyms from Datamuse, and Gen Alpha meanings from gen_alpha_dictionary. Logs lookups to Markdown and JSONL with timestamps and optional glow rendering. Simple flags, no config, no cache — just fast word data in your shell. |
| homepage | |
| repository | https://github.com/fibnas/wordsmith-cli |
| max_upload_size | |
| id | 1896421 |
| size | 75,805 |
Command‑line word lookup tool with multiple sources: formal dictionary (dictionaryapi.dev), Urban Dictionary, Datamuse (synonyms/antonyms), and a Gen Alpha dictionary. Records your lookups to Markdown/JSONL logs and can render the log with glow if available.
glow when installed; falls back to plain text)--log-dir (e.g., ~/.local/share/...)Note: There is no configuration file and no offline cache at present.
cargo install wordsmith-cli
Word lookup CLI: formal defs, Urban Dict, synonyms/antonyms, logs
Usage: wordsmith-cli [OPTIONS] [WORD]
Arguments:
[WORD] The word to define
Options:
--log View the log instead of looking up a word
--formal Run formal dictionary lookup
--urban Run Urban Dictionary lookup
--thesaurus Run thesaurus (synonyms/antonyms)
--gen-alpha Run Gen Alpha dictionary lookup
--no-log Do not record this lookup
--log-dir <LOG_DIR> Directory for log.md and log.jsonl [default: ~/.local/share/wordsmith-cli]
-h, --help Print help
--formal/--urban/--thesaurus/--gen-alpha), the tool runs all lookups that are supported.--no-log is provided.--log shows the log instead of performing a lookup.Run everything (formal, Urban, thesaurus, Gen Alpha if compiled/available):
wordsmith-cli luminous
Formal dictionary only:
wordsmith-cli --formal luminous
Urban Dictionary only:
wordsmith-cli --urban sus
Thesaurus (synonyms/antonyms) only:
wordsmith-cli --thesaurus chaos
Gen Alpha dictionary only:
wordsmith-cli --gen-alpha rizz
Skip logging for a single lookup:
wordsmith-cli --no-log ephemeral
Specify a custom log directory:
wordsmith-cli --log-dir "~/.local/share/wordsmith-cli-test"
View the log (uses glow --width 200 when available, otherwise prints the file):
wordsmith-cli --log
Lookups print definitions and, when available, an example section plus Synonyms and Antonyms lists.
Two log files are maintained (created as needed) under --log-dir (default: ~/.local/share/wordsmith-cli):
log.md — Markdown table:
# Wordsmith Log
| Date | Word | Definition | Synonyms | Antonyms |
|---|---|---|---|---|
| 2025-10-21 14:12:10 | luminous | emitting or reflecting light | bright, radiant | dark, dim |
log.jsonl — one JSON object per line, including flags indicating which sources returned results.
gen_alpha_dictionary — additional dictionary sourceglow — pretty Markdown rendering in terminalclap — CLI parsingreqwest, serde, serde_json — HTTP/JSON plumbingchrono — timestampstextwrap — tidier text wrappingMIT — see LICENSE.
Issues and PRs are welcome.