How a1tharv/rsumai works
Main Components
• User Interface:
• The core of the application lies in components (e.g., App.tsx, AnalysisDashboard.tsx) under the “src” and “src/components” directories.
• Service Layer:
• The “src/services” directory (with gemini.ts) implements the logic to connect with the external Gemini AI API.
• This layer encapsulates API interaction like resume analysis, fetching scores, and retrieving improvement suggestions.
• Configuration and Build Tools:
• Several configuration files (vite.config.ts, tsconfig.json, tailwind.config.js, postcss.config.js, etc.) indicate the use of Vite, TypeScript, and Tailwind CSS.
• External Dependencies:
• Google Generative AI (Gemini API) as the external resume analysis engine.
Relationships and Interactions
• The user uploads a resume (TXT format) via the UI.
• The UI components interact with the service layer (gemini.ts) to call the Gemini AI API.
• Data received from the external API is processed and rendered through various UI components (charts, dashboards).
• The configuration files ensure the build, routing, and styling are managed appropriately.
Architectural Patterns and Design Principles
• Component-Based UI Architecture: React’s components structure (App, AnalysisDashboard, others) is central to the design.
• Service Abstraction: A dedicated “services” layer encapsulates external API interactions, promoting separation of concerns.
• Separation of Concerns: Clear division between UI (components), data processing (services), and configuration.
• Use of Environment Variables: The project uses an .env file for storing sensitive data (e.g., Gemini API key).
Relevant Technologies, Frameworks, and Libraries
• Frontend: React, TypeScript, Vite.
• Styling: Tailwind CSS.
• Data Visualization: Recharts.
• External API: Google Generative AI (Gemini).