Skip to content

codeXafzal/ollama-code-explainer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🧠 AI Code Explainer (Local LLM)

A ChatGPT-style web application that explains source code snippets using a locally hosted Large Language Model (LLM) powered by Ollama.
Built with Next.js (TypeScript) on the frontend and FastAPI on the backend.


πŸš€ Demo


πŸ“Œ What This Project Does

  • Accepts code snippets from the user
  • Automatically detects the programming language
  • Explains the code in a clear, beginner-friendly way
  • Uses a local LLM (no OpenAI / external APIs)
  • ChatGPT-style conversational UI focused only on code explanation

🧠 Why This Project

This project demonstrates:

  • Local AI / LLM integration using Ollama
  • Prompt engineering for concise, fast responses
  • Full-stack AI application architecture
  • Understanding of deployment constraints for LLMs
  • Clean Git hygiene and project structure

πŸ—οΈ Architecture

Browser (Next.js + TypeScript)
        |
        | HTTP (JSON)
        v
Backend API (FastAPI)
        |
        | Local inference
        v
Ollama (gemma3 model)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors