How oliviacoding/easyapplyai works
Main Components
• User Interface (UI) / Frontend: Represented by the Streamlit application (app.py). This component handles user inputs and displays the generated resumes and cover letters.
• Business Logic & Controller: The core of the app (also in app.py) which processes user input, coordinates between various internal components, and manages overall workflow.
• Template Rendering: The templates directory (with resume_template.html and cover_letter_template.html) is used to format the final output.
• External Services:
• AI Content Generation Service: Integration with the OpenAI API (using GPT-3.5) for generating AI-optimized content.
• PDF Generation Service: Using WeasyPrint to convert the rendered HTML output into PDF files.
• Dependency & Configuration Management: Represented by requirements.txt (and in the README, additional directories like .streamlit and secrets.toml are mentioned for configuration and credentials management).
Relationships and Interactions
• A flow from the User node to the Streamlit UI node, indicating how user input (personal information, work history, etc.) is captured.
• From the controller, branch out to:
• A “Template Renderer” node which utilizes HTML templates for building the final resume/cover letter.
• An “AI Service Integration” node where the application calls the OpenAI API to generate content such as bullet points and tailored narratives.
• A “PDF Converter” node that involves WeasyPrint to produce formatted PDF outputs.
Architectural Patterns & Design Principles
• Although this is a relatively small project, it follows a separation of concerns: UI/Rendering, Business Logic, and External Service Integration are distinctly separated.
• The use of modular HTML templates (for resumes and cover letters) indicates a template-based rendering approach.
• The integration with third-party services (like OpenAI API and WeasyPrint) emphasizes a loosely coupled external dependency architecture.
Relevant Technologies/Frameworks
• Python 3.9+ as the primary programming language.
• Streamlit as the UI framework.
• OpenAI API for AI-powered content generation.
• WeasyPrint for PDF generation.
• lru_cache for optimizing API calls.
• HTML and CSS (implied in the templates) to build the final resume and cover letter formats.