How p2r3/convert works
Convert.to.it is a browser-based universal file converter. Users add a file, choose or accept a detected input format, select an output format, and convert; the runtime searches for a chain of handlers and attempts it step by step, then the UI offers the resulting file for download. The graph captures this workflow plus handler registration, format metadata, and the documented format-search capabilities. The README and sampled source support the main orchestration; unsampled converter and graph internals are represented only at their documented entry points.
Main entry points: Conversion/index.tsx Format selection · main.ts Conversion coordinator · Upload/index.tsx File upload · Converter.ts Conversion dispatcher
Components 15
User interface
- UI shell
src/ui/index.tsx - File upload
src/ui/pages/Upload/index.tsx - Drop overlay
src/ui/components/FullPageDropOverlay/index.tsx - Format selection
src/ui/pages/Conversion/index.tsx - Format explorer
src/ui/components/Conversion/FormatExplorer/index.tsx
Conversion orchestration
- Selection state
src/main.ts - Conversion coordinator
src/main.ts - Conversion path search
src/TraversionGraph.ts
Format handling
- Handler registry
src/handlers/index.ts - Format definitions
src/FormatHandler.ts - Conversion handlers
src/handlers
Execution runtime
- Conversion dispatcher
src/Converter.ts - Worker execution
src/Converter.ts
Other components
- User
- Browser files
Connections 20
- User → File upload: chooses file
- User → Drop overlay: drops file
- Browser files → File upload: provides file
- Browser files → Drop overlay: provides file
- File upload → Selection state: stores selection
- Drop overlay → Selection state: stores selection
- UI shell → File upload: renders
- UI shell → Format selection: renders
- Format selection → Format explorer: shows formats
- Format selection → Conversion coordinator: requests conversion
- Format selection → Selection state: reads selection
- Conversion coordinator → Handler registry: initializes handlers
- Handler registry → Conversion handlers: loads handlers
- Conversion handlers → Format definitions: defines formats
- Conversion coordinator → Conversion path search: searches paths
- Conversion coordinator → Conversion dispatcher: dispatches steps
- Conversion dispatcher → Worker execution: offloads work
- Conversion dispatcher → Conversion handlers: invokes handler
- Conversion coordinator → Format selection: returns output
- Format selection → Browser files: downloads result