Skip to main content

imbi-plugin-posthog

The PostHog plugin for the Imbi platform, distributed as a single Python package (imbi.plugins.posthog) exposing one Integration (posthog) with one capability:

  • webhook-actions — receives deliveries from a PostHog webhook destination. imbi-gateway verifies the signature, finds the project, and records each delivery as an event. The capability advertises no custom actions.

The Imbi host discovers the package by scanning imbi.plugins.* and reads the module-level PLUGIN attribute; there are no entry points. All plugin base classes come from imbi.common.plugins.

The delivery

Configure the PostHog webhook destination with this JSON body:

{
  "event": "{event}",
  "person": "{person}"
}

PostHog expands {event} and {person} to objects, so a delivery is:

{
  "event": {
    "uuid": "...",
    "event": "$pageview",
    "distinct_id": "...",
    "properties": {},
    "timestamp": "...",
    "url": "https://us.posthog.com/project/1/events/..."
  },
  "person": {
    "id": "...",
    "name": "...",
    "url": "https://us.posthog.com/project/1/person/...",
    "properties": {}
  }
}

Signature

PostHog signs each request per the Standard Webhooks specification. The destination sends three headers:

Header Value
Webhook-Id The unique id of the message
Webhook-Timestamp The send time, as integer seconds since the epoch
Webhook-Signature Space-separated v1,<base64> tokens

Each token is the base64 HMAC-SHA256 of <webhook-id>.<webhook-timestamp>.<body>, keyed by the signing secret. PostHog signs only when the destination's Signing secret is set, so generate a Standard Webhooks key (a base64 string, optionally prefixed with whsec_), enter it as the Signing secret of the PostHog destination with Signature format set to Standard Webhooks, and put the same key in the Secret field of the Imbi webhook. The gateway drops a delivery whose signature is missing or does not match, and a delivery whose timestamp is more than five minutes from the gateway clock. The header name and prefix are the SIGNATURE_HEADER and SIGNATURE_PREFIX constants in imbi.plugins.posthog.plugin.

Development

moon run root:setup     # uv sync + pre-commit hooks
moon run posthog:test   # coverage (fails under 85%)
moon run posthog:lint posthog:typecheck posthog:format   # ruff + basedpyright + format check

The plugin needs no credentials (auth_type='none'): it only receives.

License

BSD-3-Clause.

Metadata

Release files for imbi-plugin-posthog 2.60.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for imbi-plugin-posthog 2.60.0
File Size Uploaded Provenance Actions
imbi_plugin_posthog-2.60.0.tar.gz 4.2 kB With provenance Details for imbi_plugin_posthog-2.60.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for imbi-plugin-posthog 2.60.0
File Interpreter ABI Platform Actions
imbi_plugin_posthog-2.60.0-py3-none-any.whl Python 3 none any Details for imbi_plugin_posthog-2.60.0-py3-none-any.whl

Total release size: 8.3 kB

Release files / imbi_plugin_posthog-2.60.0.tar.gz

Download URL imbi_plugin_posthog-2.60.0.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
6efcb21d0bc1d8c99bbd614b05e6ad11029fd7ed27e26a96b361ccac058935ca
BLAKE2b-256 checksum
How to use checksums
eb9d433a59fd5a019dfd3ae210ef84f30a5c5eb6b56f35f81fbbc9b547a79000
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Transparency log

Release files / imbi_plugin_posthog-2.60.0-py3-none-any.whl

Download URL imbi_plugin_posthog-2.60.0-py3-none-any.whl
Size 4.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3196c27494846b73b0e780fc735d294f0a44fb5a056d9defd775222c5fdf811e
BLAKE2b-256 checksum
How to use checksums
5c8f17001d933ab64df2a91a8382d05e7c522352bab4396d0bd518c3ec85da89
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Transparency log

Security for imbi-plugin-posthog 2.60.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for imbi_plugin_posthog-2.60.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page