Walks from the beer through its types, brewery and fermentation, and scores every beer it reaches by how much they share and how close the strength is.
Nearest neighbours in “taste space” (style, fermentation and strength), found with relate’s built-in vector index.
Neighbourhood the beer, what it connects to, and who else connects there. Top picks from the active list have a red outline. Click a beer to jump to it.
Sommelier agent Claude, called directly from this page, with tools that query the relate graph in your browser. The graph is its knowledge and its memory.
Your key goes only from this browser to api.anthropic.com. There is no server in between. It stays in memory unless you tick “remember”, which keeps it in this browser’s local storage. Calls are billed to your account.
Agent memory what the agent recorded about , stored as nodes and relationships in OPFS
Earlier questions
Your ratings
Because you liked… graph walk from your likes, minus your dislikes
Your taste centre average of your liked beers’ vectors, then a vector search
Drinkers like you what drinkers who share your likes also liked
Shortest path through breweries, beer types and alcohol percentages
Cypher console any Cypher 25 query, straight into the engine in your browser
Dataset
Fetches the current wikitext of Lijst van Belgische bieren from the Wikipedia API, parses it in the browser and reloads the graph. Ratings and agent memory are kept.
Storage & engine
Wiping deletes the graph, all ratings and the agent’s memory from this browser. The next load imports the bundled beers.json again.
Backup & restore
The download is relate’s own store from this browser (the OPFS files, gzipped into one .relate file), with the graph, your ratings and the sommelier’s memory. Upload it later, in another browser or after clearing site data, to continue where you left off. Uploading replaces the graph in this browser.
Node counts
Why a beer graph, in a browser?
I make no excuses: I am a salesperson, and for about ten years I sold graphs at Neo4j. And one of my favourite ways to explain what a graph database actually does was always... beer. Belgian beer, to be precise.
Back in 2013 I took the Wikipedia list of Belgian beers and loaded it into a very simple graph: beers, breweries, beer types and alcohol percentages. That's it. And yet - it turned out to be a wonderful way to show people how connected data lets you spot patterns that you would never see in a table. I have shown that demo to so many people over the years, and even told the story on stage at Monki Gras (that's the video on this page).
The BeerGraph kept coming back, too: in Neo4j Bloom, with the security features of Neo4j 4.0, and in yet another way of importing that Wikipedia page. All of those articles are listed below.
So when Neo4j launched relate - an embedded graph database for agents that even runs inside your browser as WebAssembly - I really could not resist. How hard could it be to put the whole BeerGraph in a browser tab? This page is the result: no server, no install, just relate running in a Web Worker and keeping its data in your browser's own storage. On top of the classic graph recommendations I added vector similarity, a path finder and a little sommelier agent that uses the graph as its memory. I built it together with Claude Code for the Relate by Neo4j Hackathon, and it was tons of fun.
And then I couldn't stop: the same recipe also works for books. The ReadGraph turns ten years of my Goodreads library into a graph, with a librarian agent instead of a sommelier. Both live behind their own door on graphs.bruggen.com.
Hope you enjoy it as much as I did - and please, drink responsibly!
Cheers
Rik
The talk that started it Monki Gras 2013: “Neo4j sales, beer, graph - 3 related crafts”, by RedMonk Tech Events
The beergraph articles from my blog, oldest first
- Fun with beer - and graphsJanuary 2013 · the original (some of the old videos no longer play)
- Part 1/2: graphs are bloom-ingMay 2018 · the BeerGraph in Neo4j Bloom
- Part 2/2: graphs are bloom-ingMay 2018
- Graphs are blooming - again!May 2018
- Securing my beergraph with Neo4j 4.0January 2020
- ReBeerGraph: importing the Belgian beergraph straight from a Wikipedia HTML pageOctober 2021
- Scraping Wikipedia and loading it into a GraphGiston neo4j.com
All of them are also on the beergraph tag of my blog.
Find me online
- personal.bruggen.commy website: blog, podcast, books and projects
- LinkedInlinkedin.com/in/rikvanbruggen
- ReadGraphthe sister project: ten years of reading as a graph, on relate
- graphs.bruggen.comboth graphs, two doors
- This project on GitHubsource code, setup instructions and changelog (Apache-2.0)