{"id":16113102,"url":"https://github.com/cuppachino/farve","last_synced_at":"2026-02-11T06:02:59.609Z","repository":{"id":126079321,"uuid":"610986365","full_name":"cuppachino/farve","owner":"cuppachino","description":"Tiny macros for owo-color'ful logging and printing.","archived":false,"fork":false,"pushed_at":"2023-03-08T04:11:07.000Z","size":57,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-28T05:58:40.020Z","etag":null,"topics":["cli","color","logging","rust-lang"],"latest_commit_sha":null,"homepage":"https://docs.rs/crate/farve/latest","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cuppachino.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-03-07T21:57:20.000Z","updated_at":"2023-03-23T23:06:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"7e366cd2-c87f-48bf-86c3-58de41ae6177","html_url":"https://github.com/cuppachino/farve","commit_stats":{"total_commits":14,"total_committers":2,"mean_commits":7.0,"dds":0.0714285714285714,"last_synced_commit":"584a58ad201101a8bb013cfc04300368abba0224"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/cuppachino/farve","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cuppachino%2Ffarve","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cuppachino%2Ffarve/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cuppachino%2Ffarve/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cuppachino%2Ffarve/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cuppachino","download_url":"https://codeload.github.com/cuppachino/farve/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cuppachino%2Ffarve/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29327861,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-11T03:52:29.695Z","status":"ssl_error","status_checked_at":"2026-02-11T03:52:23.094Z","response_time":97,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","color","logging","rust-lang"],"created_at":"2024-10-09T20:10:17.230Z","updated_at":"2026-02-11T06:02:59.595Z","avatar_url":"https://github.com/cuppachino.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Farve\n\n🔗[docs.rs](https://docs.rs/crate/farve/latest) \n🔗[crates.io](https://crates.io/crates/farve)\n\nA bite-sized *`macro_rules!`* wrapper around [`owo-colors`](https://github.com/jam1garner/owo-colors) for public-facing CLI applications.\n\n```rust\nuse owo_colors::OwoColorize;\nuse farve::{efarve, farve};\n\n//stdout\nfarve!(silly, \"silly 😋\".white().bold(), 2);\nfarve!(debug, '🐛', 0);\nfarve!(info, \"info\".blue(), 1);\n\n// stderr\nefarve!(warn, \"WARN\".bright_yellow(), 2);\nefarve!(error, \"ERROR\".bright_red().underline(), 0);\n\nfn main() {\n    silly(\"Hello, world!\");\n    debug(\"We're gonna need a bigger net...\");\n    info(\"The weather is nice today.\");\n    warn(\"I almost couldn't, but I did it!\");\n    error(\"Something went so wrong!\");\n}\n```\n\n\u003cimg src=\"./img-0-min.png\" data-canonical-src=\"./img-0-min.png\" width=\"60%\" /\u003e\n\n## Usage\n\nAdd `farve` to your `Cargo.toml`:\n\n```apache\ncargo add farve\n```\n\n## `farve!` and `efarve!`\n\n```rust\nuse owo_colors::OwoColorize;\nuse farve::{efarve, farve};\n\nfarve!(info);\nefarve!(warn, \"warning\".bright_yellow());\n\nfn main() {\n    info(\"Hello cargo!\");\n    warn(\"I almost forgot to show you the brackets 👇\");\n}\n```\n\n\u003cimg src=\"./img-1-min.png\" data-canonical-src=\"./img-1-min.png\" width=\"80%\" /\u003e\n\n## `brackets`\n\nThe final parameter can be used to change the brightness of the brackets.\n\n```rust\nuse farve::{brackets, farve};\n\nfn main() {\n    /// -\u003e  [default]\n    println!(\"{}\", brackets!(\"default\"));\n    \n    /// -\u003e [darkest]\n    println!(\"{}\", brackets!(\"darkest\", 0));\n    \n    /// -\u003e [gray]\n    println!(\"{}\", brackets!(\"gray\", 1));\n    \n    /// -\u003e [brightest]\n    println!(\"{}\", brackets!(\"brightest\", 2));\n}\n```\n\n\u003cimg src=\"./img-2-min.png\" data-canonical-src=\"./img-2-min.png\" width=\"35%\" /\u003e\n\n## `brackets!` can be used through `farve!` and `efarve!`\n\n```rust\nuse farve::{farve, efarve};\n\nfarve!(spooky,\"spooky🎃\".red(), 0);\nfarve!(silly, \"silly🤪\".white().italic(), 2);\n```\n\n\u003cimg src=\"./img-3-min.png\" data-canonical-src=\"./img-3-min.png\" width=\"75%\" /\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcuppachino%2Ffarve","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcuppachino%2Ffarve","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcuppachino%2Ffarve/lists"}