How shivam1981-leo/skillsync works
Purpose and Runtime
SkillSync is a Flask-served resume intelligence platform with a static multi-page frontend. Its core workflow accepts a resume and optional job description, extracts skills, scores fit, identifies missing skills, and returns results for dashboard visualization. The application starts at app.py; browser pages are plain HTML plus shared CSS/JavaScript.
Paths: app.py, dashboard.html, static/script.js
Entry Points and Page Routing
Flask provides the application entry point and serves the dashboard at / and /dashboard.html, with separate routes/pages for login, hackathons, jobs, and courses. The frontend navigation is cross-page rather than a single-page application.
Paths: app.py, login.html, hackathons.html
Resume Analysis API
The backend is responsible for resume upload/analysis, PDF text extraction, semantic or keyword-based matching, and response construction. It uses PyPDF2 for document text and can use sentence-transformers plus NumPy for embedding-based similarity; keyword scoring is the fallback when BERT-style model support is unavailable.
Paths: app.py, dashboard.html, static/script.js
Skill-Gap and Scoring Model
The analysis stage compares extracted resume/JD content against a target-skill set. It produces an overall score and derives weak_points from skills absent from the resume, rather than returning a fixed empty list. The dashboard consumes these results to present fit analysis and skill visualizations, including a radar display.
Paths: app.py, dashboard.html, static/script.js
Frontend Interaction Layer
Shared browser logic coordinates resume upload, API calls, result rendering, dashboard radar behavior, dropdowns, and session-backed user display. Login stores the user name and role in sessionStorage; the dashboard/navbar reads that client-side state. This is a browser session convenience, not server-side authentication.
Paths: static/script.js, login.html, dashboard.html
Optional Persistence Boundary
MySQL persistence is optional and isolated behind backend availability checks. When mysql-connector-python and the configured database are available, uploaded resume metadata, raw text, and serialized embeddings can be stored in the resumelens.resumes table. If unavailable, analysis continues without persistence.
Paths: app.py, README.md
Supporting Discovery Pages
Hackathon, job, and course pages are client-rendered informational surfaces sharing the same design and interaction assets. Their primary logic is local filtering/search rather than backend-driven listings: hackathons filter by organizer/type, jobs by text/type, and courses by roadmap/category controls.
Paths: hackathons.html, jobs.html, courses.html
Presentation Boundary
All pages use a shared visual system and common JavaScript, keeping page-specific markup separate from application behavior. The frontend communicates with Flask for resume intelligence while static content filtering remains in the browser.
Paths: static/style.css, static/script.js, app.py
Main entry points: script.js Shared browser logic · app.py Flask application · style.css Shared visual system · login.html Login page
Components 14
Flask Backend
- Flask application · Serves pages and resume analysis routes.
app.py - Resume analysis API · Accepts resume and optional job description.
app.py - PDF text extraction
app.py - Skill-gap scoring · Calculates fit score and missing target skills.
app.py - Semantic matching · Uses sentence-transformers and NumPy when available; otherwise keyword scoring.
app.py - Optional resume store · Stores resume metadata, text, and serialized embeddings when available.
app.py
Static Frontend
- Dashboard page · Displays fit analysis, weak points, and radar visualization.
dashboard.html - Login page
login.html - Shared browser logic · Coordinates uploads, API calls, rendering, navigation controls, and session display.
static/script.js - Browser session state · Keeps client-side user name and role; not server authentication.
static/script.js - Shared visual system
static/style.css
Discovery Pages
- Hackathons page · Client-side organizer and type filtering.
hackathons.html - Jobs page · Client-side text and type filtering.
jobs.html - Courses page · Client-side roadmap and category filtering.
courses.html
Connections 23
- Flask application → Dashboard page: serves / and /dashboard.html
- Flask application → Login page: serves route
- Flask application → Hackathons page: serves route
- Flask application → Jobs page: serves route
- Flask application → Courses page: serves route
- Dashboard page → Shared browser logic: loads
- Login page → Shared browser logic: loads
- Hackathons page → Shared browser logic: loads
- Jobs page → Shared browser logic: loads
- Courses page → Shared browser logic: loads
- Shared visual system → Dashboard page: styles
- Shared visual system → Login page: styles
- Shared visual system → Hackathons page: styles
- Shared visual system → Jobs page: styles
- Shared visual system → Courses page: styles
- Shared browser logic → Resume analysis API: uploads resume and requests analysis
- Resume analysis API → PDF text extraction: extracts document text
- PDF text extraction → Skill-gap scoring: provides resume text
- Skill-gap scoring → Semantic matching: uses when available
- Resume analysis API → Optional resume store: persists when available
- Resume analysis API → Shared browser logic: returns score and weak points
- Login page → Browser session state: stores user name and role
- Browser session state → Shared browser logic: supplies user display state