AI-assisted social life planner for Buenos Aires. PWA.
# Localist — Cursor Rules ## Project AI-assisted social life planner for Buenos Aires. PWA. ## Stack - Next.js 14+ (App Router), TypeScript, Tailwind CSS, shadcn/ui - Supabase (Postgres, Auth, RLS) - Stripe (subscriptions) - Vercel (deploy) ## Conventions - Use `src/` directory (app, components, lib, types, hooks) - Server components by default; add "use client" only when needed - Supabase client via `@supabase/ssr` (not deprecated `auth-helpers`) - Use `@/` import alias - Tailwind for all styling — no CSS modules - shadcn/ui components in `src/components/ui/` - Custom components in `src/components/` - Types in `src/types/` - Supabase helpers in `src/lib/supabase/` - API routes in `src/app/api/` - DB migrations in `supabase/migrations/` - Scripts (ingestion, seeds) in `scripts/` ## Code Style - Functional components, named exports - Prefer `interface` over `type` for object shapes - Use Supabase generated types from `src/types/database.ts` - Error handling: try/catch in server actions, error boundaries in UI - Keep components small and composable ## DB Tables (MVP) users, user_preferences, venues, highlights, ratings, saved_items, ingestion_jobs (events table comes in Phase 2) ## Current Phase MVP: Highlights (Google Places → venues + highlights), UI shell, auth, save/rate
Comprehensive .cursorrules file for Next.js 15 App Router projects with TypeScript, enforcing server components by default, proper use of "use client" directive, and App Router conventions.
Cursor rules for Python FastAPI projects enforcing async patterns, Pydantic v2 models, dependency injection, and proper error handling.
Rules for consistent React component development with TypeScript interfaces, proper hook patterns, and component composition.
Rules optimizing Cursor Agent mode behavior including multi-file editing context, session management, and autonomous task completion patterns.
Cursor rules for projects using Tailwind CSS with shadcn/ui component library, enforcing consistent utility class usage and component patterns.
Rules for Go backend services enforcing idiomatic Go patterns, proper error handling, and clean architecture conventions.