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

whiskeyfyi-embed

v1.1.2

Published

Embed WhiskeyFYI whiskey widgets — expressions, distilleries, flavor radar, cask types. Zero dependencies, Shadow DOM, 4 themes.

Readme

whiskeyfyi-embed

npm License: MIT Zero Dependencies Size

Embed WhiskeyFYI beverage widgets — whiskey expressions, recipes, glossary terms, and interactive tools — on any website. 9 widget types, zero dependencies, Shadow DOM style isolation, 4 built-in themes (light, dark, sepia, auto), and live data from the WhiskeyFYI database.

Every widget includes a "Powered by WhiskeyFYI" backlink directing readers to the full beverage reference.

Try the interactive widget builder at widget.whiskeyfyi.com

Quick Start

<!-- Place widget div where you want it to appear -->
<div data-whiskeyfyi="recipe" data-slug="expressions" data-theme="light"></div>

<!-- Load the embed script once, anywhere on the page -->
<script src="https://cdn.jsdelivr.net/npm/whiskeyfyi-embed@1/dist/embed.min.js"></script>

That's it. The widget fetches data from the WhiskeyFYI API and renders with full style isolation.

Widget Types

| Type | Usage | Description | |------|-------|-------------| | recipe | <div data-whiskeyfyi="recipe" data-slug="..."></div> | Recipe/entity card — ingredients, technique, ABV, glass type | | compare | <div data-whiskeyfyi="compare" data-slug="..."></div> | Side-by-side comparison of beverages or styles | | glossary | <div data-whiskeyfyi="glossary" data-slug="..."></div> | Glossary term definition with cross-references | | faq | <div data-whiskeyfyi="faq" data-slug="..."></div> | FAQ accordion for common beverage questions | | guide | <div data-whiskeyfyi="guide" data-slug="..."></div> | Tasting, brewing, or pairing guide summary | | ingredient | <div data-whiskeyfyi="ingredient" data-slug="..."></div> | Ingredient/variety card — spirit, grape, hop, coffee origin | | pairing | <div data-whiskeyfyi="pairing" data-slug="..."></div> | Food pairing suggestions — "What goes with...?" | | search | <div data-whiskeyfyi="search" data-slug="..."></div> | Search box linking to the full beverage database | | flavor-radar | <div data-whiskeyfyi="flavor-radar" data-slug="..."></div> | SVG 5D whiskey flavor radar — smoky, fruity, spicy, sweet, woody |

Widget Options

| Attribute | Values | Default | Description | |-----------|--------|---------|-------------| | data-whiskeyfyi | recipe, compare, glossary, faq, guide, ingredient, pairing, search, [tools] | required | Widget type | | data-slug | e.g. "expressions" | — | Entity slug from the WhiskeyFYI database | | data-theme | light, dark, sepia, auto | light | Visual theme (auto follows OS preference) | | data-style | modern, classic | modern | Widget design style | | data-size | default, compact, large | default | Widget size | | data-placeholder | any string | "Search Whiskey Expressions..." | Search box placeholder |

Themes

<!-- Light (default) -->
<div data-whiskeyfyi="recipe" data-slug="expressions" data-theme="light"></div>

<!-- Dark -->
<div data-whiskeyfyi="recipe" data-slug="expressions" data-theme="dark"></div>

<!-- Sepia -->
<div data-whiskeyfyi="recipe" data-slug="expressions" data-theme="sepia"></div>

<!-- Auto — follows OS dark/light preference -->
<div data-whiskeyfyi="recipe" data-slug="expressions" data-theme="auto"></div>

Web Components (Custom Elements)

As an alternative to data-* attributes, you can use native HTML custom elements:

<!-- Custom element form -->
<whiskeyfyi-recipe slug="expressions" theme="light"></whiskeyfyi-recipe>
<whiskeyfyi-compare slugs="expressions,other-slug"></whiskeyfyi-compare>
<whiskeyfyi-search placeholder="Search Whiskey Expressions..."></whiskeyfyi-search>

<script src="https://cdn.jsdelivr.net/npm/whiskeyfyi-embed@1/dist/embed.min.js"></script>

Use style-variant (not style) to avoid conflicts with the HTML reserved style attribute.

Examples

Recipe Card

<div data-whiskeyfyi="recipe" data-slug="expressions" data-theme="light"></div>
<script src="https://cdn.jsdelivr.net/npm/whiskeyfyi-embed@1/dist/embed.min.js"></script>

Side-by-Side Comparison

<div data-whiskeyfyi="compare" data-slugs="expressions,other-slug"></div>
<script src="https://cdn.jsdelivr.net/npm/whiskeyfyi-embed@1/dist/embed.min.js"></script>

Search Box

<div data-whiskeyfyi="search" data-placeholder="Search Whiskey Expressions..."></div>
<script src="https://cdn.jsdelivr.net/npm/whiskeyfyi-embed@1/dist/embed.min.js"></script>

Glossary Term

<div data-whiskeyfyi="glossary" data-slug="example-term" data-theme="light"></div>
<script src="https://cdn.jsdelivr.net/npm/whiskeyfyi-embed@1/dist/embed.min.js"></script>

CDN Options

jsDelivr (recommended — global CDN, auto-updates with npm)

<script src="https://cdn.jsdelivr.net/npm/whiskeyfyi-embed@1/dist/embed.min.js"></script>

Specific version (production stability)

<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/embed.min.js"></script>

npm (for bundlers)

npm install whiskeyfyi-embed
import 'whiskeyfyi-embed';

Technical Details

  • Shadow DOM: Complete style isolation — no CSS conflicts with your site
  • Zero dependencies: No jQuery, React, or any external library
  • Geist Sans: Body text uses Geist Sans for a clean, modern look
  • System fonts: Fallback to system-ui — no extra font requests
  • CORS: WhiskeyFYI API has CORS enabled for all origins
  • MutationObserver: Works with dynamically added elements (SPAs)
  • IntersectionObserver: Lazy loading — widgets only fetch when entering viewport (200px margin)
  • Bundle size: ~10-16KB gzipped (per-site build — only includes tools available on WhiskeyFYI)

Learn More About Whiskey Expressions

Visit whiskeyfyi.com — WhiskeyFYI is a comprehensive whiskey expressions reference with recipes, tasting notes, interactive tools, and beverage guides.

Beverage FYI Family

Part of FYIPedia — open-source developer tools ecosystem. Beverage FYI covers world beverages — cocktails, wine, beer, whiskey, sake, tea, and coffee.

| Site | Domain | Focus | Package | |------|--------|-------|---------| | CocktailFYI | cocktailfyi.com | 636 cocktails, ABV, calories, flavor profiles, glass types | npm | | VinoFYI | vinofyi.com | Wines, grapes, regions, wineries, food pairings | npm | | BeerFYI | beerfyi.com | 113 beer styles, hops, malts, yeast, BJCP guide | npm | | BrewFYI | brewfyi.com | 72 coffee varieties, roasting, 21 brew methods | npm | | WhiskeyFYI | whiskeyfyi.com | 2,200+ whiskey expressions, distilleries, regions | npm | | TeaFYI | teafyi.com | 60+ tea varieties, teaware, brewing guides | npm | | NihonshuFYI | nihonshufyi.com | 80 sake, rice varieties, 50 breweries | npm |

License

MIT — see LICENSE.

Built with care by FYIPedia.