A free, open-source dataset and API for brewery, cidery, brewpub, and bottleshop information worldwide. Built with Svelte 5, SvelteKit 2, TypeScript, and TailwindCSS 4.
Open Brewery DB is a community-driven project that maintains a comprehensive dataset of breweries and related establishments. Our mission is to provide free, public access to brewery information for developers, data analysts, and beer enthusiasts worldwide.
Clone the repository
git clone https://github.com/openbrewery/openbrewerydb-sveltekit.git
cd openbrewerydb-sveltekit
Install dependencies
npm install
Start development server
npm run dev
The application will be available at http://localhost:5173
Optional: Open in browser
npm run dev -- --open
npm run dev - Start development servernpm run build - Build for productionnpm run preview - Preview production buildnpm run check - Run TypeScript checksnpm run lint - Run linting and formatting checksnpm run format - Format code with Prettiernpm run test:e2e - Run Playwright E2E testsnpm run authors:build - Build GitHub authors datanpm run changelogs:build - Build changelog datasrc/
āāā lib/ # Shared utilities and components
ā āāā components/ # Reusable Svelte components
ā āāā data/ # Static data and generated content
ā āāā types.ts # TypeScript type definitions
āāā routes/ # SvelteKit pages and API routes
āāā layouts/ # Page layouts
āāā styles/ # Global styles and TailwindCSS
This project is configured to deploy on Cloudflare using the @sveltejs/adapter-cloudflare. The build process automatically optimizes for Cloudflare's edge network.
Create a .env file for local development:
# Sentry (optional)
SENTRY_AUTH_TOKEN=your_sentry_token
# GitHub (for build scripts)
GITHUB_TOKEN=your_github_token
Complete API documentation is available at /documentation in the application or online at openbrewerydb.org/documentation.
GET /breweries - List all breweries with paginationGET /breweries/{id} - Get specific brewery detailsGET /breweries/search - Search breweries by queryWe welcome contributions! Please see our Contributing Guide for details on:
This project is licensed under the MIT License - see the LICENSE file for details.
Open Brewery DB is grateful for the support of our sponsors, particularly Sentry for providing application monitoring services.