Design Philosophy
The guiding principles that make Pithos a modern utility library
This document defines the architectural choices and design philosophy of Pithos, drawing inspiration from best practices of modern libraries (es-toolkit, Remeda, Radash) while establishing its own identity.
Table of Contents
- The Synergistic Ecosystem - Modules that amplify each other
- Error Handling - Fail fast, fail loud
- Immutability vs Mutability - Immutable by default
- TypeScript-First - Designed for inference
- Data-First vs Data-Last Paradigm - Data-first by default
- API Design - One function, one responsibility
- Performance & Bundle Size - Every byte counts
- Documentation & DX - TSDoc is not optional
- Comparison with Alternatives - Know the landscape
This documentation covers the how: the practical rules that implement our vision. For the foundational principles and decision-making philosophy behind these choices, see Core Philosophy.