LostMind AI Monorepo
Production-ready AI-powered SaaS platform built with Next.js 15, Turborepo, and FastAPI.
π Source of truth: refer to _archived/projects/lostmindai-turborepo/docs/project/CURRENT_PROJECT_STATE.md for the canonical status. Update it first whenever scope or implementation changes.
Tech Stack
- Frontend: Next.js 15 (App Router), React 19 Stable, TypeScript
- Backend: FastAPI (Python) for compute-intensive tasks
- Database: PostgreSQL with Prisma ORM and Row Level Security
- Authentication: Auth.js v5 with Google OAuth
- Payments: Stripe
- AI: Google Generative AI (Gemini)
- Deployment: Vercel (Next.js), Google Cloud Run (FastAPI)
- Monorepo: Turborepo with pnpm workspaces
π οΈ Development Tools & Enhancements
Task Management System
- Automated task lifecycle management with status tracking (π’ Active, β Completed, π Blocked)
- Task cleanup automation prevents accumulation of completed work
- Smart task auditing with
pnpm run tasks:audit - Format validation ensures consistent task file structure
TypeScript Configuration Standards
- Inheritance-aware configuration prevents duplicate lib entries
- Monorepo-specific patterns for package organization
- Automated validation catches common configuration issues
- Clear inheritance guidelines for all package configurations
File Organization Automation
- Standardized directory structures for apps, packages, and services
- Naming convention enforcement for components, tests, and documentation
- Location validation prevents files in incorrect directories
- Automated cleanup maintains project structure integrity
AI Development Memory System
- CLAUDE.md serves as comprehensive project memory file
- Context preservation across development sessions
- Pattern recognition for consistent code organization
- Standards enforcement for TypeScript and file structure
CLAUDE.md for the complete AI development playbook (see _archived/projects/lostmindai-turborepo/CLAUDE.md).
Project Structure Overview
For the live directory snapshot, visit_archived/projects/lostmindai-turborepo/docs/project/CURRENT_PROJECT_STATE.md. Highlights below mirror that file:
Implemented foundations
apps/askβ Orb experience scaffold (UI locked to current production experience, security upgrades in flight)apps/marketingβ Marketing shell prepared for redesignpackages/*β Shared libraries (config,ui,db,auth,ai-clients,billing)services/ai-computeβ FastAPI service with IAM hooks and Redis rate limiting (needs production hardening)docker-compose.ymlβ Local stack for Postgres, Redis, Next.js apps, FastAPI
Planned (not yet shipped)
- Additional apps:
private-docs,chatcrawler,justdropit,admin - Additional packages:
security,rag,utils - Additional services:
document-processor,crawler-engine,security-monitor
π Directory Documentation
Each directory contains its own README.md with specific implementation details:- apps/ask/README.md - AI query interface documentation
- apps/marketing/README.md - Marketing website documentation
- packages/README.md - Shared packages overview
- services/README.md - Microservices documentation
- infrastructure/README.md - Infrastructure setup
Quick Start
Development
π Documentation
The full knowledge base is preserved under_archived/projects/lostmindai-turborepo/docs. Start with these anchors:
Getting Started
- π Documentation Index β
_archived/projects/lostmindai-turborepo/docs/README.md - π° Beginnerβs Quick Start β
_archived/projects/lostmindai-turborepo/docs/guides/beginner/QUICK_START.md - π Environment Setup β
_archived/projects/lostmindai-turborepo/docs/setup/ENVIRONMENT_SETUP.md - π Session Templates β
_archived/projects/lostmindai-turborepo/docs/CLAUDE_CODE_SESSION_TEMPLATES.md
Architecture & Planning
- π― Master Plan β
_archived/projects/lostmindai-turborepo/docs/architecture/lostmind-master-plan.md - ποΈ Implementation Roadmap β
_archived/projects/lostmindai-turborepo/docs/architecture/implementation-roadmap.md - π Architecture Decision Records β
_archived/projects/lostmindai-turborepo/docs/architecture/lostmind-adrs.md
Integration & Operations
- π€ Ask App Integration β
_archived/projects/lostmindai-turborepo/docs/guides/INTEGRATION_GUIDE_FOR_ASK_APP.md - π Marketing Website β
_archived/projects/lostmindai-turborepo/docs/guides/MARKETING_WEBSITE_INTEGRATION_GUIDE.md - π§ RAG & Embeddings β
_archived/projects/lostmindai-turborepo/docs/guides/RAG_EMBEDDINGS_INTEGRATION_GUIDE.md - π·οΈ Web Scraper Service β
_archived/projects/lostmindai-turborepo/docs/guides/WEB_SCRAPER_SERVICE_INTEGRATION_GUIDE.md - π¦ Dependency Management β
_archived/projects/lostmindai-turborepo/docs/DEPENDENCY_MANAGEMENT.md - π Environment Secrets Audit β
_archived/projects/lostmindai-turborepo/docs/ENVIRONMENT_SECRETS_AUDIT.md - π₯οΈ Auto Environment Setup β
_archived/projects/lostmindai-turborepo/docs/AUTO_ENVIRONMENT_SETUP.md
Production Readiness
- π‘οΈ Security Architecture Audit Report β
_archived/projects/lostmindai-turborepo/docs/security/SECURITY_ARCHITECTURE_AUDIT_REPORT.md - β οΈ Production Technical Analysis β
_archived/projects/lostmindai-turborepo/docs/PRODUCTION_TECHNICAL_ANALYSIS.md - π€ Google GenAI Developer Guide β
_archived/projects/lostmindai-turborepo/docs/GOOGLE_GENAI_DEVELOPER_GUIDE.md - π SaaS Launch Pathway β
_archived/projects/lostmindai-turborepo/docs/SAAS_LAUNCH_PATHWAY.md - π TurboRepo Migration Analysis β
_archived/projects/lostmindai-turborepo/docs/TURBOREPO_MIGRATION_ANALYSIS.md
Project Management
- β
Claude Code Tasks β
_archived/projects/lostmindai-turborepo/docs/project/CLAUDE_CODE_TASKS.md - πΊοΈ Project Map β
_archived/projects/lostmindai-turborepo/docs/project/PROJECT_MAP.md - π Current Project State β
_archived/projects/lostmindai-turborepo/docs/project/CURRENT_PROJECT_STATE.md
- New contributor? Start with the quick start, then environment setup.
- Planning launch? Review the SaaS launch pathway and production analysis.
- Integrating services? Use the guides collection above.
- Need status? Open the current project state snapshot.
Current Status (Snapshot)
Latest Update (Sept 16, 2025): Professional Infrastructure Restored - Development Standards Established- β Completed: Professional infrastructure restoration, task management system, TypeScript standards, file organization automation, AI development memory system
- β Operational: Development tools (task-audit, cleanup, standards-check), automated task lifecycle management, comprehensive CLAUDE.md guidelines
- π In Progress: Frontend integration and user experience development
- π Next Phase: Complete SaaS application with production-ready features
- π Current Focus: Professional development standards and automated tooling
_archived/projects/lostmindai-turborepo/docs/project/CURRENT_PROJECT_STATE.md, with the broader index in _archived/projects/lostmindai-turborepo/docs/README.md.