This file documents the project setup and conventions for Claude Code.
FairMind is a comprehensive AI bias detection and compliance platform for India-specific regulatory requirements (NITI Aayog guidelines, RBI regulations, and other frameworks).
- apps/backend/ - FastAPI backend for bias detection, compliance, and analytics
- apps/frontend/ - Next.js frontend dashboard
- apps/website/ - Marketing website (Astro)
- apps/ml/ - ML models and visualization utilities
- docs/ - Project documentation
- Location:
apps/backend/ - Package manager:
uv - Main entry:
api/main.py - Structure: Domain-driven design with routes, services, and domain models
- Location:
apps/frontend/ - Framework: Next.js with App Router
- Package manager:
npm - Styling: Tailwind CSS
- Testing: Playwright
- Bias detection and remediation
- India compliance automation (NITI Aayog, RBI, UIDAI)
- Model monitoring and analytics
- Dataset management and marketplace
- Real-time compliance dashboard
- Audit report generation
cd apps/backend
uv run fastapi dev api/main.pycd apps/frontend
npm run dev# Backend tests
cd apps/backend
uv run pytest
# Frontend tests
cd apps/frontend
npm run test- Main branch:
main - Feature branches: Follow naming convention
feature/descriptionortask/description - Always create PRs for code review before merging to main
- Commit messages should be descriptive and reference issues when applicable
See CONTRIBUTING.md for detailed contribution guidelines.
Primary: Organizations managing AI systems, compliance teams, data scientists, and ML engineers in India and global markets. Context: Users are evaluating bias in production models, preparing regulatory audits, and documenting compliance evidence under frameworks like DPDP Act, EU AI Act, and GDPR. Job to do: Detect bias quickly, generate remediation code, and produce audit-ready compliance documentation with minimal friction.
Neobrutalist + Professional FairMind should feel bold, confident, and trustworthy—not corporate-sterile or playful. The interface communicates competence and seriousness about AI ethics without being cold or inaccessible. It's for engineers and compliance officers who value clarity and efficiency over visual decoration.
Neobrut Design System (maintain current direction):
- Bold geometric shadows: 6px/8px hard-drop shadows communicate confidence and solidity
- Strong borders: Thick outlines (4px) create visual clarity and hierarchy
- High contrast: Teal primary (#FF6B35 orange accent), clean whites, deep blacks
- Geometric confidence: Square corners, deliberate spacing, no softness
- No gradients or gloss: Direct, no-nonsense visual communication
- Light + Dark modes: Professional in both contexts
Design tokens already in place:
- Primary: oklch(0.60 0.13 163) — confident teal
- Accent: #FF6B35 — bold orange
- Shadows:
brutal-shadow,brutal-shadow-lg,brutal-shadow-xl - Radius: 0 (sharp corners for authority)
- Authority through clarity — Bold typography, strong visual hierarchy, unambiguous interactive states. Users must never wonder what to do.
- Data over decoration — Visualizations and metrics are the focus. Remove anything ornamental that doesn't serve the user's task.
- Compliance-first mindset — Every page should support the user's regulatory documentation goal. Design for audit-readiness: screenshots, exports, and reports must be professional and exportable.
- Neobrutalism for confidence — Thick shadows, sharp edges, and geometric strength signal "this handles serious work." No soft-edged, glassy, corporate look.
- Accessibility by default — High contrast, clear hierarchy, predictable patterns. Works for compliance teams and engineers alike, with or without assistive tech.
- Generic SaaS aesthetic (bland blue, generic cards, indistinct hierarchy)
- Dark + moody (glassmorphism, neon glows, crypto/gaming vibes that undermine trustworthiness)
- Overly decorative elements (gradients, animations that don't reduce cognitive load, superfluous icons)
- Inconsistent neobrutalism (mix of soft and harsh aesthetics — commit to the bold approach or drop it entirely)