How enerzilius/convert works
Convert.to.it is a browser-based, privacy-oriented universal file converter. The user selects or drops files, chooses source and target formats, and requests conversion; the runtime searches a conversion path and invokes handlers for its steps, then offers generated files for download. The graph preserves the format catalog, handler registry, path search, and broad media/document/archive conversion capabilities. Source excerpts show initialization and path execution; the README documents the user workflow. Individual unsampled handler implementations are represented collectively.
Main entry points: index.ts Handler registry · main.ts Conversion coordinator · index.tsx Format selection · Converter.ts Conversion executor
Components 15
User interface
- File upload
src/ui/pages/Upload/index.tsx - Format selection
src/ui/pages/Conversion/index.tsx - UI shell
src/ui/index.tsx - Converted files
src/ui/pages/Conversion/index.tsx
Conversion runtime
- Conversion coordinator
src/main.ts - Conversion executor
src/Converter.ts - Path search
src/TraversionGraph.ts - Progress state
src/ui/ProgressStore.ts
Formats and handlers
- Format definitions
src/FormatHandler.ts - Format catalog
src/Formats.ts - Handler registry
src/handlers/index.ts
Conversion capabilities
- Media handlers
src/handlers - Document handlers
src/handlers - Archive and data handlers
src/handlers
Other components
- User
Connections 21
- User → File upload: selects files
README.md - File upload → Format selection: continues to
README.md - User → Format selection: chooses formats
README.md - UI shell → File upload: renders
src/ui/index.tsx - UI shell → Format selection: renders
src/ui/index.tsx - Conversion coordinator → Handler registry: initializes definitions
src/main.ts - Conversion coordinator → Path search: initializes and queries
src/main.ts - Conversion coordinator → Conversion executor: executes path steps
src/main.ts - Conversion coordinator → Progress state: reads conversion signal
src/main.ts - Path search → Format definitions: uses path nodes
src/TraversionGraph.ts - Path search → Format catalog: uses categories
src/TraversionGraph.ts - Format definitions → Format catalog: uses category types
src/FormatHandler.ts - Handler registry → Format definitions: strips handler definitions
src/handlers/index.ts - Conversion executor → Handler registry: gets handlers
src/Converter.ts - Conversion executor → Progress state: reports progress
src/Converter.ts - Handler registry → Media handlers: loads handlers
- Handler registry → Document handlers: loads handlers
- Handler registry → Archive and data handlers: loads handlers
- Format selection → Conversion coordinator: requests conversion
- Format selection → Converted files: downloads outputs
src/ui/pages/Conversion/index.tsx - Conversion executor → Converted files: produces outputs