:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
Queries
Query/- Generic component that routes internally to the right node.
<Query query={} setQuery={} />
QueryEditor/- Generic JSON editor
<QueryEditor query={} setQuery={} />
nodes/- The folders in this directory (
EventsNode/,DataTable/, etc) contain React components that display queries of that specifickind. - Basically everything in
nodes/DataTable/expects your query to be of kindDataTable. - The top level component,
DataTable.tsx, always exports the componentDataTable({ query, setQuery }) - There are various sub-components as needed, e.g.
<AutoLoad />,<ColumnConfigurator />. Some of them depend on a logic, likelydataNodeLogic, being in aBindLogiccontext, so read the source.
- The folders in this directory (
examples.ts- Various examples used in storybookquery.ts- make API calls to fetch data for any queryschema.json- JSON schema, used for query editor, built withpnpm -w schema:buildschema.ts- typescript types for all query nodesutils.ts- type narrowing utilities