How aish-am22/ai-resume-analyzer works
Project type and purpose
• This is a full-stack React application using React Router for routing and server-side rendering (SSR).
• Purpose: users upload resumes (PDFs), the server converts them to images (via app/lib/pdf2img.ts), processes/scoring them (app/lib/puter.ts), and returns results back to the client.
File structure
• Top-level files: Dockerfile, tsconfig.json, package.json, Vite config, and editor configs.
• app/ folder: contains both client and server code.
• app/root.tsx – root React component and SSR entry.
• app/routes/*.tsx – route modules implementing page loaders, actions, and React components for each path (home, upload, resume, auth, wipe).
• app/components/ – reusable UI components (Navbar, FileUploader, ResumeCard, ScoreBadge, etc.).
• app/lib/ – server-side utilities (PDF→image conversion, scoring engine).
• constants/ and types/ – shared TypeScript types and constants.
README for additional insights
• Confirms SSR, HMR, bundling via Vite, Tailwind CSS, TypeScript, Docker support, and deployment instructions.
• No external database; state is handled in memory or ephemeral file storage.
Elements
• Clear labels for each component/layer
• HTTP requests (browser → server)
• Data flow (upload → processing → response)
• Asset requests (browser → static assets)
• Client (e.g., blue)
• Server/API (e.g., green)
• Processing modules (e.g., orange)
• Static assets (e.g., gray)
• Deployment/infra (e.g., purple)