Skip to content

CodeForge — An all-in-one AI-powered code editor built with Streamlit. Instantly write, run, debug, generate, and share code across multiple languages with AI assistance.

Notifications You must be signed in to change notification settings

sivaramaraju2124/CodeForge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🚀 CodeForge

Your All-in-One AI-Powered Code Editor

📌 Problem Statement

Problem Statement 1 – Weave AI magic with Groq

🎯 Objective

Coding often requires switching between multiple tools for editing, compiling, debugging, generating, and sharing code. This leads to a fragmented and time-consuming workflow, especially for beginners who struggle with setup, syntax, and understanding errors.

CodeForge is an all-in-one AI-powered code editor that simplifies the entire development process. It makes coding easier, faster, and smarter by bringing all essential tools into one platform. Users can write, run, understand, and share code effortlessly—without needing to install anything.

🧠 Team & Approach

Team Name: Tech Rulers

Team Members:

Our Approach:

  • We chose this problem to simplify and enhance the coding experience for everyone, especially beginners.
  • Key challenges we addressed:
    • Seamless integration of editor, compiler, code generation, and sharing into one platform.
    • Making AI suggestions fast and accurate using Groq API.
    • Smooth real-time code execution with Streamlit.
  • Breakthroughs:
    • Successfully integrated multiple language support and AI-driven code assistance in a single Streamlit app.

🛠️ Tech Stack

Core Technologies Used:

  • Frontend: Streamlit (Python-based web UI)
  • Backend: Streamlit Server + Python
  • Database: Not Required (Session State used),SQLite for chatbot history
  • APIs: Groq API (for AI Code Generator,Image to Code Generator and AI Chatbot)
  • Hosting: Streamlit Cloud

Sponsor Technologies Used:

  • Groq: Used for real-time code generation, error detection, optimization suggestions, and chatbot assistance.

✨ Key Features

Run Code in Multiple Languages
Supports Python, Java, JavaScript, C, C++, and Bash. Instantly run your code online.

Customizable Editor
Change editor theme, background theme, and show/hide line numbers.

Keyboard Shortcuts
Useful shortcuts for faster coding and better navigation.

Image to Code
Upload an image with code; the app extracts and converts it into editable code.

AI Code Generator
Generate code in any selected language by just entering a prompt.

Share Code
Create a shareable link to send your code to others.

Download Code
Download your code files in a language-specific format.

AI Chatbot Assistant
Explains code, detects errors, optimizes code, and saves chat history.

📽️ Demo & Deliverables

✅ Tasks & Bonus Checklist

✅ Followed 3 social channels and filled the form
✅ Bonus Task 1: Badge sharing and filled the form (2 points)
✅ Bonus Task 2: Signed up for Sprint.dev and filled the form (3 points)

🧪 How to Run the Project

Requirements:

  • Python 3.10+
  • Streamlit
  • Groq API Key
  • Judge0 API Key
  • Pastebin API Key

Setup:

# Clone the repo
git clone https://github.com/your-team/codeforge

# Move into project directory
cd codeforge

# Install dependencies
pip install -r requirements.txt

# Set up environment variables
cp .env.example .env
# Add your GROQ_API_KEY inside the .env file

# Run the Streamlit app
streamlit run app.py

🧬Future Scope

  • 📈 Add real-time collaborative editing feature.

  • 🛡️ Integrate security vulnerability scanning for code.

  • 🌐 Add more language support (localization).

  • 🧠 Smarter AI chatbot that can review and suggest entire project structures.


📎Resources / Credits

  • Groq API (AI code generation,Image to Code generation and chatbot)

  • Streamlit (frontend and backend)

  • Tesseract OCR (for Image to Code)

  • Judge0 API (optional future use for compiling more languages)


🏁 Final Words:

  • Building CodeForge has been an incredible journey! 🚀 We learned how to integrate advanced AI into simple user experiences, tackled real-world coding pain points, and made coding accessible, fun, and efficient for everyone. Thank you for the opportunity and support!

About

CodeForge — An all-in-one AI-powered code editor built with Streamlit. Instantly write, run, debug, generate, and share code across multiple languages with AI assistance.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages