• Stars
    star
    402
  • Rank 107,380 (Top 3 %)
  • Language
    TypeScript
  • License
    Other
  • Created over 4 years ago
  • Updated 2 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Official docs, website, and handbook for PostHog.

posthoglogo

PostHog.com - Website, docs, blog, and handbook

PRs Welcome GitHub contributors Join Slack Community GitHub commit activity GitHub closed pull requests

Support - Roadmap - Open an issue - Style guide

This is the repository for the PostHog website. It contains:

  • All of our written content and visuals including product features, manuals, docs, blogs, case studies, tutorials, and the handbook
  • Features like questions and answers (using Squeak!), job listings (using Ashby), pricing calculator, roadmap, API docs, and more
  • All the components, templates, logic, and styling to make this work, look pretty, and spark joy

Table of contents

Quick start

  1. Pre-installation

    Install Node and Yarn.

    npm install --global yarn
  2. Start developing

    Clone the repo then navigate into your new siteโ€™s directory, install the site dependencies, and start it up.

    cd posthog.com/
    yarn
    yarn start

    Tip: Seeing a discrepancy between local development and staging/production? Preview the production build locally by running gatsby build && gatsby serve

  3. Open the source code and start editing!

    Your site is now running at http://localhost:8001!

    Note: You'll also see a second link: http://localhost:8001/___graphql. This is a tool you can use to experiment with querying your data. Learn more about using this tool in the Gatsby tutorial.

See full instructions on developing PostHog.com locally in our manual.

Advanced setup

Docker

It is also possible to use Docker to run posthog.com locally with this command:

docker run -it --rm \
    -w /app -v "$PWD":/app \
    -p 8000-8001:8000-8001 \
    -e INTERNAL_STATUS_PORT=8001 \
    node:14-slim \
    sh -c 'yarn && yarn start'

Debugging errors on start

  1. Pull the latest changes from master
  2. Run gatsby clean && yarn start or delete node_modules and .cache
  3. Check builds are passing in deployment to Vercel

Working on /docs/api?

  1. Create a personal API key in PostHog
  2. export POSTHOG_APP_API_KEY=key
  3. yarn start

Want Ashby job listings or GitHub contributors to load?

Youโ€™ll need to set environment variables for these. See (private) instructions for this.

Contributing

We <3 contributions big and small. In priority order (although everything is appreciated) with the most helpful first:

More Repositories

1

posthog

๐Ÿฆ” PostHog provides open-source product analytics, session recording, feature flagging and A/B testing that you can self-host.
Python
21,547
star
2

posthog-js

Send usage data from your web app or site to PostHog, with autocapture.
TypeScript
285
star
3

squeak

A Q&A widget for your docs
JavaScript
177
star
4

posthog-foss

PostHog FOSS is a read-only mirror of PostHog, with all proprietary code removed. NOTE: This repo is synced automatically from the main PostHog repo. Please raise any issues and PRs there.
TypeScript
117
star
5

drf-exceptions-hog

Standardized and easy-to-parse API error responses for Django REST Framework (DRF).
Python
62
star
6

posthog-js-lite

Reimplementation of posthog-js to be as light and modular as possible.
TypeScript
57
star
7

max-ai

Max bot deploy
Python
51
star
8

charts-clickhouse

Helm chart for deploying PostHog with ClickHouse on your K8s infrastructure
Python
44
star
9

posthog-python

Send usage data from your Python code to PostHog.
Python
32
star
10

posthog-ios

PostHog iOS SDK
Swift
31
star
11

posthog-flutter

Posthog library for your Flutter and Dart applications
Dart
25
star
12

posthog-node

Official PostHog Node library
21
star
13

posthog-android

PostHog Android integration
Java
21
star
14

posthog-react-native

PostHog React Native Integration
20
star
15

posthog-go

Official PostHog Go library
Go
20
star
16

posthog-php

PHP
16
star
17

posthog-ruby

Send usage data from your Ruby code to PostHog.
Ruby
16
star
18

posthog-plugin-geoip

Enrich PostHog events and persons with GeoIP location data
TypeScript
15
star
19

posthog-rs

Rust
15
star
20

isgoogleanalyticsillegal.com

JavaScript
15
star
21

sidecar

A chrome extension that shows your users' data in any other SaaS tool
TypeScript
13
star
22

hedgehog.vc

hedgehog.vc backs open source businesses and is operated by the team behind posthog inc
12
star
23

old-charts

Official PostHog helm charts
Mustache
11
star
24

bigquery-plugin

TypeScript
8
star
25

check-package-version

Release automatically with npm package version check by PostHog
TypeScript
8
star
26

deployment

Various configs to deploy posthog
Shell
8
star
27

plugin-server

Service to process and save PostHog events, supporting JS/TS plugins at that
TypeScript
8
star
28

posthog-react-rrweb-player

TypeScript
7
star
29

notification-bar-app

TypeScript
7
star
30

posthog-plugin-migrator3000

Migrate your events to a new PostHog instance.
TypeScript
7
star
31

posthog-cloud

Internal scripts for PostHog multi-tenancy environment
Python
7
star
32

github-star-sync-plugin

Sync Github Stars to PostHog
JavaScript
6
star
33

posthog-docusaurus

๐Ÿฆ” PostHog plugin for Docusaurus v2
JavaScript
6
star
34

posthog-segment

๐Ÿงฉ PostHog<>Segment integration
JavaScript
6
star
35

stripe-plugin

Get customer and invoice data from Stripe into PostHog.
TypeScript
6
star
36

posthog-plugin-starter-kit

A quick PostHog plugin starting point
JavaScript
6
star
37

whereintheworld

Python
5
star
38

meta

This is a place to discuss non-product issues in public.
5
star
39

react-cmd

โŒจ๏ธ Extensive React command palette, made at PostHog
TypeScript
5
star
40

posthog-zapier

โšก๏ธ PostHog<>Zapier integration
TypeScript
5
star
41

hog-rs

๐Ÿฆ” Rust services for the PostHog platform.
Rust
5
star
42

plugin-scaffold

PostHog Plugin TypeScript Types
TypeScript
4
star
43

downsampling-plugin

Basic plugin to limit quantity of events coming in
JavaScript
4
star
44

snowflake-export-plugin

PostHog Snowflake Export Plugin
TypeScript
4
star
45

feedback-app

TypeScript
4
star
46

posthog-java

Official PostHog java library
Java
4
star
47

posthog-github-action

JavaScript
3
star
48

capture

Dockerfile
3
star
49

status

Status page for PostHog services
3
star
50

s3-export-plugin

PostHog S3 Export Plugin
TypeScript
3
star
51

handbook

ARCHIVE (see Posthog.com repo instead): The PostHog handbook
3
star
52

posthog-cli

CLI for PostHog
TypeScript
3
star
53

posthog-migrate-meta

Migrate metadata from one organization to another
TypeScript
3
star
54

squeak-react

JavaScript
3
star
55

customerio-plugin

Send event data and emails into Customer.io.
TypeScript
3
star
56

twitter-followers-plugin

Get your Twitter follower numbers in PostHog daily without signing up to the Twitter API.
JavaScript
2
star
57

postgres-plugin

Export PostHog events to a PostgreSQL instance on ingestion.
TypeScript
2
star
58

flatten-properties-plugin

Flatten event properties to easily access them in filters.
JavaScript
2
star
59

posthog-hello-world-plugin

Exemplary PostHog plugin
JavaScript
2
star
60

event-sequence-timer-plugin

Time the time taken for a user to perform Event B after performing Event A.
TypeScript
2
star
61

squeak-strapi

TypeScript
2
star
62

github-release-tracking-plugin

Get release annotations in PostHog.
TypeScript
2
star
63

concept-pipeline-ui

TypeScript
2
star
64

posthog-zendesk-plugin

JavaScript
2
star
65

yc-badge

Sport your Y Combinator affiliation on your website with this nifty badge
2
star
66

plugin-repository

Plugins for PostHog
2
star
67

user-interview-app

TypeScript
2
star
68

posthog-kinesis-plugin

TypeScript
2
star
69

cookie-banner

Cookie banner which you can use with PostHog and other tools
JavaScript
2
star
70

docs

ARCHIVE - PostHog documentation. Replaced with posthog.com repo
2
star
71

schema-enforcer-plugin

Enforce event schemas at ingestion for PostHog events.
TypeScript
2
star
72

synch

Go
2
star
73

integrations-repository

A repository for hosting a list of PostHog integrations, both official and community ones.
1
star
74

maxmind-plugin

Ingest GeoIP data via MaxMind into PostHog
TypeScript
1
star
75

make-some-noise-plugin

Generate a random event per minute, useful locally while developing
TypeScript
1
star
76

simple-scheduler-plugin

Calls an external API at the set interval, and remembers the last time it was called
JavaScript
1
star
77

posthog-databricks-plugin

JavaScript
1
star
78

posthog-update

Server to let you know when there's a new version of PostHog
HTML
1
star
79

template-typescript

๐ŸŸฆ The base for any good TypeScript package
JavaScript
1
star
80

storybook-build

Built version of the PostHog Storybook
1
star
81

taxonomy-plugin

Standardize your event names into a single pattern.
JavaScript
1
star
82

templates-repository

A repository for holding dashboard templates, both official and community ones
JavaScript
1
star
83

posthog-js-examples

Examples of PostHog with JavaScript and Node.js
JavaScript
1
star
84

currency-normalization-plugin

Convert all amounts to a base currency
JavaScript
1
star
85

calendly-app

TypeScript
1
star
86

mailboxlayer-plugin

Get email scores for PostHog users using the Mailboxlayer API.
JavaScript
1
star
87

posthog-prompts

JavaScript
1
star
88

hal-12000

๐Ÿค– Friendly neighborhood AI
TypeScript
1
star
89

ph

DEPRECATED - Command-line utility to install, run, and manage PostHog.
TypeScript
1
star
90

metabase-clickhouse

A metabase docker image with the Clickhouse driver built-in
Dockerfile
1
star
91

posthog-automatic-cohorts-plugin

Automatic cohort creation based on user properties.
TypeScript
1
star
92

internallinker

Automatically create internal links between your markdown files.
Python
1
star
93

posthog-gcs-plugin

Export events to GCS on ingestion.
TypeScript
1
star
94

gitlab-release-tracking-plugin

JavaScript
1
star
95

posthog-redshift-import-plugin

Import data from Redshift into PostHog
TypeScript
1
star
96

session-tracker-plugin

Advanced session tracking for PostHog
TypeScript
1
star
97

posthog-vscode-extension

1
star
98

posthog-orbit-love-plugin

JavaScript
1
star
99

hubspot-plugin

Send contact data to Hubspot on PostHog identify events.
TypeScript
1
star
100

posthog-intercom-plugin

TypeScript
1
star