: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
/** Starting a pool needs the worker's URL, which only an entry point can resolve: import.meta works
* under tsx but not under jest's CJS transform, which is why startPool takes it as a parameter
* rather than resolving it itself (see the note in src/pool.ts). Dev scripts share it here. */
import { type ScrubPool, startPool as start } from '../src/pool.ts'
export function startPool(size: number): Promise<ScrubPool> {
return start(size, new URL('../src/scrub-worker.ts', import.meta.url))
}