Files
rdap/package.json
Xevion 5fde7d249f feat: add PostHog telemetry with privacy-focused tracking
Integrate optional PostHog telemetry to track page views, RDAP queries,
user interactions, and errors while maintaining user privacy.

Key features:
- Type-safe event tracking with discriminated unions
- Automatic source map upload for production error tracking
- Privacy protections (query targets excluded from successful lookups)
- Do Not Track (DNT) header support
- Optional telemetry (disabled by default without environment variables)
- Error boundary with automatic error tracking
- Context-based telemetry integration throughout UI components

Environment variables required for telemetry:
- NEXT_PUBLIC_POSTHOG_KEY: PostHog project API key (client-side)
- NEXT_PUBLIC_POSTHOG_HOST: PostHog API endpoint (client-side)
- POSTHOG_PERSONAL_API_KEY: Source map upload key (server-side)
2025-10-23 18:00:24 -05:00

75 lines
2.0 KiB
JSON

{
"name": "rdap",
"version": "0.9.0",
"private": true,
"scripts": {
"build": "next build",
"dev": "next dev",
"start": "next start",
"test": "vitest run",
"test:coverage": "vitest run --coverage",
"check": "tsc --noEmit && eslint .",
"lint:fix": "eslint . --fix",
"format": "prettier --write .",
"format:check": "prettier --check .",
"prepare": "husky install"
},
"dependencies": {
"@fontsource-variable/inter": "^5.2.8",
"@fontsource/ibm-plex-mono": "^5.2.7",
"@mantine/hooks": "^8.3.5",
"@radix-ui/react-icons": "^1.3.2",
"@radix-ui/react-tooltip": "^1.2.8",
"@radix-ui/themes": "^3.2.1",
"@swc/helpers": "^0.5.11",
"clsx": "^2.1.1",
"date-fns": "^4.1.0",
"date-fns-tz": "^3.2.0",
"next": "^15.5.6",
"next-themes": "^0.4.6",
"overlayscrollbars": "^2.12.0",
"overlayscrollbars-react": "^0.5.6",
"posthog-js": "^1.280.1",
"react": "19.2.0",
"react-dom": "19.2.0",
"react-hook-form": "^7.42.1",
"react-timeago": "^8.3.0",
"sass": "^1.57.1",
"tailwind-merge": "^3.3.1",
"true-myth": "^9.2.0",
"usehooks-ts": "^3.1.1",
"zod": "^4.1.12"
},
"devDependencies": {
"@codecov/vite-plugin": "^1.9.1",
"@commitlint/cli": "^19.0.0",
"@commitlint/config-conventional": "^19.0.0",
"@posthog/nextjs-config": "^1.3.6",
"@tailwindcss/postcss": "^4.1.15",
"@testing-library/jest-dom": "^6.9.1",
"@testing-library/react": "^16.3.0",
"@types/node": "^24.9.1",
"@types/react": "^19.2.2",
"@types/react-dom": "^19.2.2",
"@typescript-eslint/eslint-plugin": "^8.46.2",
"@typescript-eslint/parser": "^8.46.2",
"@vitest/coverage-v8": "^4.0.1",
"@vitest/ui": "^4.0.1",
"eslint": "^9.38.0",
"eslint-config-next": "15.5.6",
"happy-dom": "^20.0.8",
"husky": "^9.0.0",
"lint-staged": "^15.0.0",
"postcss": "^8.4.14",
"prettier": "^3.6.2",
"prettier-plugin-tailwindcss": "^0.7.1",
"tailwindcss": "^4.1.15",
"typescript": "^5.9.3",
"vitest": "^4.0.1"
},
"ct3aMetadata": {
"initVersion": "7.2.0"
},
"packageManager": "pnpm@9.0.0"
}