šŸŽ‰ 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.