A TypeScript-based tool that compares options and explains trade-offs to help users make informed decisions, rather than providing single answers.
- Multi-criteria decision analysis (MCDA) using weighted sum model
- Systematic trade-off identification and quantification
- Context-aware analysis based on user priorities
- Multiple visualization formats for comparison results
- Export capabilities (PDF, Excel, CSV, JSON)
- Property-based testing for correctness guarantees
# Install dependencies
npm install
# Run tests
npm test
# Build the project
npm run build
# Development mode
npm run devThe tool follows a layered architecture:
- Data Layer: Core types and persistence
- Business Logic: Scoring, trade-off analysis, comparison engine
- API Layer: REST endpoints for all functionality
- UI Layer: Interactive dashboard for comparisons
The project uses both unit tests and property-based tests:
- Unit tests for specific examples and edge cases
- Property-based tests (using fast-check) for universal correctness properties
# Run all tests
npm test
# Run tests in watch mode
npm run test:watchMIT