0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-24 18:07:17 +01:00
posthog/cdp/package.json
Harry Waye 9529cdd443
feat(cdp): add cdp destination APIs (#14994)
This commit adds the CDP destination APIs. Key changes include:

 - use `db-migrate` for migrations
 - jest for functional_tests (although I would be happy to use vitest or
   alternatives if we want to, I didn't want to change too much at once)
 - pnpm for package management
 - koajs for the server
 - Ajv for validation
 - A separate PostgreSQL logical database for the destination APIs
   persistence.

Things still to do:

 - add some delivery mechanism that takes events from Kafka and puts
   them to the destinations.
 - add CI
 - add to Helm Chart
 - add some method of authentication. I've added the API here but it
   might be that I just end up putting that in the main app in the end,
   depending on how much momentum there is to try out separating the API
   a bit, and the logistics of that.
2023-04-12 12:47:50 +01:00

53 lines
1.6 KiB
JSON

{
"name": "cdp",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"dev": "NODE_ENV=dev nodemon -w src/ src/rest.ts | pino-pretty",
"test": "jest",
"build": "swc ./src/ --out-dir ./dist/",
"migrate": "sqlx migrate run"
},
"keywords": [],
"author": "",
"license": "ISC",
"devDependencies": {
"@jest/globals": "^29.5.0",
"@swc/cli": "^0.1.62",
"@swc/core": "^1.3.46",
"@swc/helpers": "^0.5.0",
"@types/jest": "^29.5.0",
"@types/jsonwebtoken": "^9.0.1",
"@types/koa": "^2.13.6",
"@types/koa-bodyparser": "^4.3.10",
"@types/koa-pino-logger": "^3.0.1",
"@types/koa-router": "^7.4.4",
"@types/node": "^18.15.11",
"@types/pg": "^8.6.6",
"jest": "^29.5.0",
"nodemon": "^2.0.22",
"pino-pretty": "^10.0.0",
"swc-node": "^1.0.0",
"ts-jest": "^29.1.0",
"ts-node": "^10.9.1",
"typescript": "^5.0.3"
},
"dependencies": {
"@opentelemetry/api": "^1.4.1",
"@opentelemetry/instrumentation-pg": "^0.35.0",
"@opentelemetry/instrumentation-pino": "^0.33.1",
"@opentelemetry/sdk-node": "^0.37.0",
"@opentelemetry/sdk-trace-base": "^1.11.0",
"@opentelemetry/sdk-trace-node": "^1.11.0",
"ajv": "^8.12.0",
"jsonwebtoken": "^9.0.0",
"koa": "^2.14.1",
"koa-bodyparser": "^4.4.0",
"koa-jwt": "^4.0.4",
"koa-pino-logger": "^4.0.0",
"koa-router": "^12.0.0",
"pg": "^8.10.0"
}
}