npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@fyipedia/beerfyi

v0.1.0

Published

TypeScript API client for BeerFYI -- beer styles, hops, malts, yeast, and BJCP classifications. Zero dependencies.

Readme

beerfyi

npm TypeScript License: MIT Zero Dependencies

TypeScript API client for BeerFYI -- the complete beer style reference with 112 BJCP-classified beer styles, 82 hop varieties, 41 malts, 29 yeast strains, and 150 expert guides. Search styles, ingredients, compare beer profiles, and explore brewing science through a typed REST API. Zero dependencies, uses native fetch.

Explore beer at beerfyi.com -- Styles | Hops | Malts | API Docs

Table of Contents

Install

npm install @fyipedia/beerfyi

Works in Node.js, Deno, Bun, and browsers (ESM).

Quick Start

import { BeerFYI } from "@fyipedia/beerfyi";

const api = new BeerFYI();

// Search beer styles, hops, malts, yeast, glossary terms
const results = await api.search("ipa");
console.log(results.total);

// Get beer style detail with BJCP parameters
const style = await api.style("new-england-ipa");
console.log(style.abv_min, style.abv_max); // 6.0 9.0
console.log(style.ibu_min, style.ibu_max); // 25 60

// Get hop variety detail
const hop = await api.hop("citra");
console.log(hop.aroma_descriptors); // ["citrus", "tropical", "grapefruit"]

// Compare two styles
const comparison = await api.compare("west-coast-ipa", "new-england-ipa");

// Random beer style
const random = await api.random();

What You Can Do

Beer Style Categories

Beer styles follow the Beer Judge Certification Program (BJCP) guidelines -- the global standard for beer style classification. Each style has defined parameters for appearance, aroma, flavor, and mouthfeel:

| Category | Description | Notable Styles | |----------|-------------|----------------| | Ale | Top-fermented, warm fermentation (15-24C) | Pale Ale, IPA, Stout, Porter | | Lager | Bottom-fermented, cold conditioning (7-13C) | Pilsner, Helles, Bock, Dunkel | | Wheat | Significant wheat malt proportion (30-70%) | Hefeweizen, Witbier | | IPA | Hop-forward, American craft innovation | West Coast, NEIPA, Double IPA | | Sour | Intentional acidity from wild yeast/bacteria | Lambic, Gose, Flanders Red | | Belgian | Complex yeast character, phenols, esters | Dubbel, Tripel, Saison |

Learn more: Browse 112 Beer Styles -- Style Comparison

Hop Varieties

82 hop varieties with alpha acid percentages, aroma descriptors, and recommended beer styles. Hops provide bitterness, floral/citrus/pine aromas, and act as a natural preservative. Major growing regions include Yakima Valley, Hallertau, Kent, Saaz, and Nelson.

Learn more: Explore 82 Hop Varieties

Malts and Grains

41 malts covering base malts (Pale, Pilsner, Munich), specialty malts (Crystal, Chocolate, Black Patent), and adjuncts (wheat, oats, rye). Temperature and duration of kilning determine color (2-450 SRM) and flavor.

Learn more: Browse 41 Malts

Key Brewing Metrics

| Metric | Abbreviation | Description | |--------|-------------|-------------| | International Bitterness Units | IBU | Hop bitterness (0-120+) | | Standard Reference Method | SRM | Beer color (1=pale, 40+=black) | | Alcohol By Volume | ABV | Alcohol content percentage | | Original Gravity | OG | Sugar before fermentation | | Attenuation | % | Sugar converted to alcohol |

API Reference

| Method | Description | |--------|-------------| | search(query) | Search styles, hops, malts, yeast, glossary | | glossaryTerm(slug) | Get glossary term definition | | style(slug) | Beer style detail with BJCP parameters | | hop(slug) | Hop variety detail with alpha acids | | malt(slug) | Malt detail with color, flavor | | yeast(slug) | Yeast strain detail | | brewery(slug) | Brewery detail | | compare(slugA, slugB) | Compare two beer styles | | random() | Random beer style |

TypeScript Types

import type { SearchResult, GlossaryTerm, StyleDetail, HopDetail, MaltDetail, YeastDetail, BreweryDetail, CompareResult, RandomResult } from "@fyipedia/beerfyi";

Learn More About Beer

Also Available for Python

pip install beerfyi

See the Python package on PyPI.

Beverage FYI Family

Part of the FYIPedia open-source developer tools ecosystem -- world beverages from cocktails to sake.

| Package | PyPI | npm | Description | |---------|------|-----|-------------| | cocktailfyi | PyPI | npm | 636 cocktails, ABV, calories -- cocktailfyi.com | | vinofyi | PyPI | npm | Wines, grapes, regions, food pairings -- vinofyi.com | | beerfyi | PyPI | npm | 112 beer styles, hops, malts, BJCP -- beerfyi.com | | brewfyi | PyPI | npm | 72 coffee varieties, brew methods -- brewfyi.com | | whiskeyfyi | PyPI | npm | 80 whiskey expressions, distilleries -- whiskeyfyi.com | | teafyi | PyPI | npm | 60 tea varieties, teaware -- teafyi.com | | nihonshufyi | PyPI | npm | 80 sake, rice varieties -- nihonshufyi.com |

License

MIT