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

brewcompetition-cli

v1.0.1

Published

Brew Competition - CLI to fetch medal earners and various homebrew competition metadata.

Readme

Brew Competition CLI

latest release Build status License: MIT Node.js Version Contributors

A command-line tool for fetching medal winners and competition metadata from multiple homebrew competition management platforms.

Table of Contents

Features

  • 🏆 Extract medal winners from competition results
  • 📊 Support for multiple competition platforms (BCOEM, Reggie, BAP)
  • 🔍 Filter results by brewer names or club
  • 📁 Batch processing with config files
  • 📤 Export to JSON or CSV formats
  • 🎯 Automatic platform detection based on URL

Supported Platforms

| Platform | Status | Features | |----------|--------|----------| | BCOEM | ✅ Full support | Medal results, competition metadata | | Reggie | ✅ Results only | Medal results parsing | | BAP | ✅ Results only | Medal results parsing via API |

The CLI automatically detects which platform to use based on the competition URL.

Installation

npm install -g brewcompetition-cli

Or install from source:

git clone https://github.com/tmack8001/brewcompetition-cli.git
cd brewcompetition-cli
npm install
npm run build
npm link

Quick Start

Fetch all medal winners from a competition

brewcompetition medals https://reggiebeer.com/ReggieWeb.php?Web=1000882

Filter by specific brewers

brewcompetition medals <url> --brewers "John Doe,Jane Smith"

Filter by club

brewcompetition medals <url> --club "My Homebrew Club"

Export to CSV

brewcompetition medals <url> --output csv > results.csv

Usage

Commands

medals

Extract medal winners from competition results.

brewcompetition medals <url> [options]

Options:

  • -b, --brewers <names> - Filter by specific brewer names (comma-separated)
  • -c, --club <name> - Filter by club name
  • -o, --output <format> - Output format: json (default) or csv
  • -f, --file <path> - Use a config file for batch processing
  • -h, --help - Show help

Examples:

# BCOEM competition
brewcompetition medals https://example-bcoem.com/results

# Reggie competition
brewcompetition medals https://reggiebeer.com/ReggieWeb.php?Web=1000882

# BAP competition
brewcompetition medals https://beerawardsplatform.com/2025-ash-copper-state-cup/results

# With filters
brewcompetition medals <url> --brewers "John Doe" --club "Homebrew Club" --output csv

competitions

Fetch competition metadata (BCOEM only).

brewcompetition competitions <url>

Returns information about registration dates, entry deadlines, drop-off windows, and awards ceremony details.

Config File Usage

For tracking multiple competitions, create a JSON config file:

{
  "brewers": ["John Doe", "Jane Smith"],
  "club": "My Homebrew Club",
  "competitions": [
    "https://example-bcoem.com/results",
    "https://reggiebeer.com/ReggieWeb.php?Web=1000882",
    "https://beerawardsplatform.com/2025-ash-copper-state-cup/results"
  ]
}

Then run:

brewcompetition medals --file my-competitions.json --output json

Output Formats

JSON (default)

{
  "01: Light Lager": [
    {
      "Place": "1st",
      "Entry Count": 12,
      "Brewer": "John Doe",
      "Entry Name": "Crisp Lager",
      "Style": "1A American Light Lager",
      "Club": "Homebrew Club"
    }
  ]
}

CSV

Table / Category|Place|Entry Count|Brewer|Entry Name|Style|Club
01: Light Lager|1st|12|John Doe|Crisp Lager|1A American Light Lager|Homebrew Club

Understanding Entry Count

The Entry Count column shows the total number of entries in each category, helping you understand how competitive each category was:

  • High competition (30+ entries): Winning here is a significant achievement
  • Medium competition (10-29 entries): Solid competition level
  • Low competition (1-9 entries): Smaller category

This information is automatically extracted from all supported platforms and included in both JSON and CSV outputs.

Platform Detection

The tool automatically detects the platform based on the URL hostname:

  • URLs containing reggiebeer.com → Reggie parser
  • URLs containing beerawardsplatform.com → BAP parser
  • All other URLs → BCOEM parser (default)

Advanced Usage

Pipe to jq for JSON processing

# Get only gold medals
brewcompetition medals <url> --output json | jq '.[] | .[] | select(.Place == "1st")'

# Count total medals
brewcompetition medals <url> --output json | jq '[.[] | .[]] | length'

Process multiple competitions

for url in \
  "https://reggiebeer.com/ReggieWeb.php?Web=1000882" \
  "https://beerawardsplatform.com/2025-ash-copper-state-cup/results"
do
  brewcompetition medals "$url" --brewers "Your Name" --output csv >> all-results.csv
done

Architecture

The tool uses a modular parser factory pattern:

User Input → Command Layer → Parser Factory → Platform Parser → Output
  • Platform Detection: Analyzes URL hostname to determine platform
  • Parser Factory: Returns appropriate parser for detected platform
  • Platform Parsers: Each platform has its own parser implementing a common interface

See ARCHITECTURE.md for detailed architecture documentation.

Documentation

📚 Complete Documentation Index - Start here for all documentation

Quick Links

Technical Documentation

Development

Build

npm run build

Test

npm test

Lint

npm run lint

Requirements

  • Node.js >= 18.0.0
  • npm or yarn package manager

Contributing

Contributions are welcome! We'd love your help making this tool better.

Quick Start for Contributors

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Add tests
  5. Submit a Pull Request

See CONTRIBUTING.md for detailed guidelines including:

  • Development setup
  • Coding standards
  • Testing requirements
  • How to add a new platform
  • Documentation guidelines

Adding a New Platform

The tool is designed to be easily extensible. To add support for a new competition platform:

  1. Create a parser implementing the CompetitionParser interface
  2. Add platform detection logic
  3. Register the parser in the factory
  4. Add tests and documentation

See CONTRIBUTING.md for step-by-step instructions.

License

MIT

Author

Trevor Mack (@tmack8001)

Links