Inspiration
Many students and beginner developers struggle to understand how a program actually works internally. Reading code alone is often confusing, especially when loops and conditions are involved. We wanted to build a tool that doesn’t just convert code, but helps users truly understand the logic behind it using visual and human-friendly explanations.
What it does
CodeFlow AI analyzes source code and transforms it into:
- Clear, human-readable logic explanations
- Real flowcharts with proper symbols (decision, input/output, process, loops)
- Visual representation of program control flow This helps users understand algorithms faster, debug easily, and learn programming concepts more effectively.
How we built it
We built CodeFlow AI using:
- Flask for backend and frontend routing
- Google Gemini API for intelligent code understanding
- Mermaid.js for generating real flowcharts
- HTML, CSS, and JavaScript for a clean and responsive UI The system uses an intermediate logic representation to separate explanation, visualization, and conversion, ensuring accuracy and scalability.
Challenges we ran into
- Handling AI responses that were inconsistent or incomplete
- Designing a true flowchart system instead of simple box diagrams
- Managing API rate limits and empty responses
- Separating human explanation from machine logic representation
- Maintaining smooth data flow between explanation and visualization Each challenge helped us improve system reliability and architecture.
Accomplishments that we're proud of
- Built real textbook-style flowcharts with loops and decisions
- Successfully separated logic explanation and flow visualization
- Designed a clean, beginner-friendly interface
- Implemented an AI-powered program analysis pipeline
- Created a project that goes beyond simple code conversion
What we learned
- AI outputs must be normalized before use
- Visualizing program logic requires control-flow understanding
- Clean architecture is more important than writing more code
- User experience matters as much as functionality
- Building real-world AI systems involves handling failures gracefully
What's next for CodeFlow AI
In the future, we plan to add:
- Step-by-step execution animation
- Algorithm and time-complexity detection
- Pseudocode generation
- Export flowcharts as images or PDFs
- Support for more programming languages
- Beginner and exam-oriented learning modes CodeFlow AI aims to become a complete learning and program-understanding platform.
Log in or sign up for Devpost to join the conversation.