Files
posthog/plugin-server/package.json
Meikel Ratz 1fc3c69604 feat(msg): add cassandra for behavioural cohorts (#35492)
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
2025-07-25 14:47:12 +02:00

171 lines
7.0 KiB
JSON

{
"name": "@posthog/plugin-server",
"version": "1.10.5",
"description": "PostHog Plugin Server",
"types": "dist/index.d.ts",
"main": "dist/index.js",
"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": "BASE_DIR=.. node dist/index.js",
"start:dev": "NODE_ENV=dev BASE_DIR=.. nodemon --exitcrash --watch src/ --exec node -r @swc-node/register src/index.ts",
"start:devNoWatch": "NODE_ENV=dev BASE_DIR=.. node -r @swc-node/register 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:cyclotron && pnpm run setup:test:cassandra",
"setup:test:cyclotron": "CYCLOTRON_DATABASE_NAME=test_cyclotron ../rust/bin/migrate-cyclotron",
"setup:test:cassandra": "CASSANDRA_KEYSPACE=test_posthog ./bin/migrate-cassandra",
"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",
"cassandra:migrate": "./bin/migrate-cassandra",
"cassandra:rollback": "cd cassandra && cassandra-migrate down",
"cassandra:create": "cd cassandra && cassandra-migrate create"
},
"bin": {
"posthog-plugin-server": "bin/posthog-plugin-server"
},
"author": "PostHog <hey@posthog.com>",
"repository": "https://github.com/PostHog/posthog-plugin-server",
"license": "MIT",
"dependencies": {
"@amplitude/ua-parser-js": "^0.7.33",
"@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",
"@google-cloud/pubsub": "4.11.0",
"@google-cloud/storage": "^5.8.5",
"@maxmind/geoip2-node": "^3.4.0",
"@posthog/clickhouse": "^1.7.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": "^18.11.9",
"@types/tail": "^2.2.1",
"asn1.js": "^5.4.1",
"aws-sdk": "^2.927.0",
"cassandra-driver": "^4.8.0",
"cassandra-migrate": "^1.2.333",
"dayjs": "1.11.11",
"detect-browser": "^5.3.0",
"escape-string-regexp": "^4.0.0",
"express": "^4.18.2",
"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",
"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",
"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.20.3",
"safe-stable-stringify": "^2.4.0",
"snappy": "^7.2.2",
"tail": "^2.2.6",
"tldts": "^6.1.57",
"typescript": "5.2.2",
"undici": "^7.8.0",
"undici-types": "^7.3.0",
"uuid": "^10.0.0",
"v8-profiler-next": "^1.9.0",
"vm2": "3.9.18",
"xml-js": "^1.6.11",
"zod": "^3.24.1"
},
"devDependencies": {
"0x": "^5.5.0",
"@babel/cli": "^7.22.5",
"@babel/types": "^7.20.2",
"@segment/actions-core": "^3.151.0",
"@swc-node/register": "^1.10.9",
"@swc/core": "^1.10.14",
"@swc/jest": "^0.2.37",
"@types/adm-zip": "^0.4.34",
"@types/babel__core": "^7.1.19",
"@types/babel__standalone": "^7.1.4",
"@types/express": "^4.17.21",
"@types/faker": "^5.5.7",
"@types/generic-pool": "^3.1.9",
"@types/ioredis": "^4.26.4",
"@types/jest": "^29.5.14",
"@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/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",
"c8": "^7.12.0",
"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",
"eslint-plugin-simple-import-sort": "^7.0.0",
"jest": "^29.7.0",
"nodemon": "^2.0.22",
"parse-prometheus-text-format": "^1.1.1",
"pino-pretty": "^9.1.0",
"prettier": "^2.8.8",
"supertest": "^7.0.0",
"ts-node": "^10.9.1",
"tsc-alias": "^1.8.16",
"tsconfig-paths": "^4.2.0"
},
"cyclotron": {
"//This is a short term workaround to ensure that cyclotron changes trigger a rebuild": true,
"version": "0.1.12"
}
}