Rawbbit
Rawbbit is a self-hosted event telemetry pipeline for mobile and web games.
It helps small teams collect player events, sessions, funnels, retention signals, economy events, monetization events, and backend game-service events while keeping ownership of the raw data.
It was created for teams that want game analytics without making a proprietary vendor the center of their telemetry stack.
The same pipeline also works for web apps, mobile apps, browser surfaces, and other event-producing products, but the OSS docs are written first for game developers operating their own stack.
Game clients, web builds, mobile apps, and backend services send batched events over HTTP.
Rawbbit validates and enriches those events in the collector, buffers them through NATS JetStream, writes partitioned Parquet files to S3-compatible object storage such as SeaweedFS, loads the raw layer into ClickHouse, and exposes the ClickHouse-backed data through MCP, Metabase, agents, and direct SQL access.

Main Rawbbit path:
Producer -> Collector API -> NATS JetStream -> Raw Writer
-> S3-compatible object storage / SeaweedFS Parquet
-> scheduled dbt ingestion
-> ClickHouse analytics.events
-> MCP / Metabase / agents / users
Optional BigQuery path:
Producer -> Collector API -> NATS JetStream -> Raw Writer
-> object storage Parquet
-> BigQuery external table
-> SQLMesh base model
Storage note:
- SeaweedFS/S3-compatible storage is the preferred OSS raw-storage path
- GCS remains supported
- the BigQuery external-table path remains a supported optional downstream path, not the main architecture
Production-oriented OSS deployment is split into two provider-neutral VM
guides:
- VM one runs ingestion and raw object storage: Caddy, NATS JetStream,
collector-api, raw-writer, and SeaweedFS, with optional Dozzle log access
- VM two runs analytics and access surfaces: ClickHouse, the scheduled Rawbbit
dbt runner, the Rawbbit MCP server, Metabase, and Postgres for Metabase state,
with optional Dozzle log access
An optional third, small VM can run a Beszel monitoring hub. Beszel agents on
VM one and VM two report host, container and disk-health (SMART) metrics to it.
The boundary between the VMs is the raw Parquet layer in S3-compatible object
storage.
Table of contents
What is included
This repository contains the public game-telemetry ingestion-to-analytics path:
backend/collector-api — HTTP ingestion service for player, gameplay, product, and server events
backend/raw-writer — JetStream consumer that writes partitioned Parquet files
clickhouse/ — main analytical/query path for loading and querying raw game telemetry in ClickHouse
dbt_project/ — scheduled dbt Core ingestion from bounded Parquet windows into analytics.events
mcp-server/ — Rawbbit MCP server, MCP client setup, and combined MCP + Metabase deployment guide
- AI agents and MCP clients such as Codex, OpenCode, and OpenClaw can connect to the Rawbbit MCP server endpoint for read-only analytics exploration
metabase/ — optional standalone Metabase deployment guide
sdk/rawbbit-unity/ — copy-in Unity C# SDK source, generic game-adapter template, and Editor/PlayMode test sources; Unity compilation and Android/iOS player/device validation are pending
sdk/rawbbit-browser-game/ — self-contained browser-game JavaScript SDK source with a durable queue, consent integration guide, tests, and a copy-in game-adapter template. The source builds without another SDK folder; the separate @rawbbit/browser-game npm package remains private and unpublished.
sqlmesh_project/ — optional SQLMesh project for the BigQuery external-table path
plugins/rawbbit-game-events/ — coding-agent plugins for Claude and Codex that inspect a Unity or browser-JavaScript game, propose a reviewable event map, and integrate approved events with the bundled SDKs. See docs/agent-plugins.md for downloads and install steps.
Architecture
The system is built around a few explicit boundaries: