šŸŽ‰ Exciting news! CursorLens Now supports Caching for AnthropicCheck out the guide

Project Structure

CursorLens follows a typical Next.js project structure with some additional directories for backend functionality. Here's an overview of the main directories and their purposes

CursorLens/
ā”œā”€ā”€ app/
│ ā”œā”€ā”€ [...openai]/
│ │ └── route.ts
│ ā”œā”€ā”€ api/
│ │ ā”œā”€ā”€ chat/
│ │ ā”œā”€ā”€ configurations/
│ │ ā”œā”€ā”€ logs/
│ │ ā”œā”€ā”€ stats/
│ │ └── test/
│ ā”œā”€ā”€ configurations/
│ │ └── page.tsx
│ ā”œā”€ā”€ logs/
│ │ ā”œā”€ā”€ [id]/
│ │ │ └── page.tsx
│ │ ā”œā”€ā”€ LogsList.tsx
│ │ └── page.tsx
│ ā”œā”€ā”€ stats/
│ │ └── page.tsx
│ ā”œā”€ā”€ actions.ts
ā”œā”€ā”€ components/
│ ā”œā”€ā”€ ui/
│ │ └── # Various UI components
│ ā”œā”€ā”€ NavBar.tsx
│ ā”œā”€ā”€ theme-provider.tsx
│ └── theme-toggle.tsx
└── lib/
ā”œā”€ā”€ db.ts
ā”œā”€ā”€ prisma.ts

Key directories and files:

  • app/: Contains the main application code using Next.js 13+ App Router
    • [...openai]/: Catch-all route for OpenAI-related functionality
    • api/: API routes for various functionalities
    • configurations/, logs/, stats/: Page components for different sections
    • actions.ts: Server actions (new in Next.js 13)
    • layout.tsx: Root layout component
    • page.tsx: Home page component
  • components/: Reusable React components
    • ui/: UI components, likely using a component library
  • lib/: Utility functions and shared logic
    • db.ts and prisma.ts: Database and Prisma ORM setup
    • utils.ts: General utility functions

This structure leverages Next.js 13+ features like App Router and server components, organizing the application into logical sections for API routes, pages, and shared components.