Welcome, Developer!
This section contains comprehensive technical documentation for developers who want to:- Understand the architecture
- Contribute to the project
- Extend functionality
- Debug issues
- Deploy Orphelix
Technology Stack
Frontend
- Next.js 15 - React framework with App Router
- React 19 - UI library
- Material-UI v7 - Component library
- TypeScript 5.7 - Type safety
State Management
- TanStack Query v5 - Data fetching & caching
- Zustand - Global state (theme, mode, namespace)
- Context API - Search state management
Backend
- Next.js API Routes - Serverless functions
- @kubernetes/client-node - K8s API client
- Server-Sent Events - Real-time updates
Testing
- Vitest - Unit testing framework
- Playwright - E2E testing
- React Testing Library - Component testing
Architecture Overview
Orphelix follows a modern, scalable architecture:Key Design Patterns
1. API Route Architecture
All Kubernetes operations are server-side to prevent credentials exposure:2. TanStack Query Hooks
Consistent data fetching pattern with caching:3. Real-time Updates with SSE
Server-Sent Events for live cluster updates:4. Component Structure
Consistent component organization:Getting Started
1
Set up your environment
See Getting Started for setup instructions
2
Understand the architecture
Read Architecture for detailed system design
3
Review the tech stack
Check Tech Stack for technology decisions
4
Run tests
Follow Testing Guide to run and write tests
5
Start contributing
See Contributing for contribution guidelines
Quick Links
API Reference
REST API documentation
Testing
Testing strategy and guides
Contributing
How to contribute code
Development Principles
Security First
Security First
- Never expose cluster credentials to browser
- All K8s operations are server-side
- Secrets values are never displayed
- GitHub App tokens in HTTP-only cookies
Performance
Performance
- Aggressive caching with TanStack Query
- Server-Side Rendering (SSR) for initial load
- Code splitting with Next.js dynamic imports
- Optimistic UI updates
Type Safety
Type Safety
- Strict TypeScript configuration
- Full type coverage for K8s resources
- Type-safe API routes
- No
anytypes allowed
Testability
Testability
- 214+ unit tests with Vitest
- 93+ E2E tests with Playwright
- Mock data for demo mode
- Test coverage reporting