PostHog/posthog-js
View on GitHub ↗ ★ 645 TypeScript
Send usage data from your web app or site to PostHog, with autocapture.
5 mentions on Hacker News by 5 people: 0 stories, 5 comments · first 2024-08-20 · latest 2025-11-24
20082026
-
…our ci/cd. We rolled the key, and published a new clean version from our repo through our CI/CD: https://github.com/PostHog/posthog-js/actions/runs/196303581...
comment by timgl · 2025-11-24 · in Shai-Hulud Returns: Over 300 NPM Packages Infected -
…it has for all the ways `fetch` can be used, it seems excessive mocking may have played a part: https://github.com/PostHog/posthog-js/blob/main/src/__tests_... The whole fetch and XHR functions are mocked and become no-ops, so obviously…
comment by ricardobeat · 2024-08-20 · in The anatomy of a 2AM mental breakdown -
…from linear logic, so conceivably a suitable type system could prevent this class of bug.) [0] https://github.com/PostHog/posthog-js/pull/1351/commits/2497...
comment by robinhouston · 2024-08-20 · in The anatomy of a 2AM mental breakdown -
This person's stress was caused by a single line of code in PostHog. This is the reversion: https://github.com/PostHog/posthog-js/pull/1371/commits/7598... Highlights two lessons. 1. If you ship it, you own it. Therefore the less you ship,…
comment by simpaticoder · 2024-08-20 · in The anatomy of a 2AM mental breakdown -
Looks like the bug was in a monkey-patched `window.fetch` https://github.com/PostHog/posthog-js/blob/759829c67fcb8720f... The biggest lesson here is, if you're writing a popular library that monkey-patches global functions, it needs to be…
comment by bluepnume · 2024-08-20 · in The anatomy of a 2AM mental breakdown