Keploy
End-to-end API testing — generate and run tests from OpenAPI, curl, Postman, or real user traffic.
KEkeploy/keploy20k近 7 天新增 69 个 star
Query events, funnels, retention and profiles in Pug product analytics, and build dashboards.
Pug is an open-source product analytics platform. Capture events, identify the people behind them, and explore behavior through funnels, retention, trends, segmentation, and user-flow analysis, all surfaced on customizable dashboards.
Built in Go on PostgreSQL, ClickHouse, and NATS, with SDKs for web, mobile, and server:
Web |
iOS |
Android |
Flutter |
Node.js |
Go |
Ruby |
Overview: a web-analytics view auto-built from your events, with the previous period alongside.
Breakdowns: pageviews by country, plus locations, devices, and events; click any value to filter the whole view.
Live view: every visitor on a live world map; click one to fly to them and see the page, device, and profile behind it.
Events: every raw event as it lands, with its location, platform, properties, and the person behind it.
Dashboards: compose insight and markdown tiles on a time-windowed grid.
Insights: trends, filters, and breakdowns; here product views split by country.
Funnels: step-by-step conversion; here product view to purchase.
Profiles: the person behind the events, with traits, sessions, and activity.
Send events from your website, apps, and servers. Setup for each is in the SDK docs.
| SDK | Package |
|---|---|
| Web: any website, React, Next.js, Vue | @pug-sh/browser on npm |
| iOS: iOS, iPadOS, Mac Catalyst | Swift Package Manager |
| Android: Kotlin, callable from Java | sh.pug:android on Maven Central |
| Flutter | pug_flutter on pub.dev |
| Node.js | @pug-sh/node on npm |
| Go | github.com/pug-sh/sdk-go |
| Ruby: Ruby and Rails | pug-sh on RubyGems |
| AI crawlers: crawler visits, reported from your server | @pug-sh/crawlers on npm |
Pug serves a Model Context Protocol server, so an AI assistant can query your analytics. Sixteen tools read projects, dashboards, insights, events, sessions, and profiles, and one creates and edits dashboards.
| Environment | Endpoint |
|---|---|
| Pug Cloud | https://api.pug.sh/mcp |
| Self-hosted | /mcp on your API host, e.g. http://localhost:3000/mcp |
In Claude, add Pug from the connectors directory.
Other clients take the endpoint as a custom connector. Connect by signing in to
Pug, or with a project's private (prv_) API key in the x-api-key header. A
self-hosted server offers sign-in only once PUG_API_BASE_URL is set. Setup
steps for each client are in the MCP docs.
See the self-hosting guide. A Pug
instance is this repo's backend, published as container images on
ghcr.io/pug-sh, plus the dashboard from
pug-sh/app, served as static files.
# Build the binary into bin/pug
make build
# Start dev infrastructure (PostgreSQL, NATS, ClickHouse)
make infra
# Run migrations (Postgres, NATS, ClickHouse)
./bin/pug migrate
# Seed the demo project with events, profiles, and dashboards
# (resets the local Postgres and ClickHouse databases; see "Demo data" below)
./bin/pug seed
# Start the dev server + workers together
./bin/pug dev
docs/development.md walks through each step, including
signing in as the demo org's admin.
Environment variables are documented in .env.example.
Google and generic OIDC sign-in are documented in
docs/authentication.md, with a ready-to-copy
config.example.json.
./bin/pug seed fills a "Pug & Pals" demo project with ~6 months of history, so
dashboards, insights, and profiles have something to show. Profiles are seeded
only for users that produced events, so the data is internally consistent.
Local databases only. By default
seedmigrates Postgres and ClickHouse all the way down and back up, dropping every table, not just the demo rows. There is no confirmation prompt and no environment check: it connects to whateverDATABASE_URLandCLICKHOUSE_URLresolve to, and an already exported variable beats.env. Point it at a disposable local or demo database.
Pass --no-reset to keep the schema; it then deletes the demo project's own
events and profiles before re-seeding them, leaving other projects untouched.
Volume is tunable with --count (default 500,000 events) and --batch (default
10,000 events per insert). Run it from the repo root; it reads the same .env
as the rest of the CLI.
Two read-only accounts are seeded, plus an admin if you ask for one:
[email protected] owns the demo org and its data. It has no password.[email protected] is a viewer with no password; open /demo with
PUG_DEMO_ENABLED=true to sign in as it.[email protected] is the demo org's admin, seeded only when
PUG_DEMO_ADMIN_PASSWORD is set (16 characters to 72 bytes, no surrounding
whitespace), with that password. The address can't receive mail. Nothing logs
the password, and later runs never change it, so change it in the dashboard,
to 16 characters or more, and update the variable to match, since the seeder
restores the admin's role only while they match. A default pug seed resets
the database, though, and so recreates the admin from the current value.For a live stream of traffic instead of a one-shot backfill, set
PUG_DEMO_ENABLED=true: ./bin/pug dev then also runs the demo worker. It
backfills an empty project once, so after pug seed it skips straight to
playing new sessions out in real time. If you seed with a smaller --count,
lower PUG_DEMO_SEED_COUNT to match: the worker reads a project holding fewer
events than that as an interrupted backfill and warns rather than topping it up.
make test # run tests (race detector enabled)
make cover # run tests and write coverage.out
make lint # lint Go code
make sqlc # regenerate sqlc queries after editing SQL
make rpc # regenerate protobuf code after editing .proto files
make templ # regenerate templ email templates
Per-subsystem documentation lives in docs/architecture/
(insights, ClickHouse, profiles, ingestion, email, telemetry). Contributor
guidance and conventions are in CLAUDE.md.
Copyright (C) 2025 pug.sh contributors.
Pug is licensed under the GNU AGPL v3.0, or (at your option) any later version. Contributors sign a CLA before their first pull request is merged; see CONTRIBUTING.md.
End-to-end API testing — generate and run tests from OpenAPI, curl, Postman, or real user traffic.
KEkeploy/keploy20k近 7 天新增 69 个 star
Build, test and cache insights for Xcode, Gradle and Bazel projects, for coding agents.
TUtuist/tuist5.9k近 7 天新增 2 个 star
Open-source MCP server for LinkedIn. Give Claude and any MCP-compatible AI agent access to profiles, companies, jobs, and messages.
STstickerdaniel/linkedin-mcp-server4.4k近 7 天新增 66 个 star
MCP server for AI agents to control, debug and profile iOS simulators, Android emulators and TVs
SOsoftware-mansion/argent3.3k近 7 天新增 42 个 star