You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+35-12Lines changed: 35 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,18 +2,34 @@
2
2
3
3
<imgsrc="hog.png"alt="Hogflare"width="220">
4
4
5
-
Hogflare is a Cloudflare Workers ingestion layer for PostHog SDKs. It supports PostHog-style ingestion, stateful persons and groups, SDK feature flags, and a read-only session replay explorer, then streams events and person snapshots into Cloudflare Pipelines so data lands in R2 as Iceberg/Parquet.
5
+
Hogflare is a warehouse-native PostHog alternative that runs on Cloudflare. Point existing PostHog SDKs at a Worker to capture events, resolve persons and groups, evaluate feature flags, ingest session replay, and write queryable product analytics data to R2 Data Catalog Iceberg tables.
6
+
7
+
It is built for teams that want PostHog-compatible analytics primitives in their own Cloudflare lakehouse, without operating the full PostHog stack.
- Stateful persons and groups: `$set`, `$set_once`, `$unset`, aliasing, group properties, group slots, and append-only person snapshots
15
+
- Feature flags and remote config: `/array/:token/config`, `/flags`, and `/decide`
16
+
- Session replay: PostHog replay ingestion plus an R2 SQL-backed explorer for sessions, event search, funnels, friction signals, and person journeys
17
+
- Warehouse output: event rows and person snapshots in R2 Data Catalog-backed Iceberg/Parquet tables
18
+
- Cloudflare-native enrichment: IP, geo, colo, ASN, and related request metadata
19
+
- Backfill importer for existing PostHog persons, groups, and historical events
20
+
21
+
## Semantic Model
22
+
23
+
Hogflare includes semantic model definitions over the R2/Iceberg tables so teams can query product analytics directly from DuckDB, R2 SQL, or BI tooling:
- Persons and groups: `$set`, `$set_once`, `$unset`, aliasing, group properties, and group slots
13
-
- SDK config and feature flags: `/array/:token/config`, `/flags`, and `/decide`
14
-
- Session replay ingestion and read-only replay explorer backed by R2 SQL over Iceberg rows
15
-
- Request enrichment with Cloudflare IP and geo fields
16
-
- Queryable event and person snapshots in R2 Data Catalog-backed Iceberg tables
32
+
Hogflare is not a full PostHog clone. It does not try to ship PostHog's complete app surface, plugin system, cohort engine, or ClickHouse-backed query layer. The focus is PostHog SDK compatibility, product analytics data ownership, replay review, and a practical semantic layer on Cloudflare-managed storage.
17
33
18
34
## Docs
19
35
@@ -22,15 +38,19 @@ Hogflare is a Cloudflare Workers ingestion layer for PostHog SDKs. It supports P
PostHog is a nice-to-use web and product analytics platform. Self-hosting PostHog is prohibitively complex, so most users rely on the cloud offering. Hogflare is an alternative for cost-conscious data teams and businesses that want a low-maintenance way to ingest web and product analytics directly into a managed data lake.
82
+
PostHog is a nice-to-use web and product analytics platform. Self-hosting PostHog is prohibitively complex, so most users rely on the cloud offering. Hogflare is for cost-conscious data teams and businesses that want product analytics, session replay, feature flags, identity resolution, and modeled warehouse data in infrastructure they control.
60
83
61
84
A [hobby deployment of PostHog](https://github.com/PostHog/posthog/blob/master/docker-compose.hobby.yml) includes postgres, redis, redis7, clickhouse, zookeeper, kafka, worker, web, plugins, proxy, objectstorage, seaweedfs, asyncmigrationscheck, temporal, elasticsearch, temporal-admin-tools, temporal-ui, temporal-django-worker, cyclotron-janitor, capture, replay-capture, property-defs-rs, livestream, feature-flags, and cymbal.
62
85
63
-
PostHog does much more than this package, but some teams only need the warehouse-first basics.
86
+
PostHog does much more than Hogflare, but many teams do not need to run PostHog's entire application stack to get useful web and product analytics. Hogflare keeps the SDK integration familiar while making Cloudflare Pipelines, R2 Data Catalog, and Iceberg the system of record.
64
87
65
-
## Replay Demo
88
+
## Local Replay Demo
66
89
67
-
The branch includes a local replay fixture that makes the explorer usable without Cloudflare credentials:
90
+
The repo includes a local replay fixture that makes the explorer usable without Cloudflare credentials:
68
91
69
92
```bash
70
93
REPLAY_DEMO_PORT=4666 bun scripts/replay_demo_stub.mjs
0 commit comments