{
  "services": [
    {
      "id": "web",
      "name": "umami-web",
      "kind": "web",
      "framework": "next",
      "entrypoint": "src/app",
      "evidence": [
        {
          "file": "src/app/page.tsx",
          "note": "Next.js app root"
        },
        {
          "file": "prisma/schema.prisma",
          "lines": "1-10",
          "note": "postgres datasource"
        }
      ]
    }
  ],
  "routes": [
    {
      "id": "get-p-slug",
      "serviceId": "web",
      "method": "GET",
      "path": "/p/[slug]",
      "kind": "api",
      "auth": "public",
      "reads": [
        {
          "dataStoreId": "pg",
          "pattern": "point"
        }
      ],
      "writes": [
        {
          "dataStoreId": "pg"
        }
      ],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "hot",
      "evidence": [
        {
          "file": "src/app/(collect)/p/[slug]/route.ts",
          "lines": "1-56",
          "note": "pixel lookup + inline call to send.POST"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "get-q-slug",
      "serviceId": "web",
      "method": "GET",
      "path": "/q/[slug]",
      "kind": "api",
      "auth": "public",
      "reads": [
        {
          "dataStoreId": "pg",
          "pattern": "point"
        }
      ],
      "writes": [
        {
          "dataStoreId": "pg"
        }
      ],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "hot",
      "evidence": [
        {
          "file": "src/app/(collect)/q/[slug]/route.ts",
          "note": "link lookup then redirect, inline event write"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "get-admin-teams",
      "serviceId": "web",
      "method": "GET",
      "path": "/api/admin/teams",
      "kind": "api",
      "auth": "admin",
      "reads": [
        {
          "dataStoreId": "pg",
          "pattern": "list"
        }
      ],
      "writes": [],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "rare",
      "evidence": [
        {
          "file": "src/app/api/admin/teams/route.ts",
          "note": "paginated getTeams with counts"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "get-admin-users",
      "serviceId": "web",
      "method": "GET",
      "path": "/api/admin/users",
      "kind": "api",
      "auth": "admin",
      "reads": [
        {
          "dataStoreId": "pg",
          "pattern": "list"
        }
      ],
      "writes": [],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "rare",
      "evidence": [
        {
          "file": "src/app/api/admin/users/route.ts",
          "note": "paginated getUsers"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "get-admin-websites",
      "serviceId": "web",
      "method": "GET",
      "path": "/api/admin/websites",
      "kind": "api",
      "auth": "admin",
      "reads": [
        {
          "dataStoreId": "pg",
          "pattern": "list"
        }
      ],
      "writes": [],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "rare",
      "evidence": [
        {
          "file": "src/app/api/admin/websites/route.ts",
          "note": "paginated getWebsites with joins"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "post-auth-login",
      "serviceId": "web",
      "method": "POST",
      "path": "/api/auth/login",
      "kind": "api",
      "auth": "public",
      "reads": [
        {
          "dataStoreId": "pg",
          "pattern": "point"
        },
        {
          "dataStoreId": "pg",
          "pattern": "list"
        }
      ],
      "writes": [
        {
          "dataStoreId": "rd"
        }
      ],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/api/auth/login/route.ts",
          "note": "password check, saveAuth to redis if enabled"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "post-auth-logout",
      "serviceId": "web",
      "method": "POST",
      "path": "/api/auth/logout",
      "kind": "api",
      "auth": "authenticated",
      "reads": [],
      "writes": [
        {
          "dataStoreId": "rd"
        }
      ],
      "externalCallIds": [],
      "work": "light",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/api/auth/logout/route.ts",
          "note": "deletes redis auth key"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "post-auth-sso",
      "serviceId": "web",
      "method": "POST",
      "path": "/api/auth/sso",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "pg",
          "pattern": "point"
        }
      ],
      "writes": [
        {
          "dataStoreId": "rd"
        }
      ],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "rare",
      "evidence": [
        {
          "file": "src/app/api/auth/sso/route.ts",
          "note": "requires redis enabled, mints session token"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "post-auth-verify",
      "serviceId": "web",
      "method": "POST",
      "path": "/api/auth/verify",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "pg",
          "pattern": "list"
        }
      ],
      "writes": [],
      "externalCallIds": [
        "ext-cloud-billing"
      ],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/api/auth/verify/route.ts",
          "note": "CLOUD_MODE branch calls fetchAccount/fetchTeam per team"
        }
      ],
      "confidence": "medium"
    },
    {
      "id": "post-batch",
      "serviceId": "web",
      "method": "POST",
      "path": "/api/batch",
      "kind": "api",
      "auth": "public",
      "reads": [],
      "writes": [
        {
          "dataStoreId": "pg"
        }
      ],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "hot",
      "evidence": [
        {
          "file": "src/app/api/batch/route.ts",
          "note": "loops up to 500 items calling send.POST per item"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "boards-boardId",
      "serviceId": "web",
      "method": "ALL",
      "path": "/api/boards/[boardId]",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "pg",
          "pattern": "point"
        }
      ],
      "writes": [
        {
          "dataStoreId": "pg"
        }
      ],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/api/boards/[boardId]/route.ts",
          "note": "GET/POST/DELETE board CRUD"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "boards-boardId-shares",
      "serviceId": "web",
      "method": "ALL",
      "path": "/api/boards/[boardId]/shares",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "pg",
          "pattern": "list"
        }
      ],
      "writes": [
        {
          "dataStoreId": "pg"
        }
      ],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/api/boards/[boardId]/shares/route.ts"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "boards-root",
      "serviceId": "web",
      "method": "ALL",
      "path": "/api/boards",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "pg",
          "pattern": "list"
        }
      ],
      "writes": [
        {
          "dataStoreId": "pg"
        }
      ],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/api/boards/route.ts"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "get-config",
      "serviceId": "web",
      "method": "GET",
      "path": "/api/config",
      "kind": "api",
      "auth": "public",
      "reads": [],
      "writes": [],
      "externalCallIds": [],
      "work": "light",
      "trafficHint": "hot",
      "evidence": [
        {
          "file": "src/app/api/config/route.ts",
          "note": "returns static env config"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "dashboard-root",
      "serviceId": "web",
      "method": "ALL",
      "path": "/api/dashboard",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "pg",
          "pattern": "point"
        }
      ],
      "writes": [
        {
          "dataStoreId": "pg"
        }
      ],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/api/dashboard/route.ts"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "get-heartbeat",
      "serviceId": "web",
      "method": "GET",
      "path": "/api/heartbeat",
      "kind": "api",
      "auth": "public",
      "reads": [],
      "writes": [],
      "externalCallIds": [],
      "work": "light",
      "trafficHint": "hot",
      "evidence": [
        {
          "file": "src/app/api/heartbeat/route.ts"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "links-linkId",
      "serviceId": "web",
      "method": "ALL",
      "path": "/api/links/[linkId]",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "pg",
          "pattern": "point"
        }
      ],
      "writes": [
        {
          "dataStoreId": "pg"
        }
      ],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/api/links/[linkId]/route.ts"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "links-linkId-shares",
      "serviceId": "web",
      "method": "ALL",
      "path": "/api/links/[linkId]/shares",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "pg",
          "pattern": "list"
        }
      ],
      "writes": [
        {
          "dataStoreId": "pg"
        }
      ],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/api/links/[linkId]/shares/route.ts"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "links-root",
      "serviceId": "web",
      "method": "ALL",
      "path": "/api/links",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "pg",
          "pattern": "list"
        }
      ],
      "writes": [
        {
          "dataStoreId": "pg"
        }
      ],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/api/links/route.ts"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "post-me-password",
      "serviceId": "web",
      "method": "POST",
      "path": "/api/me/password",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "pg",
          "pattern": "point"
        }
      ],
      "writes": [
        {
          "dataStoreId": "pg"
        }
      ],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "rare",
      "evidence": [
        {
          "file": "src/app/api/me/password/route.ts"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "get-me",
      "serviceId": "web",
      "method": "GET",
      "path": "/api/me",
      "kind": "api",
      "auth": "authenticated",
      "reads": [],
      "writes": [],
      "externalCallIds": [],
      "work": "light",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/api/me/route.ts",
          "note": "returns cached auth object"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "get-me-teams",
      "serviceId": "web",
      "method": "GET",
      "path": "/api/me/teams",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "pg",
          "pattern": "list"
        }
      ],
      "writes": [],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/api/me/teams/route.ts"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "get-me-websites",
      "serviceId": "web",
      "method": "GET",
      "path": "/api/me/websites",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "pg",
          "pattern": "list"
        }
      ],
      "writes": [],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/api/me/websites/route.ts"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "pixels-pixelId",
      "serviceId": "web",
      "method": "ALL",
      "path": "/api/pixels/[pixelId]",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "pg",
          "pattern": "point"
        }
      ],
      "writes": [
        {
          "dataStoreId": "pg"
        }
      ],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/api/pixels/[pixelId]/route.ts"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "pixels-pixelId-shares",
      "serviceId": "web",
      "method": "ALL",
      "path": "/api/pixels/[pixelId]/shares",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "pg",
          "pattern": "list"
        }
      ],
      "writes": [
        {
          "dataStoreId": "pg"
        }
      ],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/api/pixels/[pixelId]/shares/route.ts"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "pixels-root",
      "serviceId": "web",
      "method": "ALL",
      "path": "/api/pixels",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "pg",
          "pattern": "list"
        }
      ],
      "writes": [
        {
          "dataStoreId": "pg"
        }
      ],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/api/pixels/route.ts"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "get-realtime-websiteId",
      "serviceId": "web",
      "method": "GET",
      "path": "/api/realtime/[websiteId]",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "pg",
          "pattern": "aggregate"
        }
      ],
      "writes": [],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "hot",
      "evidence": [
        {
          "file": "src/app/api/realtime/[websiteId]/route.ts",
          "note": "queried repeatedly by realtime dashboard widget"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "post-record",
      "serviceId": "web",
      "method": "POST",
      "path": "/api/record",
      "kind": "api",
      "auth": "public",
      "reads": [
        {
          "dataStoreId": "pg",
          "pattern": "point"
        }
      ],
      "writes": [
        {
          "dataStoreId": "pg"
        }
      ],
      "externalCallIds": [
        "ext-cloud-billing"
      ],
      "work": "db-bound",
      "trafficHint": "hot",
      "evidence": [
        {
          "file": "src/app/api/record/route.ts",
          "lines": "1-200",
          "note": "session recorder/heatmap event ingestion; CLOUD_MODE fetchTeam/fetchAccount conditional"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "reports-reportId",
      "serviceId": "web",
      "method": "ALL",
      "path": "/api/reports/[reportId]",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "pg",
          "pattern": "point"
        }
      ],
      "writes": [
        {
          "dataStoreId": "pg"
        }
      ],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/api/reports/[reportId]/route.ts"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "post-reports-attribution",
      "serviceId": "web",
      "method": "POST",
      "path": "/api/reports/attribution",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "pg",
          "pattern": "aggregate"
        }
      ],
      "writes": [],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/api/reports/attribution/route.ts"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "post-reports-breakdown",
      "serviceId": "web",
      "method": "POST",
      "path": "/api/reports/breakdown",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "pg",
          "pattern": "aggregate"
        }
      ],
      "writes": [],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/api/reports/breakdown/route.ts"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "post-reports-funnel",
      "serviceId": "web",
      "method": "POST",
      "path": "/api/reports/funnel",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "pg",
          "pattern": "aggregate"
        }
      ],
      "writes": [],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/api/reports/funnel/route.ts"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "post-reports-goal",
      "serviceId": "web",
      "method": "POST",
      "path": "/api/reports/goal",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "pg",
          "pattern": "aggregate"
        }
      ],
      "writes": [],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/api/reports/goal/route.ts"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "post-reports-heatmap",
      "serviceId": "web",
      "method": "POST",
      "path": "/api/reports/heatmap",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "pg",
          "pattern": "aggregate"
        }
      ],
      "writes": [],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/api/reports/heatmap/route.ts"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "post-reports-journey",
      "serviceId": "web",
      "method": "POST",
      "path": "/api/reports/journey",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "pg",
          "pattern": "aggregate"
        }
      ],
      "writes": [],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/api/reports/journey/route.ts"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "post-reports-performance",
      "serviceId": "web",
      "method": "POST",
      "path": "/api/reports/performance",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "pg",
          "pattern": "aggregate"
        }
      ],
      "writes": [],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/api/reports/performance/route.ts",
          "note": "5 parallel aggregate queries"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "post-reports-retention",
      "serviceId": "web",
      "method": "POST",
      "path": "/api/reports/retention",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "pg",
          "pattern": "aggregate"
        }
      ],
      "writes": [],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/api/reports/retention/route.ts"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "post-reports-revenue",
      "serviceId": "web",
      "method": "POST",
      "path": "/api/reports/revenue",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "pg",
          "pattern": "aggregate"
        }
      ],
      "writes": [],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/api/reports/revenue/route.ts",
          "note": "7 parallel queries incl. comparison period"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "reports-root",
      "serviceId": "web",
      "method": "ALL",
      "path": "/api/reports",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "pg",
          "pattern": "list"
        }
      ],
      "writes": [
        {
          "dataStoreId": "pg"
        }
      ],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/api/reports/route.ts"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "post-reports-utm",
      "serviceId": "web",
      "method": "POST",
      "path": "/api/reports/utm",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "pg",
          "pattern": "aggregate"
        }
      ],
      "writes": [],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/api/reports/utm/route.ts",
          "note": "5 sequential aggregate queries, one per UTM param"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "get-scripts-telemetry",
      "serviceId": "web",
      "method": "GET",
      "path": "/api/scripts/telemetry",
      "kind": "api",
      "auth": "public",
      "reads": [],
      "writes": [],
      "externalCallIds": [],
      "work": "light",
      "trafficHint": "hot",
      "evidence": [
        {
          "file": "src/app/api/scripts/telemetry/route.ts"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "post-send",
      "serviceId": "web",
      "method": "POST",
      "path": "/api/send",
      "kind": "api",
      "auth": "public",
      "reads": [
        {
          "dataStoreId": "pg",
          "pattern": "point"
        }
      ],
      "writes": [
        {
          "dataStoreId": "pg"
        }
      ],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "hot",
      "evidence": [
        {
          "file": "src/app/api/send/route.ts",
          "lines": "1-200",
          "note": "core tracking ingestion endpoint"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "get-share-slug",
      "serviceId": "web",
      "method": "GET",
      "path": "/api/share/[slug]",
      "kind": "api",
      "auth": "public",
      "reads": [
        {
          "dataStoreId": "pg",
          "pattern": "point"
        }
      ],
      "writes": [],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/api/share/[slug]/route.ts",
          "note": "no auth check, resolves share token by slug"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "share-id-shareId",
      "serviceId": "web",
      "method": "ALL",
      "path": "/api/share/id/[shareId]",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "pg",
          "pattern": "point"
        }
      ],
      "writes": [
        {
          "dataStoreId": "pg"
        }
      ],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/api/share/id/[shareId]/route.ts"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "post-share",
      "serviceId": "web",
      "method": "POST",
      "path": "/api/share",
      "kind": "api",
      "auth": "authenticated",
      "reads": [],
      "writes": [
        {
          "dataStoreId": "pg"
        }
      ],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/api/share/route.ts"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "get-teams-teamId-boards",
      "serviceId": "web",
      "method": "GET",
      "path": "/api/teams/[teamId]/boards",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "pg",
          "pattern": "list"
        }
      ],
      "writes": [],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/api/teams/[teamId]/boards/route.ts"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "get-teams-teamId-links",
      "serviceId": "web",
      "method": "GET",
      "path": "/api/teams/[teamId]/links",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "pg",
          "pattern": "list"
        }
      ],
      "writes": [],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/api/teams/[teamId]/links/route.ts"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "get-teams-teamId-pixels",
      "serviceId": "web",
      "method": "GET",
      "path": "/api/teams/[teamId]/pixels",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "pg",
          "pattern": "list"
        }
      ],
      "writes": [],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/api/teams/[teamId]/pixels/route.ts"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "teams-teamId",
      "serviceId": "web",
      "method": "ALL",
      "path": "/api/teams/[teamId]",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "pg",
          "pattern": "point"
        }
      ],
      "writes": [
        {
          "dataStoreId": "pg"
        }
      ],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/api/teams/[teamId]/route.ts"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "teams-teamId-users-userId",
      "serviceId": "web",
      "method": "ALL",
      "path": "/api/teams/[teamId]/users/[userId]",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "pg",
          "pattern": "point"
        }
      ],
      "writes": [
        {
          "dataStoreId": "pg"
        }
      ],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/api/teams/[teamId]/users/[userId]/route.ts",
          "note": "server-side rank checks before role change/removal"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "teams-teamId-users",
      "serviceId": "web",
      "method": "ALL",
      "path": "/api/teams/[teamId]/users",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "pg",
          "pattern": "list"
        }
      ],
      "writes": [
        {
          "dataStoreId": "pg"
        }
      ],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/api/teams/[teamId]/users/route.ts"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "get-teams-teamId-websites",
      "serviceId": "web",
      "method": "GET",
      "path": "/api/teams/[teamId]/websites",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "pg",
          "pattern": "list"
        }
      ],
      "writes": [],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/api/teams/[teamId]/websites/route.ts"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "post-teams-join",
      "serviceId": "web",
      "method": "POST",
      "path": "/api/teams/join",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "pg",
          "pattern": "point"
        }
      ],
      "writes": [
        {
          "dataStoreId": "pg"
        }
      ],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "rare",
      "evidence": [
        {
          "file": "src/app/api/teams/join/route.ts"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "teams-root",
      "serviceId": "web",
      "method": "ALL",
      "path": "/api/teams",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "pg",
          "pattern": "list"
        }
      ],
      "writes": [
        {
          "dataStoreId": "pg"
        },
        {
          "dataStoreId": "rd"
        }
      ],
      "externalCallIds": [
        "ext-cloud-billing"
      ],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/api/teams/route.ts",
          "note": "CLOUD_MODE fetchAccount then caches to redis"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "users-userId",
      "serviceId": "web",
      "method": "ALL",
      "path": "/api/users/[userId]",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "pg",
          "pattern": "point"
        }
      ],
      "writes": [
        {
          "dataStoreId": "pg"
        }
      ],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/api/users/[userId]/route.ts"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "get-users-userId-teams",
      "serviceId": "web",
      "method": "GET",
      "path": "/api/users/[userId]/teams",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "pg",
          "pattern": "list"
        }
      ],
      "writes": [],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/api/users/[userId]/teams/route.ts"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "get-users-userId-websites",
      "serviceId": "web",
      "method": "GET",
      "path": "/api/users/[userId]/websites",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "pg",
          "pattern": "list"
        }
      ],
      "writes": [],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/api/users/[userId]/websites/route.ts"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "post-users",
      "serviceId": "web",
      "method": "POST",
      "path": "/api/users",
      "kind": "api",
      "auth": "admin",
      "reads": [
        {
          "dataStoreId": "pg",
          "pattern": "point"
        }
      ],
      "writes": [
        {
          "dataStoreId": "pg"
        }
      ],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "rare",
      "evidence": [
        {
          "file": "src/app/api/users/route.ts"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "get-websites-active",
      "serviceId": "web",
      "method": "GET",
      "path": "/api/websites/[websiteId]/active",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "pg",
          "pattern": "aggregate"
        }
      ],
      "writes": [],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "hot",
      "evidence": [
        {
          "file": "src/app/api/websites/[websiteId]/active/route.ts",
          "note": "polled by realtime/overview widget"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "get-websites-daterange",
      "serviceId": "web",
      "method": "GET",
      "path": "/api/websites/[websiteId]/daterange",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "pg",
          "pattern": "aggregate"
        }
      ],
      "writes": [],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/api/websites/[websiteId]/daterange/route.ts"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "get-eventdatapivot-arrayseries",
      "serviceId": "web",
      "method": "GET",
      "path": "/api/websites/[websiteId]/event-data-pivot/array-series",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "pg",
          "pattern": "aggregate"
        }
      ],
      "writes": [],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/api/websites/[websiteId]/event-data-pivot/array-series/route.ts"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "get-eventdatapivot-dateseries",
      "serviceId": "web",
      "method": "GET",
      "path": "/api/websites/[websiteId]/event-data-pivot/date-series",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "pg",
          "pattern": "aggregate"
        }
      ],
      "writes": [],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/api/websites/[websiteId]/event-data-pivot/date-series/route.ts"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "get-eventdatapivot-numericseries",
      "serviceId": "web",
      "method": "GET",
      "path": "/api/websites/[websiteId]/event-data-pivot/numeric-series",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "pg",
          "pattern": "aggregate"
        }
      ],
      "writes": [],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/api/websites/[websiteId]/event-data-pivot/numeric-series/route.ts"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "get-eventdatapivot-numericstats",
      "serviceId": "web",
      "method": "GET",
      "path": "/api/websites/[websiteId]/event-data-pivot/numeric-stats",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "pg",
          "pattern": "aggregate"
        }
      ],
      "writes": [],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/api/websites/[websiteId]/event-data-pivot/numeric-stats/route.ts"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "get-eventdatapivot-propertyseries",
      "serviceId": "web",
      "method": "GET",
      "path": "/api/websites/[websiteId]/event-data-pivot/property-series",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "pg",
          "pattern": "aggregate"
        }
      ],
      "writes": [],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/api/websites/[websiteId]/event-data-pivot/property-series/route.ts"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "get-eventdatapivot-root",
      "serviceId": "web",
      "method": "GET",
      "path": "/api/websites/[websiteId]/event-data-pivot",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "pg",
          "pattern": "aggregate"
        }
      ],
      "writes": [],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/api/websites/[websiteId]/event-data-pivot/route.ts"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "get-eventdata-eventid",
      "serviceId": "web",
      "method": "GET",
      "path": "/api/websites/[websiteId]/event-data/[eventId]",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "pg",
          "pattern": "point"
        }
      ],
      "writes": [],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/api/websites/[websiteId]/event-data/[eventId]/route.ts"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "get-eventdata-events",
      "serviceId": "web",
      "method": "GET",
      "path": "/api/websites/[websiteId]/event-data/events",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "pg",
          "pattern": "list"
        }
      ],
      "writes": [],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/api/websites/[websiteId]/event-data/events/route.ts"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "get-eventdata-fields",
      "serviceId": "web",
      "method": "GET",
      "path": "/api/websites/[websiteId]/event-data/fields",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "pg",
          "pattern": "list"
        }
      ],
      "writes": [],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/api/websites/[websiteId]/event-data/fields/route.ts"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "get-eventdata-properties",
      "serviceId": "web",
      "method": "GET",
      "path": "/api/websites/[websiteId]/event-data/properties",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "pg",
          "pattern": "list"
        }
      ],
      "writes": [],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/api/websites/[websiteId]/event-data/properties/route.ts"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "get-eventdata-root",
      "serviceId": "web",
      "method": "GET",
      "path": "/api/websites/[websiteId]/event-data",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "pg",
          "pattern": "list"
        }
      ],
      "writes": [],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/api/websites/[websiteId]/event-data/route.ts",
          "note": "in-memory grouping of rows into event map"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "get-eventdata-stats",
      "serviceId": "web",
      "method": "GET",
      "path": "/api/websites/[websiteId]/event-data/stats",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "pg",
          "pattern": "aggregate"
        }
      ],
      "writes": [],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/api/websites/[websiteId]/event-data/stats/route.ts"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "get-eventdata-values",
      "serviceId": "web",
      "method": "GET",
      "path": "/api/websites/[websiteId]/event-data/values",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "pg",
          "pattern": "list"
        }
      ],
      "writes": [],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/api/websites/[websiteId]/event-data/values/route.ts"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "get-events-root",
      "serviceId": "web",
      "method": "GET",
      "path": "/api/websites/[websiteId]/events",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "pg",
          "pattern": "list"
        }
      ],
      "writes": [],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/api/websites/[websiteId]/events/route.ts"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "get-events-series",
      "serviceId": "web",
      "method": "GET",
      "path": "/api/websites/[websiteId]/events/series",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "pg",
          "pattern": "aggregate"
        }
      ],
      "writes": [],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/api/websites/[websiteId]/events/series/route.ts"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "get-events-stats",
      "serviceId": "web",
      "method": "GET",
      "path": "/api/websites/[websiteId]/events/stats",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "pg",
          "pattern": "aggregate"
        }
      ],
      "writes": [],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/api/websites/[websiteId]/events/stats/route.ts",
          "note": "two aggregate queries for comparison"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "get-export",
      "serviceId": "web",
      "method": "GET",
      "path": "/api/websites/[websiteId]/export",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "pg",
          "pattern": "aggregate"
        }
      ],
      "writes": [],
      "externalCallIds": [],
      "work": "cpu",
      "trafficHint": "rare",
      "evidence": [
        {
          "file": "src/app/api/websites/[websiteId]/export/route.ts",
          "note": "7 parallel queries + JSZip/Papa CSV zip generation"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "get-metrics-expanded",
      "serviceId": "web",
      "method": "GET",
      "path": "/api/websites/[websiteId]/metrics/expanded",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "pg",
          "pattern": "aggregate"
        }
      ],
      "writes": [],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/api/websites/[websiteId]/metrics/expanded/route.ts"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "get-metrics",
      "serviceId": "web",
      "method": "GET",
      "path": "/api/websites/[websiteId]/metrics",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "pg",
          "pattern": "aggregate"
        }
      ],
      "writes": [],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "hot",
      "evidence": [
        {
          "file": "src/app/api/websites/[websiteId]/metrics/route.ts",
          "note": "core dashboard breakdown widget"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "get-pageviews",
      "serviceId": "web",
      "method": "GET",
      "path": "/api/websites/[websiteId]/pageviews",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "pg",
          "pattern": "aggregate"
        }
      ],
      "writes": [],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "hot",
      "evidence": [
        {
          "file": "src/app/api/websites/[websiteId]/pageviews/route.ts",
          "note": "main overview chart, optional compare doubles query count"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "get-recorder",
      "serviceId": "web",
      "method": "GET",
      "path": "/api/websites/[websiteId]/recorder",
      "kind": "api",
      "auth": "public",
      "reads": [
        {
          "dataStoreId": "pg",
          "pattern": "point"
        }
      ],
      "writes": [],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "hot",
      "evidence": [
        {
          "file": "src/app/api/websites/[websiteId]/recorder/route.ts",
          "note": "fetched by tracker script on page load, cached response"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "get-replays-replayid",
      "serviceId": "web",
      "method": "GET",
      "path": "/api/websites/[websiteId]/replays/[replayId]",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "pg",
          "pattern": "list"
        }
      ],
      "writes": [],
      "externalCallIds": [],
      "work": "cpu",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/api/websites/[websiteId]/replays/[replayId]/route.ts",
          "note": "merges/sorts replay chunk events in memory"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "get-replays",
      "serviceId": "web",
      "method": "GET",
      "path": "/api/websites/[websiteId]/replays",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "pg",
          "pattern": "list"
        }
      ],
      "writes": [],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/api/websites/[websiteId]/replays/route.ts"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "replays-saved-replayid",
      "serviceId": "web",
      "method": "ALL",
      "path": "/api/websites/[websiteId]/replays/saved/[replayId]",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "pg",
          "pattern": "point"
        }
      ],
      "writes": [
        {
          "dataStoreId": "pg"
        }
      ],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/api/websites/[websiteId]/replays/saved/[replayId]/route.ts"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "get-replays-saved",
      "serviceId": "web",
      "method": "GET",
      "path": "/api/websites/[websiteId]/replays/saved",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "pg",
          "pattern": "list"
        }
      ],
      "writes": [],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/api/websites/[websiteId]/replays/saved/route.ts"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "get-website-reports",
      "serviceId": "web",
      "method": "GET",
      "path": "/api/websites/[websiteId]/reports",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "pg",
          "pattern": "list"
        }
      ],
      "writes": [],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/api/websites/[websiteId]/reports/route.ts"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "post-website-reset",
      "serviceId": "web",
      "method": "POST",
      "path": "/api/websites/[websiteId]/reset",
      "kind": "api",
      "auth": "authenticated",
      "reads": [],
      "writes": [
        {
          "dataStoreId": "pg"
        }
      ],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "rare",
      "evidence": [
        {
          "file": "src/app/api/websites/[websiteId]/reset/route.ts"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "get-revenue-chart",
      "serviceId": "web",
      "method": "GET",
      "path": "/api/websites/[websiteId]/revenue/chart",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "pg",
          "pattern": "aggregate"
        }
      ],
      "writes": [],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/api/websites/[websiteId]/revenue/chart/route.ts"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "get-revenue-metrics",
      "serviceId": "web",
      "method": "GET",
      "path": "/api/websites/[websiteId]/revenue/metrics",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "pg",
          "pattern": "aggregate"
        }
      ],
      "writes": [],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/api/websites/[websiteId]/revenue/metrics/route.ts"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "get-revenue-sessions",
      "serviceId": "web",
      "method": "GET",
      "path": "/api/websites/[websiteId]/revenue/sessions",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "pg",
          "pattern": "list"
        }
      ],
      "writes": [],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/api/websites/[websiteId]/revenue/sessions/route.ts"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "get-revenue-stats",
      "serviceId": "web",
      "method": "GET",
      "path": "/api/websites/[websiteId]/revenue/stats",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "pg",
          "pattern": "aggregate"
        }
      ],
      "writes": [],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/api/websites/[websiteId]/revenue/stats/route.ts",
          "note": "2 parallel queries incl. comparison"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "websiteId-root",
      "serviceId": "web",
      "method": "ALL",
      "path": "/api/websites/[websiteId]",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "pg",
          "pattern": "point"
        }
      ],
      "writes": [
        {
          "dataStoreId": "pg"
        }
      ],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/api/websites/[websiteId]/route.ts"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "segments-segmentid",
      "serviceId": "web",
      "method": "ALL",
      "path": "/api/websites/[websiteId]/segments/[segmentId]",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "pg",
          "pattern": "point"
        }
      ],
      "writes": [
        {
          "dataStoreId": "pg"
        }
      ],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/api/websites/[websiteId]/segments/[segmentId]/route.ts"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "segments-root",
      "serviceId": "web",
      "method": "ALL",
      "path": "/api/websites/[websiteId]/segments",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "pg",
          "pattern": "list"
        }
      ],
      "writes": [
        {
          "dataStoreId": "pg"
        }
      ],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/api/websites/[websiteId]/segments/route.ts"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "get-sessiondatapivot",
      "serviceId": "web",
      "method": "GET",
      "path": "/api/websites/[websiteId]/session-data-pivot",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "pg",
          "pattern": "aggregate"
        }
      ],
      "writes": [],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/api/websites/[websiteId]/session-data-pivot/route.ts"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "get-sessiondata-arrayseries",
      "serviceId": "web",
      "method": "GET",
      "path": "/api/websites/[websiteId]/session-data/array-series",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "pg",
          "pattern": "aggregate"
        }
      ],
      "writes": [],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/api/websites/[websiteId]/session-data/array-series/route.ts"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "get-sessiondata-dateseries",
      "serviceId": "web",
      "method": "GET",
      "path": "/api/websites/[websiteId]/session-data/date-series",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "pg",
          "pattern": "aggregate"
        }
      ],
      "writes": [],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/api/websites/[websiteId]/session-data/date-series/route.ts"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "get-sessiondata-numericseries",
      "serviceId": "web",
      "method": "GET",
      "path": "/api/websites/[websiteId]/session-data/numeric-series",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "pg",
          "pattern": "aggregate"
        }
      ],
      "writes": [],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/api/websites/[websiteId]/session-data/numeric-series/route.ts"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "get-sessiondata-numericstats",
      "serviceId": "web",
      "method": "GET",
      "path": "/api/websites/[websiteId]/session-data/numeric-stats",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "pg",
          "pattern": "aggregate"
        }
      ],
      "writes": [],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/api/websites/[websiteId]/session-data/numeric-stats/route.ts"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "get-sessiondata-properties",
      "serviceId": "web",
      "method": "GET",
      "path": "/api/websites/[websiteId]/session-data/properties",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "pg",
          "pattern": "list"
        }
      ],
      "writes": [],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/api/websites/[websiteId]/session-data/properties/route.ts"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "get-sessiondata-propertyseries",
      "serviceId": "web",
      "method": "GET",
      "path": "/api/websites/[websiteId]/session-data/property-series",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "pg",
          "pattern": "aggregate"
        }
      ],
      "writes": [],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/api/websites/[websiteId]/session-data/property-series/route.ts"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "get-sessiondata-stats",
      "serviceId": "web",
      "method": "GET",
      "path": "/api/websites/[websiteId]/session-data/stats",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "pg",
          "pattern": "aggregate"
        }
      ],
      "writes": [],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/api/websites/[websiteId]/session-data/stats/route.ts"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "get-sessiondata-values",
      "serviceId": "web",
      "method": "GET",
      "path": "/api/websites/[websiteId]/session-data/values",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "pg",
          "pattern": "list"
        }
      ],
      "writes": [],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/api/websites/[websiteId]/session-data/values/route.ts"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "get-sessions-activity",
      "serviceId": "web",
      "method": "GET",
      "path": "/api/websites/[websiteId]/sessions/[sessionId]/activity",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "pg",
          "pattern": "list"
        }
      ],
      "writes": [],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/api/websites/[websiteId]/sessions/[sessionId]/activity/route.ts"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "get-sessions-properties",
      "serviceId": "web",
      "method": "GET",
      "path": "/api/websites/[websiteId]/sessions/[sessionId]/properties",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "pg",
          "pattern": "point"
        }
      ],
      "writes": [],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/api/websites/[websiteId]/sessions/[sessionId]/properties/route.ts"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "get-sessions-replays",
      "serviceId": "web",
      "method": "GET",
      "path": "/api/websites/[websiteId]/sessions/[sessionId]/replays",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "pg",
          "pattern": "list"
        }
      ],
      "writes": [],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/api/websites/[websiteId]/sessions/[sessionId]/replays/route.ts"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "get-sessions-sessionid",
      "serviceId": "web",
      "method": "GET",
      "path": "/api/websites/[websiteId]/sessions/[sessionId]",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "pg",
          "pattern": "point"
        }
      ],
      "writes": [],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/api/websites/[websiteId]/sessions/[sessionId]/route.ts",
          "note": "route listed in inventory, content not inspected"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "get-sessions-root",
      "serviceId": "web",
      "method": "GET",
      "path": "/api/websites/[websiteId]/sessions",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "pg",
          "pattern": "list"
        }
      ],
      "writes": [],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/api/websites/[websiteId]/sessions/route.ts",
          "note": "route listed in inventory, content not inspected"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "get-sessions-stats",
      "serviceId": "web",
      "method": "GET",
      "path": "/api/websites/[websiteId]/sessions/stats",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "pg",
          "pattern": "aggregate"
        }
      ],
      "writes": [],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/api/websites/[websiteId]/sessions/stats/route.ts",
          "note": "route listed in inventory, content not inspected"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "get-sessions-weekly",
      "serviceId": "web",
      "method": "GET",
      "path": "/api/websites/[websiteId]/sessions/weekly",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "pg",
          "pattern": "aggregate"
        }
      ],
      "writes": [],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/api/websites/[websiteId]/sessions/weekly/route.ts",
          "note": "route listed in inventory, content not inspected"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "website-shares",
      "serviceId": "web",
      "method": "ALL",
      "path": "/api/websites/[websiteId]/shares",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "pg",
          "pattern": "list"
        }
      ],
      "writes": [
        {
          "dataStoreId": "pg"
        }
      ],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/api/websites/[websiteId]/shares/route.ts",
          "note": "route listed in inventory, content not inspected"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "get-website-stats",
      "serviceId": "web",
      "method": "GET",
      "path": "/api/websites/[websiteId]/stats",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "pg",
          "pattern": "aggregate"
        }
      ],
      "writes": [],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "hot",
      "evidence": [
        {
          "file": "src/app/api/websites/[websiteId]/stats/route.ts",
          "note": "core overview stats widget, content not inspected"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "post-website-transfer",
      "serviceId": "web",
      "method": "POST",
      "path": "/api/websites/[websiteId]/transfer",
      "kind": "api",
      "auth": "authenticated",
      "reads": [],
      "writes": [
        {
          "dataStoreId": "pg"
        }
      ],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "rare",
      "evidence": [
        {
          "file": "src/app/api/websites/[websiteId]/transfer/route.ts",
          "note": "route listed in inventory, content not inspected"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "get-website-values",
      "serviceId": "web",
      "method": "GET",
      "path": "/api/websites/[websiteId]/values",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "pg",
          "pattern": "list"
        }
      ],
      "writes": [],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/api/websites/[websiteId]/values/route.ts",
          "note": "route listed in inventory, content not inspected"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "websites-root",
      "serviceId": "web",
      "method": "ALL",
      "path": "/api/websites",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "pg",
          "pattern": "list"
        }
      ],
      "writes": [
        {
          "dataStoreId": "pg"
        }
      ],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/api/websites/route.ts",
          "note": "route listed in inventory, content not inspected"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "page-admin-team",
      "serviceId": "web",
      "method": "GET",
      "path": "/admin/teams/[teamId]",
      "kind": "page",
      "auth": "admin",
      "reads": [],
      "writes": [],
      "externalCallIds": [],
      "work": "light",
      "trafficHint": "rare",
      "evidence": [
        {
          "file": "src/app/(main)/admin/teams/[teamId]/page.tsx",
          "note": "thin wrapper around AdminTeamPage client component"
        }
      ],
      "confidence": "medium"
    },
    {
      "id": "page-admin-teams",
      "serviceId": "web",
      "method": "GET",
      "path": "/admin/teams",
      "kind": "page",
      "auth": "admin",
      "reads": [],
      "writes": [],
      "externalCallIds": [],
      "work": "light",
      "trafficHint": "rare",
      "evidence": [
        {
          "file": "src/app/(main)/admin/teams/page.tsx"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "page-admin-user",
      "serviceId": "web",
      "method": "GET",
      "path": "/admin/users/[userId]",
      "kind": "page",
      "auth": "admin",
      "reads": [],
      "writes": [],
      "externalCallIds": [],
      "work": "light",
      "trafficHint": "rare",
      "evidence": [
        {
          "file": "src/app/(main)/admin/users/[userId]/page.tsx"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "page-admin-users",
      "serviceId": "web",
      "method": "GET",
      "path": "/admin/users",
      "kind": "page",
      "auth": "admin",
      "reads": [],
      "writes": [],
      "externalCallIds": [],
      "work": "light",
      "trafficHint": "rare",
      "evidence": [
        {
          "file": "src/app/(main)/admin/users/page.tsx"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "page-admin-website",
      "serviceId": "web",
      "method": "GET",
      "path": "/admin/websites/[websiteId]",
      "kind": "page",
      "auth": "admin",
      "reads": [],
      "writes": [],
      "externalCallIds": [],
      "work": "light",
      "trafficHint": "rare",
      "evidence": [
        {
          "file": "src/app/(main)/admin/websites/[websiteId]/page.tsx"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "page-admin-websites",
      "serviceId": "web",
      "method": "GET",
      "path": "/admin/websites",
      "kind": "page",
      "auth": "admin",
      "reads": [],
      "writes": [],
      "externalCallIds": [],
      "work": "light",
      "trafficHint": "rare",
      "evidence": [
        {
          "file": "src/app/(main)/admin/websites/page.tsx"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "page-boards-design",
      "serviceId": "web",
      "method": "GET",
      "path": "/boards/[boardId]/design",
      "kind": "page",
      "auth": "authenticated",
      "reads": [],
      "writes": [],
      "externalCallIds": [],
      "work": "light",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/(main)/boards/[boardId]/design/page.tsx"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "page-boards-edit",
      "serviceId": "web",
      "method": "GET",
      "path": "/boards/[boardId]/edit",
      "kind": "page",
      "auth": "authenticated",
      "reads": [],
      "writes": [],
      "externalCallIds": [],
      "work": "light",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/(main)/boards/[boardId]/edit/page.tsx"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "page-boards-view",
      "serviceId": "web",
      "method": "GET",
      "path": "/boards/[boardId]",
      "kind": "page",
      "auth": "authenticated",
      "reads": [],
      "writes": [],
      "externalCallIds": [],
      "work": "light",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/(main)/boards/[boardId]/page.tsx"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "page-boards-create",
      "serviceId": "web",
      "method": "GET",
      "path": "/boards/create",
      "kind": "page",
      "auth": "authenticated",
      "reads": [],
      "writes": [],
      "externalCallIds": [],
      "work": "light",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/(main)/boards/create/page.tsx"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "page-boards",
      "serviceId": "web",
      "method": "GET",
      "path": "/boards",
      "kind": "page",
      "auth": "authenticated",
      "reads": [],
      "writes": [],
      "externalCallIds": [],
      "work": "light",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/(main)/boards/page.tsx"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "page-console",
      "serviceId": "web",
      "method": "GET",
      "path": "/console/[websiteId]",
      "kind": "page",
      "auth": "authenticated",
      "reads": [],
      "writes": [],
      "externalCallIds": [],
      "work": "light",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/(main)/console/[websiteId]/page.tsx"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "page-dashboard-edit",
      "serviceId": "web",
      "method": "GET",
      "path": "/dashboard/edit",
      "kind": "page",
      "auth": "authenticated",
      "reads": [],
      "writes": [],
      "externalCallIds": [],
      "work": "light",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/(main)/dashboard/edit/page.tsx"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "page-dashboard",
      "serviceId": "web",
      "method": "GET",
      "path": "/dashboard",
      "kind": "page",
      "auth": "authenticated",
      "reads": [],
      "writes": [],
      "externalCallIds": [],
      "work": "light",
      "trafficHint": "hot",
      "evidence": [
        {
          "file": "src/app/(main)/dashboard/page.tsx",
          "note": "main post-login landing page"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "page-links-edit",
      "serviceId": "web",
      "method": "GET",
      "path": "/links/[linkId]/edit",
      "kind": "page",
      "auth": "authenticated",
      "reads": [],
      "writes": [],
      "externalCallIds": [],
      "work": "light",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/(main)/links/[linkId]/edit/page.tsx"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "page-links-view",
      "serviceId": "web",
      "method": "GET",
      "path": "/links/[linkId]",
      "kind": "page",
      "auth": "authenticated",
      "reads": [],
      "writes": [],
      "externalCallIds": [],
      "work": "light",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/(main)/links/[linkId]/page.tsx"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "page-links",
      "serviceId": "web",
      "method": "GET",
      "path": "/links",
      "kind": "page",
      "auth": "authenticated",
      "reads": [],
      "writes": [],
      "externalCallIds": [],
      "work": "light",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/(main)/links/page.tsx"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "page-pixels-edit",
      "serviceId": "web",
      "method": "GET",
      "path": "/pixels/[pixelId]/edit",
      "kind": "page",
      "auth": "authenticated",
      "reads": [],
      "writes": [],
      "externalCallIds": [],
      "work": "light",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/(main)/pixels/[pixelId]/edit/page.tsx"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "page-pixels-view",
      "serviceId": "web",
      "method": "GET",
      "path": "/pixels/[pixelId]",
      "kind": "page",
      "auth": "authenticated",
      "reads": [],
      "writes": [],
      "externalCallIds": [],
      "work": "light",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/(main)/pixels/[pixelId]/page.tsx"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "page-pixels",
      "serviceId": "web",
      "method": "GET",
      "path": "/pixels",
      "kind": "page",
      "auth": "authenticated",
      "reads": [],
      "writes": [],
      "externalCallIds": [],
      "work": "light",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/(main)/pixels/page.tsx"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "page-settings-preferences",
      "serviceId": "web",
      "method": "GET",
      "path": "/settings/preferences",
      "kind": "page",
      "auth": "authenticated",
      "reads": [],
      "writes": [],
      "externalCallIds": [],
      "work": "light",
      "trafficHint": "rare",
      "evidence": [
        {
          "file": "src/app/(main)/settings/preferences/page.tsx"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "page-settings-profile",
      "serviceId": "web",
      "method": "GET",
      "path": "/settings/profile",
      "kind": "page",
      "auth": "authenticated",
      "reads": [],
      "writes": [],
      "externalCallIds": [],
      "work": "light",
      "trafficHint": "rare",
      "evidence": [
        {
          "file": "src/app/(main)/settings/profile/page.tsx"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "page-settings-team",
      "serviceId": "web",
      "method": "GET",
      "path": "/settings/teams/[teamId]",
      "kind": "page",
      "auth": "authenticated",
      "reads": [],
      "writes": [],
      "externalCallIds": [],
      "work": "light",
      "trafficHint": "rare",
      "evidence": [
        {
          "file": "src/app/(main)/settings/teams/[teamId]/page.tsx"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "page-settings-teams",
      "serviceId": "web",
      "method": "GET",
      "path": "/settings/teams",
      "kind": "page",
      "auth": "authenticated",
      "reads": [],
      "writes": [],
      "externalCallIds": [],
      "work": "light",
      "trafficHint": "rare",
      "evidence": [
        {
          "file": "src/app/(main)/settings/teams/page.tsx"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "page-settings-website",
      "serviceId": "web",
      "method": "GET",
      "path": "/settings/websites/[websiteId]",
      "kind": "page",
      "auth": "authenticated",
      "reads": [],
      "writes": [],
      "externalCallIds": [],
      "work": "light",
      "trafficHint": "rare",
      "evidence": [
        {
          "file": "src/app/(main)/settings/websites/[websiteId]/page.tsx"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "page-settings-websites",
      "serviceId": "web",
      "method": "GET",
      "path": "/settings/websites",
      "kind": "page",
      "auth": "authenticated",
      "reads": [],
      "writes": [],
      "externalCallIds": [],
      "work": "light",
      "trafficHint": "rare",
      "evidence": [
        {
          "file": "src/app/(main)/settings/websites/page.tsx"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "page-teams",
      "serviceId": "web",
      "method": "GET",
      "path": "/teams",
      "kind": "page",
      "auth": "authenticated",
      "reads": [],
      "writes": [],
      "externalCallIds": [],
      "work": "light",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/(main)/teams/page.tsx"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "page-website-attribution",
      "serviceId": "web",
      "method": "GET",
      "path": "/websites/[websiteId]/attribution",
      "kind": "page",
      "auth": "authenticated",
      "reads": [],
      "writes": [],
      "externalCallIds": [],
      "work": "light",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/(main)/websites/[websiteId]/(reports)/attribution/page.tsx"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "page-website-breakdown",
      "serviceId": "web",
      "method": "GET",
      "path": "/websites/[websiteId]/breakdown",
      "kind": "page",
      "auth": "authenticated",
      "reads": [],
      "writes": [],
      "externalCallIds": [],
      "work": "light",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/(main)/websites/[websiteId]/(reports)/breakdown/page.tsx"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "page-website-funnels",
      "serviceId": "web",
      "method": "GET",
      "path": "/websites/[websiteId]/funnels",
      "kind": "page",
      "auth": "authenticated",
      "reads": [],
      "writes": [],
      "externalCallIds": [],
      "work": "light",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/(main)/websites/[websiteId]/(reports)/funnels/page.tsx"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "page-website-goals",
      "serviceId": "web",
      "method": "GET",
      "path": "/websites/[websiteId]/goals",
      "kind": "page",
      "auth": "authenticated",
      "reads": [],
      "writes": [],
      "externalCallIds": [],
      "work": "light",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/(main)/websites/[websiteId]/(reports)/goals/page.tsx"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "page-website-heatmaps",
      "serviceId": "web",
      "method": "GET",
      "path": "/websites/[websiteId]/heatmaps",
      "kind": "page",
      "auth": "authenticated",
      "reads": [],
      "writes": [],
      "externalCallIds": [],
      "work": "light",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/(main)/websites/[websiteId]/(reports)/heatmaps/page.tsx"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "page-website-journeys",
      "serviceId": "web",
      "method": "GET",
      "path": "/websites/[websiteId]/journeys",
      "kind": "page",
      "auth": "authenticated",
      "reads": [],
      "writes": [],
      "externalCallIds": [],
      "work": "light",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/(main)/websites/[websiteId]/(reports)/journeys/page.tsx"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "page-website-performance",
      "serviceId": "web",
      "method": "GET",
      "path": "/websites/[websiteId]/performance",
      "kind": "page",
      "auth": "authenticated",
      "reads": [],
      "writes": [],
      "externalCallIds": [],
      "work": "light",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/(main)/websites/[websiteId]/(reports)/performance/page.tsx"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "page-website-retention",
      "serviceId": "web",
      "method": "GET",
      "path": "/websites/[websiteId]/retention",
      "kind": "page",
      "auth": "authenticated",
      "reads": [],
      "writes": [],
      "externalCallIds": [],
      "work": "light",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/(main)/websites/[websiteId]/(reports)/retention/page.tsx"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "page-website-revenue",
      "serviceId": "web",
      "method": "GET",
      "path": "/websites/[websiteId]/revenue",
      "kind": "page",
      "auth": "authenticated",
      "reads": [],
      "writes": [],
      "externalCallIds": [],
      "work": "light",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/(main)/websites/[websiteId]/(reports)/revenue/page.tsx"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "page-website-utm",
      "serviceId": "web",
      "method": "GET",
      "path": "/websites/[websiteId]/utm",
      "kind": "page",
      "auth": "authenticated",
      "reads": [],
      "writes": [],
      "externalCallIds": [],
      "work": "light",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/(main)/websites/[websiteId]/(reports)/utm/page.tsx"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "page-modal-replay",
      "serviceId": "web",
      "method": "GET",
      "path": "/websites/[websiteId]/(.)replays/[sessionId]",
      "kind": "page",
      "auth": "authenticated",
      "reads": [],
      "writes": [],
      "externalCallIds": [],
      "work": "light",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/(main)/websites/[websiteId]/@modal/(.)replays/[sessionId]/page.tsx"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "page-modal-session",
      "serviceId": "web",
      "method": "GET",
      "path": "/websites/[websiteId]/(.)sessions/[sessionId]",
      "kind": "page",
      "auth": "authenticated",
      "reads": [],
      "writes": [],
      "externalCallIds": [],
      "work": "light",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/(main)/websites/[websiteId]/@modal/(.)sessions/[sessionId]/page.tsx"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "page-website-cohorts",
      "serviceId": "web",
      "method": "GET",
      "path": "/websites/[websiteId]/cohorts",
      "kind": "page",
      "auth": "authenticated",
      "reads": [],
      "writes": [],
      "externalCallIds": [],
      "work": "light",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/(main)/websites/[websiteId]/cohorts/page.tsx"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "page-website-compare",
      "serviceId": "web",
      "method": "GET",
      "path": "/websites/[websiteId]/compare",
      "kind": "page",
      "auth": "authenticated",
      "reads": [],
      "writes": [],
      "externalCallIds": [],
      "work": "light",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/(main)/websites/[websiteId]/compare/page.tsx"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "page-website-events",
      "serviceId": "web",
      "method": "GET",
      "path": "/websites/[websiteId]/events",
      "kind": "page",
      "auth": "authenticated",
      "reads": [],
      "writes": [],
      "externalCallIds": [],
      "work": "light",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/(main)/websites/[websiteId]/events/page.tsx"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "page-website-overview",
      "serviceId": "web",
      "method": "GET",
      "path": "/websites/[websiteId]",
      "kind": "page",
      "auth": "authenticated",
      "reads": [],
      "writes": [],
      "externalCallIds": [],
      "work": "light",
      "trafficHint": "hot",
      "evidence": [
        {
          "file": "src/app/(main)/websites/[websiteId]/page.tsx",
          "note": "main website overview dashboard"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "page-website-realtime",
      "serviceId": "web",
      "method": "GET",
      "path": "/websites/[websiteId]/realtime",
      "kind": "page",
      "auth": "authenticated",
      "reads": [],
      "writes": [],
      "externalCallIds": [],
      "work": "light",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/(main)/websites/[websiteId]/realtime/page.tsx"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "page-website-replay",
      "serviceId": "web",
      "method": "GET",
      "path": "/websites/[websiteId]/replays/[replayId]",
      "kind": "page",
      "auth": "authenticated",
      "reads": [],
      "writes": [],
      "externalCallIds": [],
      "work": "light",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/(main)/websites/[websiteId]/replays/[replayId]/page.tsx"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "page-website-replays",
      "serviceId": "web",
      "method": "GET",
      "path": "/websites/[websiteId]/replays",
      "kind": "page",
      "auth": "authenticated",
      "reads": [],
      "writes": [],
      "externalCallIds": [],
      "work": "light",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/(main)/websites/[websiteId]/replays/page.tsx"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "page-website-segments",
      "serviceId": "web",
      "method": "GET",
      "path": "/websites/[websiteId]/segments",
      "kind": "page",
      "auth": "authenticated",
      "reads": [],
      "writes": [],
      "externalCallIds": [],
      "work": "light",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/(main)/websites/[websiteId]/segments/page.tsx"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "page-website-session",
      "serviceId": "web",
      "method": "GET",
      "path": "/websites/[websiteId]/sessions/[sessionId]",
      "kind": "page",
      "auth": "authenticated",
      "reads": [],
      "writes": [],
      "externalCallIds": [],
      "work": "light",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/(main)/websites/[websiteId]/sessions/[sessionId]/page.tsx"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "page-website-sessions",
      "serviceId": "web",
      "method": "GET",
      "path": "/websites/[websiteId]/sessions",
      "kind": "page",
      "auth": "authenticated",
      "reads": [],
      "writes": [],
      "externalCallIds": [],
      "work": "light",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/(main)/websites/[websiteId]/sessions/page.tsx"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "page-website-settings",
      "serviceId": "web",
      "method": "GET",
      "path": "/websites/[websiteId]/settings",
      "kind": "page",
      "auth": "authenticated",
      "reads": [],
      "writes": [],
      "externalCallIds": [],
      "work": "light",
      "trafficHint": "rare",
      "evidence": [
        {
          "file": "src/app/(main)/websites/[websiteId]/settings/page.tsx"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "page-websites",
      "serviceId": "web",
      "method": "GET",
      "path": "/websites",
      "kind": "page",
      "auth": "authenticated",
      "reads": [],
      "writes": [],
      "externalCallIds": [],
      "work": "light",
      "trafficHint": "hot",
      "evidence": [
        {
          "file": "src/app/(main)/websites/page.tsx",
          "note": "website list, common landing page"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "page-login",
      "serviceId": "web",
      "method": "GET",
      "path": "/login",
      "kind": "page",
      "auth": "public",
      "reads": [],
      "writes": [],
      "externalCallIds": [],
      "work": "light",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/login/page.tsx"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "page-logout",
      "serviceId": "web",
      "method": "GET",
      "path": "/logout",
      "kind": "page",
      "auth": "public",
      "reads": [],
      "writes": [],
      "externalCallIds": [],
      "work": "light",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/logout/page.tsx"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "page-home",
      "serviceId": "web",
      "method": "GET",
      "path": "/",
      "kind": "page",
      "auth": "public",
      "reads": [],
      "writes": [],
      "externalCallIds": [],
      "work": "light",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/page.tsx"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "page-share-slug",
      "serviceId": "web",
      "method": "GET",
      "path": "/share/[slug]/[[...path]]",
      "kind": "page",
      "auth": "public",
      "reads": [],
      "writes": [],
      "externalCallIds": [],
      "work": "light",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "src/app/share/[slug]/[[...path]]/page.tsx",
          "note": "wrapper around SharePage client component"
        }
      ],
      "confidence": "medium"
    },
    {
      "id": "page-sso",
      "serviceId": "web",
      "method": "GET",
      "path": "/sso",
      "kind": "page",
      "auth": "public",
      "reads": [],
      "writes": [],
      "externalCallIds": [],
      "work": "light",
      "trafficHint": "rare",
      "evidence": [
        {
          "file": "src/app/sso/page.tsx",
          "note": "wrapper around SSOPage client component in Suspense"
        }
      ],
      "confidence": "medium"
    }
  ],
  "dataStores": [
    {
      "id": "pg",
      "kind": "postgres",
      "provider": "postgresql",
      "orm": "prisma",
      "tableCount": 18,
      "connection": "pool",
      "evidence": [
        {
          "file": "prisma/schema.prisma",
          "lines": "1-60",
          "note": "18 models, postgresql datasource"
        },
        {
          "file": "src/lib/prisma.ts",
          "lines": "1-20",
          "note": "PrismaPg adapter + read-replica extension"
        }
      ]
    },
    {
      "id": "ch",
      "kind": "other",
      "provider": "clickhouse",
      "connection": "http-api",
      "evidence": [
        {
          "file": "db/clickhouse/schema.sql",
          "lines": "1-200",
          "note": "website_event, event_data, session_data tables"
        },
        {
          "file": "src/lib/clickhouse.ts",
          "lines": "1-50",
          "note": "createClient over HTTP, enabled via CLICKHOUSE_URL"
        }
      ]
    },
    {
      "id": "rd",
      "kind": "redis",
      "provider": "redis",
      "connection": "pool",
      "evidence": [
        {
          "file": "src/lib/redis.ts",
          "note": "single long-lived client wrapper, enabled via REDIS_URL"
        }
      ]
    }
  ],
  "jobs": [
    {
      "id": "job-kafka-ingest",
      "trigger": "queue",
      "queueProvider": "kafka",
      "description": "Optional Kafka producer for streaming ingested events, active when KAFKA_URL/KAFKA_BROKER configured",
      "evidence": [
        {
          "file": "src/lib/kafka.ts",
          "note": "producer connect/send with batching by byte size"
        },
        {
          "file": "src/lib/db.ts",
          "lines": "20-33",
          "note": "runQuery prefers KAFKA queries key when clickhouse enabled"
        }
      ],
      "confidence": "medium"
    }
  ],
  "externals": [
    {
      "id": "ext-cloud-billing",
      "category": "other",
      "provider": "internal cloud billing/account service (fetchAccount/fetchTeam)",
      "blocking": true,
      "evidence": [
        {
          "file": "src/app/api/auth/verify/route.ts",
          "note": "awaited fetchAccount/fetchTeam under CLOUD_MODE"
        },
        {
          "file": "src/app/api/record/route.ts",
          "lines": "150-170",
          "note": "awaited fetchTeam/fetchAccount for subscription gating"
        },
        {
          "file": "src/app/api/teams/route.ts",
          "note": "awaited fetchAccount after team creation"
        }
      ]
    }
  ],
  "realtime": [
    {
      "kind": "polling",
      "evidence": [
        {
          "file": "src/app/api/realtime/[websiteId]/route.ts",
          "note": "realtime page likely polls this endpoint; no websocket found"
        },
        {
          "file": "src/app/api/websites/[websiteId]/active/route.ts",
          "note": "active visitor count, polled by overview widget"
        }
      ]
    }
  ],
  "warnings": [
    "queries/sql and queries/prisma implementation files not shown; datastore choice (postgres vs clickhouse) inferred from lib/db.ts runQuery abstraction and dep facts, not directly verified per query.",
    "Kafka producer usage inferred from lib/kafka.ts and lib/db.ts abstraction; no direct call site in queries/sql observed.",
    "Most page.tsx files under src/app/(main) were not inspected beyond two samples (AdminTeamPage, SSOPage wrappers); classified generically as light client-rendered shells with low confidence.",
    "Several deep website-scoped API routes (sessions/[sessionId], sessions, sessions/stats, sessions/weekly, shares, stats, transfer, values, websites root) were present only in the deterministic inventory without inspected source; classified by naming convention with low confidence.",
    "isbot bot-detection and IP blocklist checks are local library calls, not modeled as external network dependencies."
  ],
  "schemaVersion": 0,
  "meta": {
    "source": "github",
    "repo": "https://github.com/umami-software/umami",
    "analyzedAt": "2026-07-07T18:59:39.130Z",
    "fileCount": 998,
    "extractorModel": "anthropic/claude-sonnet-5",
    "skeramVersion": "0.0.1",
    "commit": "af1b6c6efcad",
    "framework": "next",
    "deployHint": "docker"
  }
}