posthog README

The project's README from github.com/PostHog/posthog. As one markdown file: README.md.

posthoglogo

GitHub contributors PRs Welcome Docker Pulls GitHub commit activity GitHub closed issues

Docs - Community - Roadmap - Why PostHog? - Changelog - Bug reports

PostHog Demonstration

PostHog is the open source platform for building self-driving products

PostHog provides every tool you need to build a successful product, and captures all the context agents need to proactively diagnose problems, uncover opportunities, and ship fixes:

You can steer it all from Slack, web, desktop (PostHog Desktop), or your own editor via the MCP.

Best of all, all of this is free to use with a generous monthly free tier for each tool. Get started by signing up for PostHog Cloud US or PostHog Cloud EU.

Table of Contents

Getting started with PostHog

The fastest and most reliable way to get started with PostHog is signing up for free to PostHog Cloud or PostHog Cloud EU. Your first 1 million events, 5k recordings, 1M flag requests, 100k exceptions, and 1500 survey responses are free every month, after which you pay based on usage.

Self-hosting the open-source hobby deploy (Advanced)

If you want to self-host PostHog, you can deploy a hobby instance in one line on Linux with Docker (recommended 4GB memory):

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/posthog/posthog/HEAD/bin/deploy-hobby)"

Open source deployments should scale to approximately 100k events per month, after which we recommend migrating to a PostHog Cloud.

We do not provide customer support or offer guarantees for open source deployments. See our self-hosting docs, troubleshooting guide, and disclaimer for more info.

Setting up PostHog

Once you've got a PostHog instance, you can set it up by installing our JavaScript web snippet, one of our SDKs, or by using our API. You can also connect the MCP to bring PostHog into Claude Code, Cursor, or any MCP-compatible agent.

We have SDKs and libraries for popular languages and frameworks like:

Frontend Mobile Backend
JavaScript React Native Python
Next.js Android Node
React iOS PHP
Vue Flutter Ruby

Beyond this, we have docs and guides for Go, .NET/C#, Django, Angular, WordPress, Webflow, and more.

Once you've installed PostHog, see our product docs for more information on how to set up product analytics, web analytics, session replays, feature flags, experiments, error tracking, surveys, data warehouse, and more.

Learning more about PostHog

Our code isn't the only thing that's open source 😳. We also open source our company handbook which details our strategy, ways of working, and processes.

Curious about how to make the most of PostHog? We wrote a guide to winning with PostHog which walks you through the basics of measuring activation, tracking retention, and capturing revenue.

Contributing

We <3 contributions big and small:

For an overview of the codebase structure, see monorepo layout and products.

Open-source vs. paid

This repo is available under the MIT expat license, except for the ee directory (which has its license here) if applicable.

Need absolutely 💯% FOSS? Check out our posthog-foss repository, which is purged of all proprietary code and features.

The pricing for our paid plan is completely transparent and available on our pricing page.

We're hiring!

Hedgehog working on a Mission Control Center

Hey! If you're reading this, you've proven yourself as a dedicated README reader.

You might also make a great addition to our team. We're growing fast and would love for you to join us.

posthog (PostHog/posthog)

Searching Database…

40.3K ·GitHub
Что это такое?PostHog — это платформа с открытым исходным кодом для создания «самоуправляемых продуктов». В одном инструменте объединены продуктовая аналитика, веб-аналитика, записи сессий, фича-флаги, эксперименты, отслеживание ошибок, логи, опросы, хранилище данных и наблюдение за работой ИИ.
Это один инструмент или набор продуктов?Это набор связанных инструментов для разработчиков (аналитика, воспроизведение сессий, фича-флаги, эксперименты, отслеживание ошибок, логи, опросы, хранилище данных), которыми вы управляете из одной платформы. Управлять можно через Slack, веб-интерфейс, настольное приложение или MCP.
Как запустить PostHog?Быстрее всего зарегистрироваться в PostHog Cloud (США или ЕС). Для самостоятельного развёртывания есть однострочная установка версии для хобби через Docker на Linux. После этого настройте PostHog с помощью JavaScript-сниппета для веба, одного из SDK или API.
Что нужно, чтобы подключить PostHog к моему приложению?Нужен экземпляр PostHog (Cloud или развёрнутый самостоятельно) и либо JS-сниппет для веба, либо SDK для вашего языка или фреймворка (JS, Next.js, React, Vue, React Native, Android, iOS, Flutter, Python, Node, PHP, Ruby и другие — см. документацию), либо API/MCP.
В чём подвох у самостоятельного развёртывания открытой версии?Версия для хобби с открытым исходным кодом рассчитана примерно на 100 тысяч событий в месяц, а PostHog прямо заявляет, что не предоставляет поддержку клиентам и никаких гарантий для самостоятельно развёрнутых версий с открытым исходным кодом.
PostHog работает и с мобильными приложениями или только с вебом?И с тем, и с другим: есть веб-SDK на JS, а также нативные SDK для React Native, Android, iOS и Flutter, плюс серверные SDK для Python, Node, PHP и Ruby.
Что на самом деле делает «режим self-driving»?Он превращает сигналы в ваших данных о продукте (ошибки, rage-клики, неудачные запросы и т. д.) в подробные отчёты и пул-реквесты, которые вы проверяете и принимаете.
Можно ли управлять PostHog из моего агента для программирования?Да, можно подключить MCP PostHog и использовать его в Claude Code, Cursor или любом агенте или редакторе с поддержкой MCP.
PostHog бесплатный?Да, для каждого инструмента есть щедрый бесплатный тариф на месяц (например, первые 1 миллион событий, 5 тыс. записей и 1500 ответов на опросы), после которого действует оплата по использованию.
Из каких внешних инструментов PostHog может получать данные?Функция хранилища данных может синхронизировать данные из внешних сервисов, таких как Stripe и Hubspot, а конвейеры данных могут экспортировать данные в 25+ инструментов или на любой webhook.
What are similar projects?openreplay, rybbit, umami, unleash, analytics, formbricks, ToolJet, matomo
Creator
PostHog
Size
7.7 GB
Stars
40.3K
Age
6y
Commits · 90 Days