brewfyi 0.1.1

Coffee variety guide with roasting, brewing methods, and origins — async API client for brewfyi.com.
Documentation

brewfyi

crates.io License: MIT

Coffee variety guide with roasting, brewing methods, and origins — API client for brewfyi.com.

Try the interactive tools at brewfyi.com

Install

cargo add brewfyi

Quick Start

use brewfyi::Client;

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let client = Client::new();
    let result = client.search("ethiopian-yirgacheffe").await?;
    println!("{} results", result.total);
    Ok(())
}

Also Available

Platform Package Link
Python pip install brewfyi PyPI
npm npm install brewfyi npm
Go go get github.com/fyipedia/brewfyi-go pkg.go.dev
Rust cargo add brewfyi crates.io
Ruby gem install brewfyi rubygems

Embed Widget

Embed BrewFYI widgets on any website with brewfyi-embed:

<script src="https://cdn.jsdelivr.net/npm/brewfyi-embed@1/dist/embed.min.js"></script>
<div data-brewfyi="entity" data-slug="ethiopian-yirgacheffe"></div>

Zero dependencies · Shadow DOM · 4 themes (light/dark/sepia/auto) · Widget docs

Links

License

MIT