Add AI auto-generation feature for repository descriptions and update…#3
Conversation
|
@SparshKapoor-CODER is attempting to deploy a commit to the Dhairya Gothi 's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
@dhairyagothi this is a reminder |
this is great i have also tried this but groq have limited refrence we can't send a lot big prompt |
like i kept the limit for now that it reads the first 200 lines of code of major files also tested it on large repos can you tell me what exact error its showing |
okay give me some time i will try it locally first |
✨ AI-Powered Auto-Description for Repo READMEs
📌 Description
The current tool generates visually stunning README templates, but leaves the most important part — the project description, features, and tech stack — as blank placeholders. This forces maintainers to manually write the entire narrative after creating the template.
This PR tackles that "elephant in the room" by adding an AI-powered auto-description feature. It reads the actual source code of any GitHub repository and uses a free language model (Groq's Llama 3.1 8B) to automatically generate:
All from a single button click — while still allowing maintainers to edit the generated content before finalising.
🚀 Changes Overview
api/analyze-repo.jspackage.json, entry points, configs), builds a context prompt, calls the Groq API, and returns AI-generated JSON sections.src/components/RepoForm.tsxtagline,description,features, andtechStack.vite.config.ts/apipointing tohttp://localhost:3001so the frontend can communicate with the local API server during development.scripts/dev-api.mjs.env.localand locally hosts theanalyze-repoAPI handler — removing the need forvercel dev.✅ All existing functionality remains untouched.
🛠️ How to Test Locally
1. Get a Free Groq API Key
Create a free API key from:
👉 https://console.groq.com/keys
2. Create
.env.localIn the project root, create a file named
.env.local:3. Install Dependencies
4. Start the Local AI API Server
5. Start the Frontend
In another terminal:
6. Open the App
Visit:
Go to the Repo README page.
7. Try the Feature
Example:
Generated entirely from the repository source code.
🌐 Deployment Note
When deploying to Vercel (or any serverless environment), simply set the environment variable:
The
api/analyze-repo.jsfunction will work out of the box.📦 Dependencies Added
groq-sdkexpresscorsdotenv.env.local📸 Screenshots / Demo
Before
After
💡 Why This Matters
This PR transforms git-creator from a static README template generator into a smart documentation assistant.
It helps maintainers:
This is especially valuable for:
The AI system is:
✨ Result
With this feature, users can generate meaningful, polished README content in seconds — making documentation faster, smarter, and far more approachable.
Contributor
@SparshKapoor-CODER