How toss/slash works
Main Components Identification
The system should be divided into two main package categories:
• Common Packages (Platform-agnostic)
• React Packages (React-specific)
Level 1: Root (Slash Library)
Level 2: Package Categories (Common & React)
Level 3: Individual Packages
Level 4: Package Dependencies and Interactions
Component Details
Common Packages Section:
• assert (validation utilities)
• crypto (encryption utilities)
• date (date manipulation)
• hangul (Korean language utilities)
• ky (HTTP client)
• sentry (error tracking)
• storage (storage utilities)
• utility-types (TypeScript utilities)
• utils (general utilities)
• validators (validation functions)
React Packages Section:
• a11y (accessibility utilities)
• async-boundary (async error handling)
• emotion-utils (styling utilities)
• error-boundary (error handling)
• framer-motion (animation)
• impression-area (viewport detection)
• lottie (animation)
• react-query (data fetching)
• use-overlay (modal/overlay management)
• use-funnel (step management)
• use-loading (loading state)
• use-query-param (URL parameter management)
Relationships
Relationships between:
• Package dependencies
• Integration points
• Shared utilities
• Cross-package functionality
Additional Elements
Include:
• Version information
• Migration paths to new packages (es-hangul, es-toolkit, suspensive, use-funnel)
• Build/compilation flow
• Testing infrastructure
Notes
Important notes about:
• Legacy status of the project
• Migration paths to new packages
• Maintenance status
• Contribution guidelines
Technical Details
Technical specifications:
• TypeScript/JavaScript support
• Browser/Node.js compatibility
• Build system (using Rollup)
• Testing framework (Jest)
• Documentation system (Docusaurus)
Legacy status and maintenance information
Remember to include a note about the project's legacy status and the recommendation to contribute to the new separated packages instead.