CoffeeTrove 0.1.0

dotnet add package CoffeeTrove --version 0.1.0
                    
NuGet\Install-Package CoffeeTrove -Version 0.1.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="CoffeeTrove" Version="0.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CoffeeTrove" Version="0.1.0" />
                    
Directory.Packages.props
<PackageReference Include="CoffeeTrove" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add CoffeeTrove --version 0.1.0
                    
#r "nuget: CoffeeTrove, 0.1.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package CoffeeTrove@0.1.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=CoffeeTrove&version=0.1.0
                    
Install as a Cake Addin
#tool nuget:?package=CoffeeTrove&version=0.1.0
                    
Install as a Cake Tool

CoffeeTrove .NET

Cafe modeling, Golden Drop scoring, brew ratio calculation, and coffee origin data for the CoffeeTrove platform. CoffeeTrove maps over 440,000 cafes worldwide with quality scores, brewing guides, and bean profiles.

Installation

dotnet add package CoffeeTrove

Quick Start

Model a cafe, compute its Golden Drop score, and calculate a brew ratio:

using CoffeeTrove;

// Build a cafe with known data points
var cafe = new Cafe(
    Name: "Blue Bottle Coffee",
    City: "San Francisco",
    Country: "United States",
    HasWebsite: true,
    HasPhone: true,
    HasHours: true,
    HasPhotos: true,
    ReviewCount: 42,
    ChainType: ChainType.Local);

// Golden Drop score factors in data completeness + independence
var score = GoldenDrop.Score(cafe);
Console.WriteLine($"{cafe.Name}: {score.Total}/100 ({score.Tier})");
// => Blue Bottle Coffee: 55/100 (Common)

Brew Ratio Calculator

Calculate water-to-coffee ratios for any brewing method with gram-level precision:

var ratio = BrewRatio.Calculate(method: BrewMethod.PourOver, coffeeGrams: 20.0);
Console.WriteLine($"{ratio.WaterMl:F0} ml water for {ratio.CoffeeGrams:F0}g coffee");
// => 320 ml water for 20g coffee

// French Press uses a coarser ratio
var french = BrewRatio.Calculate(BrewMethod.FrenchPress, coffeeGrams: 30.0);
Console.WriteLine($"{french.Ratio}:1 ratio => {french.WaterMl:F0} ml");
// => 15:1 ratio => 450 ml

Coffee Origins

Enumerate major coffee-producing origins with their regions:

foreach (var origin in Enum.GetValues<Origin>())
{
    var info = OriginInfo.Get(origin);
    Console.WriteLine($"{info.Country} ({info.Region}) - {info.AltitudeRange}");
}
// Ethiopia (Africa) - 1500-2200m
// Colombia (South America) - 1200-2000m
// ...

Scoring Tiers

The Golden Drop system assigns tiers based on total score:

Tier Score Range Description
Legendary 90-100 Exceptional completeness and reviews
Excellent 70-89 Well-documented, active cafe
Common 40-69 Basic listing with some data
Sparse 0-39 Minimal information available

API Surface

Type Description
Cafe Immutable record representing a cafe listing
GoldenDrop Scoring engine with data-completeness and independence bonuses
BrewRatio Water-to-coffee ratio calculator for 7 brewing methods
Origin / OriginInfo Enum and metadata for 12 coffee-producing origins
ChainType Global chain, local chain, or independent classification

License

MIT License. See LICENSE for details.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net8.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.0 79 3/29/2026