{ "name": "@posthog/plugin-server", "version": "1.10.5", "description": "PostHog Plugin Server", "types": "dist/index.d.ts", "main": "dist/index.js", "engines": { "node": ">=22 <23" }, "scripts": { "test": "SHARD_IDX=${SHARD_INDEX:-1}; SHARD_TOTAL=${SHARD_COUNT:-1}; echo $SHARD_IDX/$SHARD_TOTAL; jest --runInBand --forceExit --shard=$SHARD_IDX/$SHARD_TOTAL", "start": "pnpm start:dev", "start:dist": "node dist/index.js", "start:dev": "NODE_ENV=dev tsx watch src/index.ts", "start:devNoWatch": "NODE_ENV=dev tsx src/index.ts", "prestart:dev": "pnpm build:cyclotron", "prestart:devNoWatch": "pnpm build:cyclotron", "build": "pnpm clean && pnpm typescript:compile && pnpm typescript:compile-cleanup", "clean": "rm -rf dist/*", "typescript:compile": "tsc -b && tsc-alias", "typescript:compile-cleanup": "[ -d dist/src ] && mv dist/src/* dist/ || true", "typescript:check": "tsc --noEmit -p .", "lint": "eslint .", "lint:fix": "eslint --fix .", "prettier": "prettier --write .", "prettier:check": "prettier --check .", "prepublishOnly": "pnpm build", "setup:dev:clickhouse": "cd .. && DEBUG=1 python manage.py migrate_clickhouse", "setup:test": "cd .. && TEST=1 python manage.py setup_test_environment && cd plugin-server && pnpm run setup:test:rust", "setup:test:rust": "CYCLOTRON_DATABASE_NAME=test_cyclotron PERSONS_DATABASE_NAME=test_persons BEHAVIORAL_COHORTS_DATABASE_NAME=test_behavioral_cohorts ../rust/bin/migrate-entry all && PERSONS_DATABASE_NAME=test_persons_migration ../rust/bin/migrate-persons", "migrate:persons": "../rust/bin/migrate-persons", "migrate:cyclotron": "../rust/bin/migrate-cyclotron", "migrate:behavioral-cohorts": "../rust/bin/migrate-behavioral-cohorts", "migrate:rust": "../rust/bin/migrate-entry all", "services:start": "cd .. && docker compose -f docker-compose.dev.yml up", "services:stop": "cd .. && docker compose -f docker-compose.dev.yml down", "services:clean": "cd .. && docker compose -f docker-compose.dev.yml rm -v", "services": "pnpm services:stop && pnpm services:clean && pnpm services:start", "build:cyclotron": "pnpm --filter=@posthog/cyclotron package", "update-ai-costs": "ts-node src/ingestion/ai-costs/scripts/update-ai-costs.ts", "sync-segment-icons": "DATABASE_URL=something ts-node src/cdp/segment/sync-segment-icons.ts" }, "bin": { "posthog-plugin-server": "bin/posthog-plugin-server" }, "author": "PostHog ", "repository": "https://github.com/PostHog/posthog-plugin-server", "license": "MIT", "dependencies": { "@amplitude/ua-parser-js": "^0.7.33", "@temporalio/client": "^1.12.0", "@aws-sdk/client-s3": "^3.709.0", "@aws-sdk/lib-storage": "^3.709.0", "@babel/core": "^7.22.10", "@babel/plugin-transform-react-jsx": "^7.22.5", "@babel/preset-env": "^7.22.10", "@babel/preset-typescript": "^7.18.6", "@babel/standalone": "^7.23.2", "@clickhouse/client": "^1.12.0", "@google-cloud/pubsub": "4.11.0", "@google-cloud/storage": "^5.8.5", "@maxmind/geoip2-node": "^3.4.0", "@opentelemetry/api": "^1.9.0", "@opentelemetry/auto-instrumentations-node": "^0.62.1", "@opentelemetry/exporter-trace-otlp-grpc": "^0.203.0", "@opentelemetry/exporter-trace-otlp-http": "^0.203.0", "@opentelemetry/instrumentation-pg": "^0.56.0", "@opentelemetry/resources": "^2.0.1", "@opentelemetry/sdk-node": "^0.203.0", "@opentelemetry/sdk-trace-node": "^2.0.1", "@opentelemetry/semantic-conventions": "^1.36.0", "@posthog/cyclotron": "workspace:*", "@posthog/hogvm": "workspace:*", "@posthog/plugin-scaffold": "1.4.4", "@posthog/siphash": "1.1.1", "@segment/action-destinations": "^3.383.0", "@types/lru-cache": "^5.1.0", "@types/node": "^22.13.14", "@types/tail": "^2.2.1", "asn1.js": "^5.4.1", "aws-sdk": "^2.927.0", "cors": "^2.8.5", "dayjs": "1.11.11", "detect-browser": "^5.3.0", "escape-string-regexp": "^4.0.0", "faker": "^5.5.3", "fast-deep-equal": "^3.1.3", "fastpriorityqueue": "^0.7.5", "fernet-nodejs": "^1.0.6", "generic-pool": "^3.7.1", "husky": "^7.0.4", "ioredis": "^4.27.6", "ipaddr.js": "^2.1.0", "js-big-decimal": "^2.2.0", "jsonwebtoken": "^9.0.2", "kafkajs": "^2.2.0", "kafkajs-snappy": "^1.1.0", "liquidjs": "^10.21.1", "lodash": "^4.17.21", "lru-cache": "^6.0.0", "luxon": "^3.4.4", "lz4-kafkajs": "1.0.0", "node-fetch": "^2.6.1", "node-rdkafka": "^3.4.1", "node-schedule": "^2.1.0", "nodemailer": "^7.0.5", "p-limit": "3.1.0", "pg": "^8.6.0", "pino": "^8.6.0", "posthog-node": "4.14.0", "pretty-bytes": "^5.6.0", "prom-client": "^14.2.0", "re2": "^1.22.1", "safe-stable-stringify": "^2.4.0", "snappy": "^7.2.2", "tail": "^2.2.6", "tldts": "^6.1.57", "typescript": "5.2.2", "ultimate-express": "^2.0.9", "undici": "^7.8.0", "undici-types": "^7.3.0", "uuid": "^10.0.0", "vm2": "3.9.18", "xml-js": "^1.6.11", "zod": "^3.24.1" }, "devDependencies": { "@babel/cli": "^7.22.5", "@babel/types": "^7.20.2", "@segment/actions-core": "^3.151.0", "@types/adm-zip": "^0.4.34", "@types/babel__core": "^7.1.19", "@types/babel__standalone": "^7.1.4", "@types/chance": "^1.1.7", "@types/cors": "^2.8.19", "@types/faker": "^5.5.7", "@types/generic-pool": "^3.1.9", "@types/ioredis": "^4.26.4", "@types/jest": "^30.0.0", "@types/jsonwebtoken": "^9.0.10", "@types/kafkajs-snappy": "^1.0.0", "@types/lodash": "^4.17.16", "@types/long": "4.x.x", "@types/luxon": "^3.4.2", "@types/node-fetch": "^2.5.10", "@types/node-schedule": "^2.1.0", "@types/nodemailer": "^6.4.17", "@types/pg": "^8.6.0", "@types/redlock": "^4.0.1", "@types/snowflake-sdk": "^1.5.1", "@types/supertest": "^6.0.2", "@types/tar-stream": "^2.2.0", "@types/uuid": "^10.0.0", "@typescript-eslint/eslint-plugin": "^7.1.1", "@typescript-eslint/parser": "^7.1.1", "babel-eslint": "^10.1.0", "chance": "^1.1.13", "deepmerge": "^4.2.2", "dotenv": "^16.4.7", "eslint": "^8.53.0", "eslint-config-prettier": "^9.1.0", "eslint-plugin-eslint-comments": "^3.2.0", "eslint-plugin-import": "^2.29.0", "eslint-plugin-no-only-tests": "^3.1.0", "eslint-plugin-node": "^11.1.0", "eslint-plugin-promise": "^6.1.1", "jest": "^30.0.0", "pino-pretty": "^9.1.0", "prettier": "^3.6.2", "supertest": "^7.0.0", "ts-jest": "^29.1.0", "ts-node": "^10.9.1", "tsc-alias": "^1.8.16", "tsconfig-paths": "^4.2.0", "tsx": "^4.7.0" }, "cyclotron": { "//This is a short term workaround to ensure that cyclotron changes trigger a rebuild": true, "version": "0.1.12" } }