├── .env.example ├── .eslintrc.json ├── .gitignore ├── .prettierrc ├── CONTRIBUTING.md ├── Dockerfile ├── LICENSE ├── README.md ├── components.json ├── docker-compose.yml ├── index.html ├── next.config.js ├── next.config.mjs ├── package.json ├── pnpm-lock.yaml ├── postcss.config.mjs ├── prisma ├── migrations │ ├── 20240815195611_init │ │ └── migration.sql │ ├── 20240815203248_add_metadata │ │ └── migration.sql │ ├── 20240815204542_add_config │ │ └── migration.sql │ ├── 20240815210443_add_provider_to_ai_configuration │ │ └── migration.sql │ ├── 20240816193734_add_api_key │ │ └── migration.sql │ ├── 20240816194453_add_configuration_relation │ │ └── migration.sql │ ├── 20240824081904_add_cost_model │ │ └── migration.sql │ ├── 20241012125518_convert_fields_to_json │ │ └── migration.sql │ └── migration_lock.toml ├── schema.prisma └── seed.ts ├── public ├── ant-cache-create.png ├── ant-cache-read.png ├── anthropicCashedXConfig.png ├── cl-dashboard.png ├── cl-settings.png ├── cl-stats.jpeg └── cl-stats.png ├── scripts └── update-log-costs.ts ├── src ├── app │ ├── [...openai] │ │ └── route.ts │ ├── actions.ts │ ├── api │ │ ├── configurations │ │ │ └── route.ts │ │ ├── logs │ │ │ ├── [id] │ │ │ │ └── route.ts │ │ │ └── route.ts │ │ └── stats │ │ │ └── route.ts │ ├── configurations │ │ └── page.tsx │ ├── favicon.ico │ ├── globals.css │ ├── layout.tsx │ ├── logs │ │ └── page.tsx │ ├── opengraph-image.png │ ├── page.tsx │ ├── stats │ │ └── page.tsx │ └── twitter-image.png ├── components │ ├── ConfigurationModal.tsx │ ├── LogDetails.test.tsx │ ├── LogDetails.tsx │ ├── LogsList.tsx │ ├── NavBar.tsx │ ├── theme-provider.tsx │ ├── theme-toggle.tsx │ └── ui │ │ ├── alert.tsx │ │ ├── badge.tsx │ │ ├── button.tsx │ │ ├── calendar.tsx │ │ ├── card.tsx │ │ ├── chart.tsx │ │ ├── checkbox.tsx │ │ ├── dialog.tsx │ │ ├── input.tsx │ │ ├── label.tsx │ │ ├── popover.tsx │ │ ├── progress.tsx │ │ ├── scroll-area.tsx │ │ ├── select.tsx │ │ ├── skeleton.tsx │ │ ├── sonner.tsx │ │ ├── switch.tsx │ │ └── table.tsx ├── env.ts ├── lib │ ├── cost-calculator.ts │ ├── db.ts │ ├── model-config.ts │ ├── prisma.ts │ └── utils.ts └── types │ └── logs.ts ├── start.sh ├── tailwind.config.ts ├── tsconfig.json ├── vitest.config.mts └── vitest.setup.ts /.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedMP/CursorLens/HEAD/.env.example -------------------------------------------------------------------------------- /.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "next/core-web-vitals" 3 | } 4 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedMP/CursorLens/HEAD/.gitignore -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedMP/CursorLens/HEAD/.prettierrc -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedMP/CursorLens/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedMP/CursorLens/HEAD/Dockerfile -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedMP/CursorLens/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedMP/CursorLens/HEAD/README.md -------------------------------------------------------------------------------- /components.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedMP/CursorLens/HEAD/components.json -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedMP/CursorLens/HEAD/docker-compose.yml -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedMP/CursorLens/HEAD/index.html -------------------------------------------------------------------------------- /next.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedMP/CursorLens/HEAD/next.config.js -------------------------------------------------------------------------------- /next.config.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedMP/CursorLens/HEAD/next.config.mjs -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedMP/CursorLens/HEAD/package.json -------------------------------------------------------------------------------- /pnpm-lock.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedMP/CursorLens/HEAD/pnpm-lock.yaml -------------------------------------------------------------------------------- /postcss.config.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedMP/CursorLens/HEAD/postcss.config.mjs -------------------------------------------------------------------------------- /prisma/migrations/20240815195611_init/migration.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedMP/CursorLens/HEAD/prisma/migrations/20240815195611_init/migration.sql -------------------------------------------------------------------------------- /prisma/migrations/20240815203248_add_metadata/migration.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedMP/CursorLens/HEAD/prisma/migrations/20240815203248_add_metadata/migration.sql -------------------------------------------------------------------------------- /prisma/migrations/20240815204542_add_config/migration.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedMP/CursorLens/HEAD/prisma/migrations/20240815204542_add_config/migration.sql -------------------------------------------------------------------------------- /prisma/migrations/20240815210443_add_provider_to_ai_configuration/migration.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedMP/CursorLens/HEAD/prisma/migrations/20240815210443_add_provider_to_ai_configuration/migration.sql -------------------------------------------------------------------------------- /prisma/migrations/20240816193734_add_api_key/migration.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedMP/CursorLens/HEAD/prisma/migrations/20240816193734_add_api_key/migration.sql -------------------------------------------------------------------------------- /prisma/migrations/20240816194453_add_configuration_relation/migration.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedMP/CursorLens/HEAD/prisma/migrations/20240816194453_add_configuration_relation/migration.sql -------------------------------------------------------------------------------- /prisma/migrations/20240824081904_add_cost_model/migration.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedMP/CursorLens/HEAD/prisma/migrations/20240824081904_add_cost_model/migration.sql -------------------------------------------------------------------------------- /prisma/migrations/20241012125518_convert_fields_to_json/migration.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedMP/CursorLens/HEAD/prisma/migrations/20241012125518_convert_fields_to_json/migration.sql -------------------------------------------------------------------------------- /prisma/migrations/migration_lock.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedMP/CursorLens/HEAD/prisma/migrations/migration_lock.toml -------------------------------------------------------------------------------- /prisma/schema.prisma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedMP/CursorLens/HEAD/prisma/schema.prisma -------------------------------------------------------------------------------- /prisma/seed.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedMP/CursorLens/HEAD/prisma/seed.ts -------------------------------------------------------------------------------- /public/ant-cache-create.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedMP/CursorLens/HEAD/public/ant-cache-create.png -------------------------------------------------------------------------------- /public/ant-cache-read.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedMP/CursorLens/HEAD/public/ant-cache-read.png -------------------------------------------------------------------------------- /public/anthropicCashedXConfig.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedMP/CursorLens/HEAD/public/anthropicCashedXConfig.png -------------------------------------------------------------------------------- /public/cl-dashboard.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedMP/CursorLens/HEAD/public/cl-dashboard.png -------------------------------------------------------------------------------- /public/cl-settings.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedMP/CursorLens/HEAD/public/cl-settings.png -------------------------------------------------------------------------------- /public/cl-stats.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedMP/CursorLens/HEAD/public/cl-stats.jpeg -------------------------------------------------------------------------------- /public/cl-stats.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedMP/CursorLens/HEAD/public/cl-stats.png -------------------------------------------------------------------------------- /scripts/update-log-costs.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedMP/CursorLens/HEAD/scripts/update-log-costs.ts -------------------------------------------------------------------------------- /src/app/[...openai]/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedMP/CursorLens/HEAD/src/app/[...openai]/route.ts -------------------------------------------------------------------------------- /src/app/actions.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedMP/CursorLens/HEAD/src/app/actions.ts -------------------------------------------------------------------------------- /src/app/api/configurations/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedMP/CursorLens/HEAD/src/app/api/configurations/route.ts -------------------------------------------------------------------------------- /src/app/api/logs/[id]/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedMP/CursorLens/HEAD/src/app/api/logs/[id]/route.ts -------------------------------------------------------------------------------- /src/app/api/logs/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedMP/CursorLens/HEAD/src/app/api/logs/route.ts -------------------------------------------------------------------------------- /src/app/api/stats/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedMP/CursorLens/HEAD/src/app/api/stats/route.ts -------------------------------------------------------------------------------- /src/app/configurations/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedMP/CursorLens/HEAD/src/app/configurations/page.tsx -------------------------------------------------------------------------------- /src/app/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedMP/CursorLens/HEAD/src/app/favicon.ico -------------------------------------------------------------------------------- /src/app/globals.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedMP/CursorLens/HEAD/src/app/globals.css -------------------------------------------------------------------------------- /src/app/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedMP/CursorLens/HEAD/src/app/layout.tsx -------------------------------------------------------------------------------- /src/app/logs/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedMP/CursorLens/HEAD/src/app/logs/page.tsx -------------------------------------------------------------------------------- /src/app/opengraph-image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedMP/CursorLens/HEAD/src/app/opengraph-image.png -------------------------------------------------------------------------------- /src/app/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedMP/CursorLens/HEAD/src/app/page.tsx -------------------------------------------------------------------------------- /src/app/stats/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedMP/CursorLens/HEAD/src/app/stats/page.tsx -------------------------------------------------------------------------------- /src/app/twitter-image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedMP/CursorLens/HEAD/src/app/twitter-image.png -------------------------------------------------------------------------------- /src/components/ConfigurationModal.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedMP/CursorLens/HEAD/src/components/ConfigurationModal.tsx -------------------------------------------------------------------------------- /src/components/LogDetails.test.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedMP/CursorLens/HEAD/src/components/LogDetails.test.tsx -------------------------------------------------------------------------------- /src/components/LogDetails.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedMP/CursorLens/HEAD/src/components/LogDetails.tsx -------------------------------------------------------------------------------- /src/components/LogsList.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedMP/CursorLens/HEAD/src/components/LogsList.tsx -------------------------------------------------------------------------------- /src/components/NavBar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedMP/CursorLens/HEAD/src/components/NavBar.tsx -------------------------------------------------------------------------------- /src/components/theme-provider.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedMP/CursorLens/HEAD/src/components/theme-provider.tsx -------------------------------------------------------------------------------- /src/components/theme-toggle.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedMP/CursorLens/HEAD/src/components/theme-toggle.tsx -------------------------------------------------------------------------------- /src/components/ui/alert.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedMP/CursorLens/HEAD/src/components/ui/alert.tsx -------------------------------------------------------------------------------- /src/components/ui/badge.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedMP/CursorLens/HEAD/src/components/ui/badge.tsx -------------------------------------------------------------------------------- /src/components/ui/button.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedMP/CursorLens/HEAD/src/components/ui/button.tsx -------------------------------------------------------------------------------- /src/components/ui/calendar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedMP/CursorLens/HEAD/src/components/ui/calendar.tsx -------------------------------------------------------------------------------- /src/components/ui/card.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedMP/CursorLens/HEAD/src/components/ui/card.tsx -------------------------------------------------------------------------------- /src/components/ui/chart.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedMP/CursorLens/HEAD/src/components/ui/chart.tsx -------------------------------------------------------------------------------- /src/components/ui/checkbox.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedMP/CursorLens/HEAD/src/components/ui/checkbox.tsx -------------------------------------------------------------------------------- /src/components/ui/dialog.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedMP/CursorLens/HEAD/src/components/ui/dialog.tsx -------------------------------------------------------------------------------- /src/components/ui/input.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedMP/CursorLens/HEAD/src/components/ui/input.tsx -------------------------------------------------------------------------------- /src/components/ui/label.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedMP/CursorLens/HEAD/src/components/ui/label.tsx -------------------------------------------------------------------------------- /src/components/ui/popover.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedMP/CursorLens/HEAD/src/components/ui/popover.tsx -------------------------------------------------------------------------------- /src/components/ui/progress.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedMP/CursorLens/HEAD/src/components/ui/progress.tsx -------------------------------------------------------------------------------- /src/components/ui/scroll-area.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedMP/CursorLens/HEAD/src/components/ui/scroll-area.tsx -------------------------------------------------------------------------------- /src/components/ui/select.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedMP/CursorLens/HEAD/src/components/ui/select.tsx -------------------------------------------------------------------------------- /src/components/ui/skeleton.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedMP/CursorLens/HEAD/src/components/ui/skeleton.tsx -------------------------------------------------------------------------------- /src/components/ui/sonner.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedMP/CursorLens/HEAD/src/components/ui/sonner.tsx -------------------------------------------------------------------------------- /src/components/ui/switch.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedMP/CursorLens/HEAD/src/components/ui/switch.tsx -------------------------------------------------------------------------------- /src/components/ui/table.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedMP/CursorLens/HEAD/src/components/ui/table.tsx -------------------------------------------------------------------------------- /src/env.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedMP/CursorLens/HEAD/src/env.ts -------------------------------------------------------------------------------- /src/lib/cost-calculator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedMP/CursorLens/HEAD/src/lib/cost-calculator.ts -------------------------------------------------------------------------------- /src/lib/db.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedMP/CursorLens/HEAD/src/lib/db.ts -------------------------------------------------------------------------------- /src/lib/model-config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedMP/CursorLens/HEAD/src/lib/model-config.ts -------------------------------------------------------------------------------- /src/lib/prisma.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedMP/CursorLens/HEAD/src/lib/prisma.ts -------------------------------------------------------------------------------- /src/lib/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedMP/CursorLens/HEAD/src/lib/utils.ts -------------------------------------------------------------------------------- /src/types/logs.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedMP/CursorLens/HEAD/src/types/logs.ts -------------------------------------------------------------------------------- /start.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedMP/CursorLens/HEAD/start.sh -------------------------------------------------------------------------------- /tailwind.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedMP/CursorLens/HEAD/tailwind.config.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedMP/CursorLens/HEAD/tsconfig.json -------------------------------------------------------------------------------- /vitest.config.mts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedMP/CursorLens/HEAD/vitest.config.mts -------------------------------------------------------------------------------- /vitest.setup.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedMP/CursorLens/HEAD/vitest.setup.ts --------------------------------------------------------------------------------