This directory contains comprehensive guides for all major @effect/platform modules, following the standardized template and best practices defined in the project's CLAUDE.md documentation standards.
Essential modules for most Effect platform applications
- HttpClient-Guide.md - HTTP client requests, authentication, retries, and caching
- HttpServer-Guide.md - HTTP server creation, routing, middleware, and static files
- FileSystem-Guide.md - File system operations, streaming, and cross-platform compatibility
- KeyValueStore-Guide.md - Key-value storage abstractions with multiple backends
- Path-Guide.md - Cross-platform file path operations and manipulation
Important for system-level operations and infrastructure
- Terminal-Guide.md - Terminal input/output, CLI tools, and interactive applications
- Command-Guide.md - Command execution, build automation, and system operations
- Socket-Guide.md - TCP/UDP networking, real-time communication, and inter-process communication
- Worker-Guide.md - Parallel processing, CPU-intensive tasks, and background jobs
- Runtime-Guide.md - Application lifecycle, graceful shutdown, and error handling
Advanced modules for specific use cases
- HttpRouter-Guide.md - HTTP routing, middleware composition, and REST API patterns
- HttpApi-Guide.md - Declarative API definition, OpenAPI generation, and type-safe clients
- PlatformLogger-Guide.md - File-based logging, structured logging, and log rotation
All guides in this directory follow the established standards:
Each guide includes these sections:
- Introduction & Core Concepts - Problem/solution pattern with concrete examples
- Basic Usage Patterns - Progressive learning from simple to intermediate
- Real-World Examples - 3+ complete, practical scenarios
- Advanced Features Deep Dive - Power-user techniques and optimization
- Practical Patterns & Best Practices - Reusable helpers and common patterns
- Integration Examples - Popular library integrations and testing strategies
- Effect.gen + yield* for business logic and sequential operations
- .pipe for post-processing, error handling, and composition
- Complete, runnable examples with all necessary imports
- Comprehensive error handling patterns
- Type safety demonstrations
- Cross-platform compatibility considerations
- Integration with popular frameworks and libraries
- Every example solves actual developer problems
- Production-ready patterns and best practices
- Performance considerations and optimization techniques
- Testing strategies with practical examples
- Integration patterns with existing codebases
- New to Effect Platform? Start with HttpClient-Guide.md or FileSystem-Guide.md
- Building APIs? Check out HttpServer-Guide.md and HttpRouter-Guide.md
- System Integration? Explore Command-Guide.md and Terminal-Guide.md
- Performance & Scaling? See Worker-Guide.md and Socket-Guide.md
Many platform modules work together. Common integration patterns:
- HttpServer + HttpRouter + HttpApi - Complete web application stack
- FileSystem + Path - File operations with safe path handling
- Command + Terminal - CLI tool development
- HttpClient + Socket - Network communication patterns
- Worker + Runtime - Background processing systems
- KeyValueStore + PlatformLogger - Data persistence and monitoring
When adding new guides or updating existing ones:
- Follow the CLAUDE.md template structure exactly
- Use the established Effect-TS syntax patterns (Effect.gen + yield* for business logic)
- Include 3+ real-world examples per guide
- Ensure all code examples are complete and runnable
- Add integration examples with popular libraries
- Include comprehensive testing strategies
For more details, see the project's CLAUDE.md file.
This collection provides comprehensive documentation for 13 major @effect/platform modules, covering:
- ✅ All core platform abstractions (HTTP, FileSystem, Path, Storage)
- ✅ System integration modules (Terminal, Command, Socket, Worker, Runtime)
- ✅ Specialized modules (Router, API, Logger)
- ✅ Real-world integration patterns
- ✅ Production-ready examples and best practices
- ✅ Cross-platform compatibility guidance
- ✅ Comprehensive testing strategies
Each guide is designed to be immediately practical while teaching Effect's fundamental patterns and benefits.