wisdom-quotes

Crates.iowisdom-quotes
lib.rswisdom-quotes
version0.2.0
created_at2025-07-24 11:08:41.688291+00
updated_at2025-07-26 01:38:55.103659+00
descriptionA beautiful command-line tool to display random famous quotes with ASCII art characters from both English and Chinese literature
homepagehttps://github.com/snakeek/wisdom-quotes
repositoryhttps://github.com/snakeek/wisdom-quotes
max_upload_size
id1765918
size2,158,047
renyc (snakeek)

documentation

README

Wisdom Quotes ๐Ÿ“š

Crates.io License Downloads

A beautiful command-line tool to display random famous quotes with ASCII art characters from both English and Chinese literature. Perfect for daily inspiration, terminal customization, or just discovering wisdom from across cultures and centuries.

โœจ Features

  • 15,421+ Quotes: Curated collection including:
    • 5,421 English famous quotes from historical figures
    • 10,000 Chinese classical poetry and literature excerpts
  • ASCII Art Characters: Fun animated characters including cow, dragon, rabbit, and cat
  • Smart Categorization: Filter by category (inspirational, philosophical, humorous, chinese, general)
  • Beautiful Display: Elegant formatting with colors and Unicode art
  • Lightning Fast: Instant random quote selection with no API calls
  • Cross-platform: Works seamlessly on macOS, Linux, and Windows
  • Offline First: All data embedded, no internet required
  • Multilingual: Seamlessly blends English and Chinese wisdom

๐Ÿ“ฆ Installation

Quick Install from crates.io

cargo install wisdom-quotes

Build from Source

git clone https://github.com/snakeek/wisdom-quotes.git
cd wisdom-quotes
cargo install --path .

๐Ÿš€ Usage

Basic Commands

# Random quote (any language/category)
quotes

# Show quote with author attribution
quotes --author

# View collection statistics
quotes --stats

# Enable ASCII art mode (random character)
quotes --ascii

# Choose specific ASCII character
quotes --ascii --character cow --author

ASCII Art Characters

# Classic cow (cowsay style)
quotes --ascii --character cow

# Majestic dragon
quotes --ascii --character dragon

# Cute rabbit
quotes --ascii --character rabbit

# Simple cat
quotes --ascii --character cat

Category Filtering

# Inspirational quotes for motivation
quotes --category inspirational --author

# Chinese classical poetry and wisdom
quotes --category chinese --author

# Philosophical insights
quotes --category philosophical --author

# Light-hearted and humorous quotes
quotes --category humorous --author

# General wisdom and observations
quotes --category general --author

๐ŸŽจ Example Output

ASCII Art Mode:

 ____________________________________________________
/ The only way to do great work is to love what you \
\ do. โ€” Steve Jobs                                   /
 ----------------------------------------------------
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||

  ๐Ÿš€ ๅŠฑๅฟ—ๅ่จ€

Regular English Quote:

โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•

  ๐Ÿ’ญ The only way to do great work is to love what
  ๐Ÿ’ญ you do.

      โ€” Steve Jobs

โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•

Chinese Classical Poetry:

โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•

  ๐Ÿ’ญ ๅฑฑๆœ‰ๆœจๅ…ฎๆœจๆœ‰ๆž๏ผŒๅฟƒๆ‚ฆๅ›ๅ…ฎๅ›ไธ็Ÿฅใ€‚

      โ€” ไฝšๅใ€Š่ถŠไบบๆญŒใ€‹

โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•

Statistics View:

$ quotes --stats

๐Ÿ“Š ๅ่จ€ๅˆ†็ฑป็ปŸ่ฎก
โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
  ๐Ÿ€„ ไธญๆ–‡ๅๅฅ: 10000 ๆก (64.8%)
  ๐Ÿ“ ้€š็”จ็ฑป: 4043 ๆก (26.2%)
  ๐Ÿค” ๅ“ฒๅญฆ็ฑป: 774 ๆก (5.0%)
  ๐Ÿš€ ๅŠฑๅฟ—็ฑป: 555 ๆก (3.6%)
  ๐Ÿ˜„ ๅนฝ้ป˜็ฑป: 49 ๆก (0.3%)
โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
  ๆ€ป่ฎก: 15421 ๆกๅ่จ€

๐Ÿ“‚ Categories

Category Emoji Description Count
chinese ๐Ÿ€„ Classical Chinese poetry and literature 10,000
general ๐Ÿ“ General wisdom and life observations 4,043
philosophical ๐Ÿค” Deep thoughts and philosophical insights 774
inspirational ๐Ÿš€ Motivational and success-oriented quotes 555
humorous ๐Ÿ˜„ Funny and witty sayings 49

๐Ÿ› ๏ธ Command Reference

wisdom-quotes 0.2.0
A beautiful command-line tool to display random famous quotes with ASCII art

USAGE:
    quotes [OPTIONS]

OPTIONS:
    -c, --category <CATEGORY>    Filter by category [possible values: inspirational, 
                                philosophical, humorous, general, chinese]
    -a, --author                 Show author information
        --stats                  Show statistics of all categories
        --ascii                  Enable ASCII art mode
        --character <CHARACTER>  Choose ASCII character [possible values: cow, dragon, rabbit, cat]
    -h, --help                   Print help information
    -V, --version                Print version information

๐ŸŒŸ Use Cases

  • Daily Inspiration: Add to your shell profile for daily wisdom
  • Terminal Customization: Perfect for MOTD or terminal startup
  • Writing Prompts: Spark creativity with random quotes
  • Language Learning: Discover classical Chinese literature
  • Meditation: Philosophical quotes for reflection

๐Ÿ“– Data Sources

This project builds upon excellent open-source datasets:

๐Ÿค Contributing

Contributions are welcome! Areas where you can help:

  • Quote Quality: Improve categorization or fix attribution errors
  • New Features: Random quote of the day, favorites system, search functionality
  • Localization: Add support for other languages
  • Performance: Optimize loading or display performance

Please feel free to:

  1. Open an issue for bugs or feature requests
  2. Submit a pull request with improvements
  3. Share feedback on quote quality or categorization

๐Ÿ“„ License

This project is dual-licensed under your choice of:

๐Ÿ™ Acknowledgments

  • Thanks to all the philosophers, poets, and thinkers whose wisdom is preserved here
  • Gratitude to the open-source community maintaining the quote databases
  • Special appreciation for classical Chinese literature preservation efforts

"The best time to plant a tree was 20 years ago. The second best time is now." โ€” Chinese Proverb

Commit count: 0

cargo fmt