Skip to content

: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.

1.4 KB
Raw Blame
[package]
name = "posthog-replay-anonymizer"
version = "0.15.0"
edition = "2021"
description = "PII scrubber for rrweb session-replay events: text/URL redaction, image collection for an out-of-band scrub, and canvas/cv neutralization"
license = "MIT"
homepage = "https://posthog.com"
repository = "https://github.com/PostHog/posthog"

[lints]
workspace = true

[features]
default = ["typed-parse"]
# Typed rrweb parse output (the `typed` module) for offline consumers. The Node addon builds with
# `default-features = false` so the AST types stay out of the ingestion cdylib entirely.
typed-parse = []

[dependencies]
ahash = { workspace = true }
anyhow = { workspace = true }
base64 = { workspace = true }
hmac = { workspace = true }
libdeflater = { workspace = true }
lz4 = { workspace = true }
memchr = "2"
serde = { workspace = true }
serde_json = { workspace = true }
sha2 = { workspace = true }
simd-json = { version = "0.15", features = ["serde_impl"] }
percent-encoding = { workspace = true }
public-suffix = { workspace = true }
url = { workspace = true }
zstd = { workspace = true }

[dev-dependencies]
image = { version = "0.25", default-features = false, features = ["png"] }
# flate2: tests verify reference gzip streams with an independent codec (not libdeflate), so a
# codec regression can't hide by round-tripping through itself.
flate2 = { workspace = true }
serde_json = { workspace = true }