A sample response from the API is {"cgpa": 8.57, "percentage": 78.2, "total_credits": 7.0, "subjects_count": 2}.
The project uses CSS for styling, a Flask backend API, and a modern frontend UI with HTML, CSS, and JavaScript.
The cgpa-calculator repository was started in 2026-03 and last updated in 2026-03.
The project uses CSS for styling.
The backend is a Flask API defined in backend/app.py.
The API endpoint is POST /api/calculate.
{
"subjects": [
{"name": "Mathematics", "credits": 4, "grade": "A+"},
{"name": "OS", "credits": 3, "grade": "A"}
]
}
{
"cgpa": 8.57,
"percentage": 78.2,
"total_credits": 7.0,
"subjects_count": 2
}