beerfyi 0.1.1

Beer style guide with BJCP styles, hops, malts, and yeast — async API client for beerfyi.com.
Documentation

beerfyi

crates.io License: MIT

Beer style guide with BJCP styles, hops, malts, and yeast — API client for beerfyi.com.

Try the interactive tools at beerfyi.com

Install

cargo add beerfyi

Quick Start

use beerfyi::Client;

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

Also Available

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

Embed Widget

Embed BeerFYI widgets on any website with beerfyi-embed:

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

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

Links

License

MIT