How saitejapuli/allpdfeditor works
PDF Hub is a browser-based PDF utility website: users browse and filter tools, open a tool, provide files and options, run a local operation, then download the result. The tool catalog spans organization, optimization, conversion, editing, and security; PDF processing is split across two operation modules. Routing, sitemap generation, and server-side error handling are supporting layers. The README and homepage emphasize private, on-device processing; the supplied excerpts show browser-based operations, but not every tool dispatch or the full contents of the second operations module.
Main entry points: tool.$id.tsx Tool workspace · routeTree.gen.ts Route tree · index.tsx Tool directory · pdf-ops.ts PDF operations
Components 21
Tool discovery
- Tool catalog
src/lib/tools.ts - Tool directory
src/routes/index.tsx - Tool workspace
src/routes/tool.$id.tsx
PDF processing
- PDF operations
src/lib/pdf-ops.ts - Additional PDF operations
src/lib/pdf-ops2.ts - Browser files
- Download results
Site and routing
- Site header
src/components/SiteHeader.tsx - Site footer
src/components/SiteFooter.tsx - Root layout
src/routes/__root.tsx - Router setup
src/router.tsx - Route tree
src/routeTree.gen.ts - Sitemap route
src/routes/sitemap[.]xml.ts - Sitemap data
src/lib/sitemap.ts
Runtime support
- Server entry
src/server.ts - Error capture
src/lib/error-capture.ts - Error page
src/lib/error-page.ts - Error reporting
src/lib/lovable-error-reporting.ts - AI functions
src/lib/ai.functions.ts - AI service
src/lib/ai.server.ts
Other components
- Visitor
Connections 24
- Visitor → Tool directory: browses tools
src/routes/index.tsx - Tool directory → Tool catalog: filters catalog
src/routes/index.tsx - Tool directory → Tool workspace: opens tool
src/routes/index.tsx - Tool workspace → Tool catalog: loads tool
src/routes/tool.$id.tsx - Visitor → Browser files: selects files
- Tool workspace → PDF operations: runs operation
src/routes/tool.$id.tsx - Tool workspace → Additional PDF operations: runs operation
- PDF operations → Browser files: reads files
src/lib/pdf-ops.ts - PDF operations → Download results: produces files
src/lib/pdf-ops.ts - Tool workspace → Download results: offers downloads
src/routes/tool.$id.tsx - Tool directory → Site header: renders
src/routes/index.tsx - Tool workspace → Site header: renders
src/routes/tool.$id.tsx - Root layout → Site footer: renders
src/routes/__root.tsx - Root layout → Error reporting: configures reporting
src/routes/__root.tsx - Router setup → Route tree: uses routes
src/router.tsx - Route tree → Root layout: registers routes
src/routeTree.gen.ts - Route tree → Tool directory: registers routes
src/routeTree.gen.ts - Route tree → Tool workspace: registers routes
src/routeTree.gen.ts - Route tree → Sitemap route: registers routes
src/routeTree.gen.ts - Sitemap route → Sitemap data: builds sitemap
src/routes/sitemap[.]xml.ts - Sitemap route → Tool catalog: uses tool catalog
src/routes/sitemap[.]xml.ts - Server entry → Error capture: captures errors
src/server.ts - Server entry → Error page: renders failures
src/server.ts - AI functions → AI service: calls service
src/lib/ai.functions.ts