Spaces:
Running
Running
Project Structure
Directory Layout
client/: Frontend React applicationcomponents/: Feature-based UI componentsApp/: Main application component with error boundariesAiResponse/: AI response display and chat interface componentsAnalytics/: Search analytics and statistics componentsLogs/: Application logging and debug componentsPages/: Route-level page componentsMain/: Main search interface with menu and settings
Search/: Search functionality componentsForm/: Search input and form componentsHistory/: Search history and saved searchesResults/: Search results display (textual and graphical)
Settings/: Application settings and configuration
modules/: Core business logic (PubSub stores, search services, database layers)hooks/: Custom React hookspublic/: Static assets
server/: Server hooks for search endpoints, caching, compression, CORS, and API validationshared/: Utilities shared between client and servervite.config.ts: Build and server configuration with environment-driven feature flags
Component Organization
Components are organized by feature domain. Each component folder contains:
- Component implementation
- Related styles
- Custom hooks
- Utility functions
- Tests
This self-contained structure makes it easy for agents to understand and modify components without navigating across the codebase.
Related Topics
- Overview:
docs/overview.md- System architecture and data flow - UI Components:
docs/ui-components.md- Component architecture and PubSub patterns - Quick Start:
docs/quick-start.md- Installation and setup