How harshit-12kaundal/file-format-conveter works
This repository implements a web-based document toolkit and collaboration workspace. Users enter through the React app, authenticate, then convert, merge, compress, or ask questions about documents; signed-in users can also manage workspace files, profiles, activity, and social features. The Express backend exposes these workflows and persists conversion and workspace data. The excerpts show routing and selected controller behavior; several UI and backend modules are indexed but unsampled, so their internal calls are not inferred.
Main entry points: App.js App router · app.js Express API · Main.jsx Workspace dashboard · prisma.js Prisma client
Components 34
Web app
- App router
client/src/App.js - Navigation
client/src/components/Navbar.jsx
Document tools
- Image editor
client/src/components/tools/ImageEditor.jsx - Document viewer
client/src/components/tools/DocumentViewer.jsx - PDF tools
client/src/components/Conversions/Merge-Pdf.jsx - PDF description
client/src/components/Conversions/pdfdescription.jsx - PDF compression
client/src/components/filecompress/pdfcompress.jsx - DOCX conversion
client/src/components/Conversions/Docx-to-Pdf.jsx
Workspace
- Workspace dashboard
client/src/components/userrelatedpagesofreg/Main.jsx - Workspace panels
client/src/components/userrelatedpagesofreg/mainpageparts/Worksidebar.jsx - User profile
client/src/components/userrelatedpagesofreg/Profile.jsx
Identity and social
- Firebase auth
client/src/components/firebaseConfig.js - Sign-in and OTP
client/src/components/UserVerification/Login.jsx - Sign-up
client/src/components/UserVerification/SIgnUp.jsx - Social features
backend/controller/usertouser.js
API and persistence
- Express API
backend/app.js - PDF routes
backend/routes/pdfRoute.js - PDF operations
backend/controller/pdfController.js - Conversion helpers
backend/conversionFunction.js - DOCX routes
backend/routes/docxRoute.js - DOCX conversion
backend/controller/docxController.js - AI description route
backend/routes/descriptionRoute.js - AI request handler
backend/controller/aicontroller.js - PDF AI pipeline
backend/ai/main_code.py - Conversion history
backend/log/logconversion.js - Prisma client
backend/prisma.js - Saved file retrieval
backend/routes/fileroutes.js - Activity API
backend/routes/activities.js - History API
backend/routes/conversions.js - Profile API
backend/routes/ProfileAvatarRoutes.js - User search API
backend/routes/usersearch.js - Application database
backend/prisma.js - Python conversion runtime
backend/script/convert.py
Other components
- Visitor
Connections 44
- Visitor → App router: opens
client/src/App.js - App router → Firebase auth: checks auth
client/src/App.js - App router → Sign-in and OTP: routes to
client/src/App.js - App router → Sign-up: routes to
client/src/App.js - App router → Workspace dashboard: routes to
client/src/App.js - App router → User profile: routes to
client/src/App.js - App router → PDF tools: routes to
client/src/App.js - App router → PDF description: routes to
client/src/App.js - App router → PDF compression: routes to
client/src/App.js - App router → DOCX conversion: routes to
client/src/App.js - App router → Image editor: routes to
client/src/App.js - App router → Document viewer: routes to
client/src/App.js - Navigation → Firebase auth: uses auth
client/src/components/Navbar.jsx - Navigation → Social features: requests notifications
- Workspace dashboard → Workspace panels: renders
client/src/components/userrelatedpagesofreg/Main.jsx - Workspace dashboard → Image editor: opens image
client/src/components/userrelatedpagesofreg/Main.jsx - Workspace dashboard → Document viewer: opens document
client/src/components/userrelatedpagesofreg/Main.jsx - Workspace dashboard → History API: loads history
client/src/components/userrelatedpagesofreg/Main.jsx - Workspace dashboard → Activity API: loads activity
client/src/components/userrelatedpagesofreg/Main.jsx - App router → Express API: calls API
- Express API → PDF routes: mounts
backend/app.js - Express API → DOCX routes: mounts
backend/app.js - Express API → AI description route: mounts
backend/app.js - Express API → Saved file retrieval: mounts
backend/app.js - Express API → Activity API: mounts
backend/app.js - Express API → History API: mounts
backend/app.js - Express API → Profile API: mounts
backend/app.js - Express API → User search API: mounts
backend/app.js - PDF routes → PDF operations: routes requests
backend/routes/pdfRoute.js - DOCX routes → DOCX conversion: routes requests
backend/routes/docxRoute.js - AI description route → AI request handler: routes requests
backend/routes/descriptionRoute.js - PDF operations → Conversion helpers: calls helpers
backend/controller/pdfController.js - PDF operations → Conversion history: logs conversions
backend/controller/pdfController.js - DOCX conversion → Conversion helpers: calls helper
backend/controller/docxController.js - DOCX conversion → Conversion history: logs conversions
backend/controller/docxController.js - AI request handler → PDF AI pipeline: spawns
backend/controller/aicontroller.js - Conversion history → Prisma client: uses client
backend/log/logconversion.js - Saved file retrieval → Prisma client: reads file record
backend/routes/fileroutes.js - Activity API → Prisma client: uses client
backend/routes/activities.js - History API → Prisma client: uses client
backend/routes/conversions.js - Profile API → Prisma client: reads and writes
backend/routes/ProfileAvatarRoutes.js - User search API → Social features: routes requests
backend/routes/usersearch.js - Prisma client → Application database: persists data
backend/prisma.js - Conversion helpers → Python conversion runtime: invokes runtime