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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# π¬ CodeAtlas Demo Video Script
|
| 2 |
+
|
| 3 |
+
**Target Duration:** 2-3 minutes
|
| 4 |
+
**Format:** Screen recording with voiceover
|
| 5 |
+
**Tools:** OBS/Loom/QuickTime + microphone
|
| 6 |
+
|
| 7 |
+
---
|
| 8 |
+
|
| 9 |
+
## π Pre-Recording Checklist
|
| 10 |
+
|
| 11 |
+
- [ ] App running locally or on HuggingFace Space
|
| 12 |
+
- [ ] Browser in incognito/clean state (no distracting tabs)
|
| 13 |
+
- [ ] Screen resolution: 1920x1080 recommended
|
| 14 |
+
- [ ] Microphone tested and working
|
| 15 |
+
- [ ] API keys configured (Gemini, ElevenLabs)
|
| 16 |
+
- [ ] Test repo URL ready: `https://github.com/gradio-app/gradio`
|
| 17 |
+
|
| 18 |
+
---
|
| 19 |
+
|
| 20 |
+
## π₯ Video Structure
|
| 21 |
+
|
| 22 |
+
### **INTRO (15 seconds)**
|
| 23 |
+
|
| 24 |
+
**[Screen: Title card or app landing page]**
|
| 25 |
+
|
| 26 |
+
> "Ever tried to understand a new codebase and felt completely lost?
|
| 27 |
+
>
|
| 28 |
+
> Meet CodeAtlas β an AI-powered tool that turns any GitHub repository into beautiful architecture diagrams, with voice explanations and interactive chat.
|
| 29 |
+
>
|
| 30 |
+
> Let me show you how it works."
|
| 31 |
+
|
| 32 |
+
---
|
| 33 |
+
|
| 34 |
+
### **SECTION 1: Analyze a Repository (45 seconds)**
|
| 35 |
+
|
| 36 |
+
**[Screen: Generate page]**
|
| 37 |
+
|
| 38 |
+
> "Start by pasting any GitHub URL. I'll use the Gradio repository as an example."
|
| 39 |
+
|
| 40 |
+
**[Action: Paste `https://github.com/gradio-app/gradio` and click Generate]**
|
| 41 |
+
|
| 42 |
+
> "CodeAtlas downloads the repository, filters out irrelevant files like node_modules and tests, and uses Google Gemini to analyze the code structure."
|
| 43 |
+
|
| 44 |
+
**[Screen: Show loading indicator, then diagram appearing]**
|
| 45 |
+
|
| 46 |
+
> "In seconds, you get a professional architecture diagram showing the main components, their relationships, and how data flows through the system."
|
| 47 |
+
|
| 48 |
+
---
|
| 49 |
+
|
| 50 |
+
### **SECTION 2: Explore the Diagram (30 seconds)**
|
| 51 |
+
|
| 52 |
+
**[Screen: Explore page with diagram]**
|
| 53 |
+
|
| 54 |
+
> "The diagram is fully interactive. You can adjust the layout direction..."
|
| 55 |
+
|
| 56 |
+
**[Action: Change layout dropdown - TB to LR]**
|
| 57 |
+
|
| 58 |
+
> "...modify spacing between nodes..."
|
| 59 |
+
|
| 60 |
+
**[Action: Adjust rank/node separation sliders]**
|
| 61 |
+
|
| 62 |
+
> "...and zoom in on specific areas."
|
| 63 |
+
|
| 64 |
+
**[Action: Use zoom slider]**
|
| 65 |
+
|
| 66 |
+
> "Every diagram is saved to history, so you can revisit previous analyses anytime."
|
| 67 |
+
|
| 68 |
+
**[Action: Show history panel briefly]**
|
| 69 |
+
|
| 70 |
+
---
|
| 71 |
+
|
| 72 |
+
### **SECTION 3: Voice Narration (25 seconds)**
|
| 73 |
+
|
| 74 |
+
**[Screen: Voice section in sidebar]**
|
| 75 |
+
|
| 76 |
+
> "But here's where it gets really cool. Click the voice button, and CodeAtlas generates a natural audio explanation of the architecture."
|
| 77 |
+
|
| 78 |
+
**[Action: Click Generate Voice / Play audio]**
|
| 79 |
+
|
| 80 |
+
> "Powered by ElevenLabs, it's like having a senior engineer walk you through the codebase."
|
| 81 |
+
|
| 82 |
+
**[Let audio play for 5-10 seconds as example]**
|
| 83 |
+
|
| 84 |
+
---
|
| 85 |
+
|
| 86 |
+
### **SECTION 4: AI Chat (25 seconds)**
|
| 87 |
+
|
| 88 |
+
**[Screen: Chat panel]**
|
| 89 |
+
|
| 90 |
+
> "Have questions? The AI chat knows everything about the codebase you just analyzed."
|
| 91 |
+
|
| 92 |
+
**[Action: Type a question like "What is the main entry point of this application?"]**
|
| 93 |
+
|
| 94 |
+
> "Ask about specific files, design patterns, or how components connect."
|
| 95 |
+
|
| 96 |
+
**[Show AI response appearing]**
|
| 97 |
+
|
| 98 |
+
> "It's context-aware and remembers your conversation."
|
| 99 |
+
|
| 100 |
+
---
|
| 101 |
+
|
| 102 |
+
### **SECTION 5: MCP Integration (20 seconds)**
|
| 103 |
+
|
| 104 |
+
**[Screen: Settings page or MCP endpoint]**
|
| 105 |
+
|
| 106 |
+
> "CodeAtlas is also an MCP server, meaning AI assistants like Claude can use it directly."
|
| 107 |
+
|
| 108 |
+
**[Action: Show MCP endpoint URL or badge]**
|
| 109 |
+
|
| 110 |
+
> "Four tools are exposed: analyze codebase, get architecture summary, chat with code, and list recent analyses."
|
| 111 |
+
|
| 112 |
+
> "Connect it to Claude Desktop, Cursor, or any MCP-compatible client."
|
| 113 |
+
|
| 114 |
+
---
|
| 115 |
+
|
| 116 |
+
### **OUTRO (15 seconds)**
|
| 117 |
+
|
| 118 |
+
**[Screen: App main page or GitHub repo]**
|
| 119 |
+
|
| 120 |
+
> "CodeAtlas β understand any codebase in seconds, not hours.
|
| 121 |
+
>
|
| 122 |
+
> Try it free on HuggingFace Spaces, or check out the GitHub repo.
|
| 123 |
+
>
|
| 124 |
+
> Built for the MCP 1st Birthday Hackathon. Thanks for watching!"
|
| 125 |
+
|
| 126 |
+
**[Screen: Show links]**
|
| 127 |
+
- HuggingFace: `huggingface.co/spaces/MCP-1st-Birthday/CodeAtlas`
|
| 128 |
+
- GitHub: `github.com/aghilsabu/codeAtlas`
|
| 129 |
+
|
| 130 |
+
---
|
| 131 |
+
|
| 132 |
+
## ποΈ Voiceover Tips
|
| 133 |
+
|
| 134 |
+
1. **Pace:** Speak slightly slower than normal conversation
|
| 135 |
+
2. **Energy:** Enthusiastic but not over the top
|
| 136 |
+
3. **Pauses:** Leave 1-2 second gaps between sections for editing
|
| 137 |
+
4. **Mistakes:** Don't restart β just pause and repeat the line (edit later)
|
| 138 |
+
|
| 139 |
+
---
|
| 140 |
+
|
| 141 |
+
## βοΈ Editing Notes
|
| 142 |
+
|
| 143 |
+
- Add subtle background music (royalty-free, low volume)
|
| 144 |
+
- Use zoom-in effects on key UI elements
|
| 145 |
+
- Add text overlays for important URLs
|
| 146 |
+
- Include captions/subtitles if possible
|
| 147 |
+
- Export at 1080p, 30fps minimum
|
| 148 |
+
|
| 149 |
+
---
|
| 150 |
+
|
| 151 |
+
## π€ Upload Checklist
|
| 152 |
+
|
| 153 |
+
1. **YouTube:** Upload as unlisted or public
|
| 154 |
+
2. **GitHub:** Drag video into a GitHub issue to get embed URL
|
| 155 |
+
3. **README:** Update video placeholder with actual URL
|
| 156 |
+
4. **Thumbnail:** Create eye-catching thumbnail with app screenshot
|
| 157 |
+
|
| 158 |
+
---
|
| 159 |
+
|
| 160 |
+
## π― Key Messages to Convey
|
| 161 |
+
|
| 162 |
+
- β
**Problem:** Understanding codebases is hard and time-consuming
|
| 163 |
+
- β
**Solution:** AI-powered visualization + voice + chat
|
| 164 |
+
- β
**Easy to use:** Just paste a URL
|
| 165 |
+
- β
**Multiple AI models:** Gemini, GPT-4o support
|
| 166 |
+
- β
**MCP-enabled:** Works with AI assistants
|
| 167 |
+
- β
**Free to try:** Available on HuggingFace
|
| 168 |
+
|
| 169 |
+
---
|
| 170 |
+
|
| 171 |
+
## π Alternative Short Script (60 seconds)
|
| 172 |
+
|
| 173 |
+
For Twitter/X or short-form content:
|
| 174 |
+
|
| 175 |
+
> "Paste a GitHub URL. Get an architecture diagram in seconds.
|
| 176 |
+
>
|
| 177 |
+
> [Show paste + generate]
|
| 178 |
+
>
|
| 179 |
+
> CodeAtlas uses AI to analyze any codebase and create professional visualizations.
|
| 180 |
+
>
|
| 181 |
+
> [Show diagram]
|
| 182 |
+
>
|
| 183 |
+
> Want to understand it better? Listen to an AI-generated explanation.
|
| 184 |
+
>
|
| 185 |
+
> [Play voice clip]
|
| 186 |
+
>
|
| 187 |
+
> Or ask questions in the chat.
|
| 188 |
+
>
|
| 189 |
+
> [Show chat]
|
| 190 |
+
>
|
| 191 |
+
> It's also an MCP server β connect it to Claude or Cursor.
|
| 192 |
+
>
|
| 193 |
+
> Try it free: huggingface.co/spaces/MCP-1st-Birthday/CodeAtlas"
|
| 194 |
+
|
| 195 |
+
---
|
| 196 |
+
|
| 197 |
+
**Good luck with your recording! π¬**
|
DEPLOY_HF.md
ADDED
|
@@ -0,0 +1,246 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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-1st-Birthday HuggingFace Space for hackathon submission.
|
| 4 |
+
|
| 5 |
+
---
|
| 6 |
+
|
| 7 |
+
## π Pre-Deployment Checklist
|
| 8 |
+
|
| 9 |
+
Before deploying, ensure you have:
|
| 10 |
+
|
| 11 |
+
- [ ] HuggingFace account
|
| 12 |
+
- [ ] Access to `MCP-1st-Birthday` organization (request if needed)
|
| 13 |
+
- [ ] Demo video recorded and uploaded to GitHub
|
| 14 |
+
- [ ] Social media post published (X/Twitter) β **REQUIRED by hackathon**
|
| 15 |
+
- [ ] README.md updated with actual video and social post links
|
| 16 |
+
- [ ] All code committed to GitHub
|
| 17 |
+
|
| 18 |
+
---
|
| 19 |
+
|
| 20 |
+
## Step 1: Install HuggingFace CLI
|
| 21 |
+
|
| 22 |
+
```bash
|
| 23 |
+
pip install huggingface_hub
|
| 24 |
+
```
|
| 25 |
+
|
| 26 |
+
---
|
| 27 |
+
|
| 28 |
+
## Step 2: Login to HuggingFace
|
| 29 |
+
|
| 30 |
+
```bash
|
| 31 |
+
huggingface-cli login
|
| 32 |
+
```
|
| 33 |
+
|
| 34 |
+
When prompted:
|
| 35 |
+
1. Go to https://huggingface.co/settings/tokens
|
| 36 |
+
2. Create a new token with **Write** access
|
| 37 |
+
3. Paste the token in terminal
|
| 38 |
+
|
| 39 |
+
---
|
| 40 |
+
|
| 41 |
+
## Step 3: Create the HuggingFace Space
|
| 42 |
+
|
| 43 |
+
1. Go to https://huggingface.co/new-space
|
| 44 |
+
2. **Owner:** Select `MCP-1st-Birthday` organization
|
| 45 |
+
3. **Space name:** `CodeAtlas`
|
| 46 |
+
4. **License:** MIT
|
| 47 |
+
5. **SDK:** Gradio
|
| 48 |
+
6. **Hardware:** CPU Basic (free tier is fine)
|
| 49 |
+
7. Click **Create Space**
|
| 50 |
+
|
| 51 |
+
---
|
| 52 |
+
|
| 53 |
+
## Step 4: Clone Your GitHub Repo (if not already)
|
| 54 |
+
|
| 55 |
+
```bash
|
| 56 |
+
# If starting fresh
|
| 57 |
+
git clone https://github.com/aghilsabu/codeAtlas.git
|
| 58 |
+
cd codeAtlas
|
| 59 |
+
```
|
| 60 |
+
|
| 61 |
+
---
|
| 62 |
+
|
| 63 |
+
## Step 5: Add HuggingFace Space as Git Remote
|
| 64 |
+
|
| 65 |
+
```bash
|
| 66 |
+
# Add HF Space as a second remote
|
| 67 |
+
git remote add hf https://huggingface.co/spaces/MCP-1st-Birthday/CodeAtlas
|
| 68 |
+
|
| 69 |
+
# Verify remotes
|
| 70 |
+
git remote -v
|
| 71 |
+
# Should show:
|
| 72 |
+
# origin https://github.com/aghilsabu/codeAtlas.git (fetch/push)
|
| 73 |
+
# hf https://huggingface.co/spaces/MCP-1st-Birthday/CodeAtlas (fetch/push)
|
| 74 |
+
```
|
| 75 |
+
|
| 76 |
+
---
|
| 77 |
+
|
| 78 |
+
## Step 6: Update README with Real Links
|
| 79 |
+
|
| 80 |
+
Before pushing, update these placeholders in `README.md`:
|
| 81 |
+
|
| 82 |
+
### Demo Video
|
| 83 |
+
Replace this line:
|
| 84 |
+
```
|
| 85 |
+
https://github.com/user-attachments/assets/YOUR_VIDEO_ID
|
| 86 |
+
```
|
| 87 |
+
With your actual GitHub video URL (upload video to a GitHub issue/PR to get the link).
|
| 88 |
+
|
| 89 |
+
### Social Media Post
|
| 90 |
+
Replace this link:
|
| 91 |
+
```
|
| 92 |
+
https://x.com/your-post-link
|
| 93 |
+
```
|
| 94 |
+
With your actual X/Twitter post URL. **This is REQUIRED by hackathon rules!**
|
| 95 |
+
|
| 96 |
+
---
|
| 97 |
+
|
| 98 |
+
## Step 7: Commit All Changes
|
| 99 |
+
|
| 100 |
+
```bash
|
| 101 |
+
# Stage all changes
|
| 102 |
+
git add -A
|
| 103 |
+
|
| 104 |
+
# Commit
|
| 105 |
+
git commit -m "Final hackathon submission - CodeAtlas"
|
| 106 |
+
|
| 107 |
+
# Push to GitHub first (backup)
|
| 108 |
+
git push origin main
|
| 109 |
+
```
|
| 110 |
+
|
| 111 |
+
---
|
| 112 |
+
|
| 113 |
+
## Step 8: Push to HuggingFace Space
|
| 114 |
+
|
| 115 |
+
```bash
|
| 116 |
+
# Push to HF Space (this triggers deployment)
|
| 117 |
+
git push hf main
|
| 118 |
+
```
|
| 119 |
+
|
| 120 |
+
If you get authentication errors:
|
| 121 |
+
```bash
|
| 122 |
+
# Use token-based URL
|
| 123 |
+
git remote set-url hf https://<YOUR_HF_USERNAME>:<YOUR_HF_TOKEN>@huggingface.co/spaces/MCP-1st-Birthday/CodeAtlas
|
| 124 |
+
git push hf main
|
| 125 |
+
```
|
| 126 |
+
|
| 127 |
+
---
|
| 128 |
+
|
| 129 |
+
## Step 9: Configure Secrets on HuggingFace
|
| 130 |
+
|
| 131 |
+
Go to: **https://huggingface.co/spaces/MCP-1st-Birthday/CodeAtlas/settings**
|
| 132 |
+
|
| 133 |
+
Scroll to **"Repository secrets"** and add:
|
| 134 |
+
|
| 135 |
+
| Secret Name | Required | How to Get |
|
| 136 |
+
|-------------|----------|------------|
|
| 137 |
+
| `GEMINI_API_KEY` | β
**Yes** | [aistudio.google.com/apikey](https://aistudio.google.com/apikey) |
|
| 138 |
+
| `OPENAI_API_KEY` | Optional | [platform.openai.com/api-keys](https://platform.openai.com/api-keys) |
|
| 139 |
+
| `ELEVENLABS_API_KEY` | Optional | [elevenlabs.io/app/developers](https://elevenlabs.io/app/developers/api-keys) |
|
| 140 |
+
|
| 141 |
+
β οΈ **Without GEMINI_API_KEY, the app won't work!**
|
| 142 |
+
|
| 143 |
+
---
|
| 144 |
+
|
| 145 |
+
## Step 10: Wait for Build & Verify
|
| 146 |
+
|
| 147 |
+
1. **Watch the build:** https://huggingface.co/spaces/MCP-1st-Birthday/CodeAtlas/logs
|
| 148 |
+
2. Build takes ~2-5 minutes
|
| 149 |
+
3. Once "Running" appears, test the app
|
| 150 |
+
|
| 151 |
+
### Test Checklist
|
| 152 |
+
|
| 153 |
+
- [ ] App loads at https://huggingface.co/spaces/MCP-1st-Birthday/CodeAtlas
|
| 154 |
+
- [ ] Can analyze a GitHub repo (try: `https://github.com/gradio-app/gradio`)
|
| 155 |
+
- [ ] Diagram generates correctly
|
| 156 |
+
- [ ] Voice narration works (if ElevenLabs key added)
|
| 157 |
+
- [ ] MCP endpoint responds: https://huggingface.co/spaces/MCP-1st-Birthday/CodeAtlas/gradio_api/mcp/sse
|
| 158 |
+
|
| 159 |
+
---
|
| 160 |
+
|
| 161 |
+
## π§ Troubleshooting
|
| 162 |
+
|
| 163 |
+
### Build Fails
|
| 164 |
+
```bash
|
| 165 |
+
# Check logs at:
|
| 166 |
+
https://huggingface.co/spaces/MCP-1st-Birthday/CodeAtlas/logs
|
| 167 |
+
```
|
| 168 |
+
Common issues:
|
| 169 |
+
- Missing dependency in `requirements.txt`
|
| 170 |
+
- Python version mismatch
|
| 171 |
+
- Import errors
|
| 172 |
+
|
| 173 |
+
### App Crashes on Startup
|
| 174 |
+
- Verify `GEMINI_API_KEY` secret is set
|
| 175 |
+
- Check that `app.py` exists in root directory
|
| 176 |
+
- Look for import errors in logs
|
| 177 |
+
|
| 178 |
+
### "No Space Disk Space"
|
| 179 |
+
- Go to Settings β Factory Reboot
|
| 180 |
+
- Or delete old files from `data/` folder
|
| 181 |
+
|
| 182 |
+
### MCP Endpoint Not Working
|
| 183 |
+
- Ensure `mcp_server=True` in `demo.launch()`
|
| 184 |
+
- Test SSE endpoint directly in browser
|
| 185 |
+
- Check that Gradio version is 5.x+
|
| 186 |
+
|
| 187 |
+
### Permission Denied on Push
|
| 188 |
+
```bash
|
| 189 |
+
# Re-authenticate
|
| 190 |
+
huggingface-cli login
|
| 191 |
+
|
| 192 |
+
# Or use token in URL
|
| 193 |
+
git remote set-url hf https://YOUR_USERNAME:YOUR_TOKEN@huggingface.co/spaces/MCP-1st-Birthday/CodeAtlas
|
| 194 |
+
```
|
| 195 |
+
|
| 196 |
+
---
|
| 197 |
+
|
| 198 |
+
## π Hackathon Submission Requirements
|
| 199 |
+
|
| 200 |
+
Per hackathon rules, ensure your submission has:
|
| 201 |
+
|
| 202 |
+
| Requirement | Status | Notes |
|
| 203 |
+
|-------------|--------|-------|
|
| 204 |
+
| Submitted to `MCP-1st-Birthday` org | β¬ | Must push to org Space, not personal |
|
| 205 |
+
| Track tag in README | β
| `mcp-in-action-track-consumer` |
|
| 206 |
+
| Social media post link | β¬ | **REQUIRED** - Update README |
|
| 207 |
+
| Demo video | β¬ | Recommended - Update README |
|
| 208 |
+
| Original work (Nov 14-30) | β
| Must be created during hackathon |
|
| 209 |
+
|
| 210 |
+
---
|
| 211 |
+
|
| 212 |
+
## π Quick Reference Links
|
| 213 |
+
|
| 214 |
+
| Resource | URL |
|
| 215 |
+
|----------|-----|
|
| 216 |
+
| **Live App** | https://huggingface.co/spaces/MCP-1st-Birthday/CodeAtlas |
|
| 217 |
+
| **MCP SSE Endpoint** | https://huggingface.co/spaces/MCP-1st-Birthday/CodeAtlas/gradio_api/mcp/sse |
|
| 218 |
+
| **Space Settings** | https://huggingface.co/spaces/MCP-1st-Birthday/CodeAtlas/settings |
|
| 219 |
+
| **Build Logs** | https://huggingface.co/spaces/MCP-1st-Birthday/CodeAtlas/logs |
|
| 220 |
+
| **Hackathon Page** | https://huggingface.co/MCP-1st-Birthday |
|
| 221 |
+
| **HF Tokens** | https://huggingface.co/settings/tokens |
|
| 222 |
+
|
| 223 |
+
---
|
| 224 |
+
|
| 225 |
+
## β‘ Quick Deploy Commands (TL;DR)
|
| 226 |
+
|
| 227 |
+
```bash
|
| 228 |
+
# One-time setup
|
| 229 |
+
pip install huggingface_hub
|
| 230 |
+
huggingface-cli login
|
| 231 |
+
git remote add hf https://huggingface.co/spaces/MCP-1st-Birthday/CodeAtlas
|
| 232 |
+
|
| 233 |
+
# Deploy
|
| 234 |
+
git add -A && git commit -m "Deploy to HF"
|
| 235 |
+
git push origin main # Backup to GitHub
|
| 236 |
+
git push hf main # Deploy to HF Space
|
| 237 |
+
|
| 238 |
+
# Then add secrets at:
|
| 239 |
+
# https://huggingface.co/spaces/MCP-1st-Birthday/CodeAtlas/settings
|
| 240 |
+
```
|
| 241 |
+
|
| 242 |
+
---
|
| 243 |
+
|
| 244 |
+
**Deadline: November 30, 2025, 11:59 PM UTC** β°
|
| 245 |
+
|
| 246 |
+
Good luck! π
|
README.md
CHANGED
|
@@ -8,14 +8,8 @@ sdk_version: "5.0.0"
|
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
license: mit
|
| 11 |
-
short_description: AI-powered codebase visualization with voice narration
|
| 12 |
tags:
|
| 13 |
- mcp-in-action-track-consumer
|
| 14 |
-
- mcp-in-action-track-enterprise
|
| 15 |
-
- mcp-in-action-track-creative
|
| 16 |
-
- building-mcp-track-consumer
|
| 17 |
-
- building-mcp-track-enterprise
|
| 18 |
-
- building-mcp-track-creative
|
| 19 |
- mcp
|
| 20 |
- gradio
|
| 21 |
- llamaindex
|
|
|
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
license: mit
|
|
|
|
| 11 |
tags:
|
| 12 |
- mcp-in-action-track-consumer
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
- mcp
|
| 14 |
- gradio
|
| 15 |
- llamaindex
|
SOCIAL_MEDIA_POST.md
ADDED
|
@@ -0,0 +1,139 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Social Media Posts for CodeAtlas
|
| 2 |
+
|
| 3 |
+
## Twitter/X Post
|
| 4 |
+
|
| 5 |
+
```
|
| 6 |
+
π Submitting CodeAtlas for @HuggingFace MCP's 1st Birthday Hackathon!
|
| 7 |
+
|
| 8 |
+
ποΈ Transform ANY GitHub repo into beautiful AI-generated architecture diagrams with voice narration in seconds!
|
| 9 |
+
|
| 10 |
+
β¨ Features:
|
| 11 |
+
β’ πΊοΈ AI-generated Graphviz diagrams
|
| 12 |
+
β’ π @elevenlabsio voice explanations
|
| 13 |
+
β’ π¬ Chat with your codebase
|
| 14 |
+
β’ π€ MCP Server integration
|
| 15 |
+
|
| 16 |
+
π οΈ Built with:
|
| 17 |
+
@Gradio | @LlamaIndex | @GoogleAI Gemini | @OpenAI GPT-5 | @elevenlabsio | @modal_labs
|
| 18 |
+
|
| 19 |
+
π Try it FREE: https://huggingface.co/spaces/MCP-1st-Birthday/CodeAtlas
|
| 20 |
+
|
| 21 |
+
πΊ Demo: https://youtu.be/J8dcTLzNgpE
|
| 22 |
+
|
| 23 |
+
#MCP1stBirthday #AI #CodeVisualization #Gradio #Gemini #OpenAI #LlamaIndex #Hackathon
|
| 24 |
+
```
|
| 25 |
+
|
| 26 |
+
---
|
| 27 |
+
|
| 28 |
+
## Alternative Shorter Version (280 chars)
|
| 29 |
+
|
| 30 |
+
```
|
| 31 |
+
π CodeAtlas - My entry for @HuggingFace MCP's 1st Birthday Hackathon!
|
| 32 |
+
|
| 33 |
+
Turn any GitHub repo into AI-generated architecture diagrams with voice narration πΊοΈπ
|
| 34 |
+
|
| 35 |
+
Built with Gradio, LlamaIndex, Gemini, OpenAI & ElevenLabs
|
| 36 |
+
|
| 37 |
+
Try: https://huggingface.co/spaces/MCP-1st-Birthday/CodeAtlas
|
| 38 |
+
Demo: https://youtu.be/J8dcTLzNgpE
|
| 39 |
+
|
| 40 |
+
#MCP1stBirthday
|
| 41 |
+
```
|
| 42 |
+
|
| 43 |
+
---
|
| 44 |
+
|
| 45 |
+
## LinkedIn Version
|
| 46 |
+
|
| 47 |
+
```
|
| 48 |
+
π Excited to submit CodeAtlas for HuggingFace's MCP 1st Birthday Hackathon!
|
| 49 |
+
|
| 50 |
+
CodeAtlas is an AI-powered tool that transforms GitHub repositories into beautiful, interactive architecture diagrams with voice narration - making code understanding effortless.
|
| 51 |
+
|
| 52 |
+
π Key Features:
|
| 53 |
+
β’ Instant repository analysis with AI
|
| 54 |
+
β’ Interactive Graphviz architecture diagrams
|
| 55 |
+
β’ Natural voice explanations via ElevenLabs TTS
|
| 56 |
+
β’ Context-aware chat about your codebase
|
| 57 |
+
β’ MCP Server integration for AI agents
|
| 58 |
+
|
| 59 |
+
π‘ Perfect for:
|
| 60 |
+
β Onboarding new developers
|
| 61 |
+
β Code reviews
|
| 62 |
+
β Documentation
|
| 63 |
+
β Understanding complex codebases
|
| 64 |
+
|
| 65 |
+
π οΈ Tech Stack:
|
| 66 |
+
Gradio, LlamaIndex, Google Gemini 3.0, OpenAI GPT-5, ElevenLabs, Modal, FastMCP
|
| 67 |
+
|
| 68 |
+
π Try it live: https://huggingface.co/spaces/MCP-1st-Birthday/CodeAtlas
|
| 69 |
+
πΊ Watch demo: https://youtu.be/J8dcTLzNgpE
|
| 70 |
+
|
| 71 |
+
Built in just 2 weeks for the MCP 1st Birthday Hackathon. Would love your feedback! π
|
| 72 |
+
|
| 73 |
+
#MCP1stBirthday #AI #MachineLearning #CodeVisualization #HuggingFace #OpenAI #Hackathon #OpenSource
|
| 74 |
+
```
|
| 75 |
+
|
| 76 |
+
---
|
| 77 |
+
|
| 78 |
+
## Thread Version (for longer Twitter posts)
|
| 79 |
+
|
| 80 |
+
**Tweet 1:**
|
| 81 |
+
```
|
| 82 |
+
π Submitting CodeAtlas for @HuggingFace MCP's 1st Birthday Hackathon!
|
| 83 |
+
|
| 84 |
+
An AI tool that turns GitHub repos into beautiful architecture diagrams with voice narration πΊοΈπ
|
| 85 |
+
|
| 86 |
+
Thread π§΅π
|
| 87 |
+
```
|
| 88 |
+
|
| 89 |
+
**Tweet 2:**
|
| 90 |
+
```
|
| 91 |
+
β¨ What it does:
|
| 92 |
+
β’ Paste any GitHub URL
|
| 93 |
+
β’ AI analyzes the codebase
|
| 94 |
+
β’ Get interactive Graphviz diagrams
|
| 95 |
+
β’ Listen to architecture explanations
|
| 96 |
+
β’ Chat to understand the code better
|
| 97 |
+
|
| 98 |
+
Try: https://huggingface.co/spaces/MCP-1st-Birthday/CodeAtlas
|
| 99 |
+
```
|
| 100 |
+
|
| 101 |
+
**Tweet 3:**
|
| 102 |
+
```
|
| 103 |
+
π οΈ Built with best-in-class AI tools:
|
| 104 |
+
β’ @Gradio for UI
|
| 105 |
+
β’ @LlamaIndex for RAG
|
| 106 |
+
β’ @GoogleAI Gemini 3.0
|
| 107 |
+
β’ @OpenAI GPT-5
|
| 108 |
+
β’ @elevenlabsio for voice
|
| 109 |
+
β’ @modal_labs for deployment
|
| 110 |
+
β’ FastMCP for protocol integration
|
| 111 |
+
```
|
| 112 |
+
|
| 113 |
+
**Tweet 4:**
|
| 114 |
+
```
|
| 115 |
+
πΊ Watch it in action: https://youtu.be/J8dcTLzNgpE
|
| 116 |
+
|
| 117 |
+
Perfect for:
|
| 118 |
+
β Onboarding devs
|
| 119 |
+
β Code reviews
|
| 120 |
+
β Documentation
|
| 121 |
+
β Learning new frameworks
|
| 122 |
+
|
| 123 |
+
#MCP1stBirthday #AI #CodeVisualization
|
| 124 |
+
```
|
| 125 |
+
|
| 126 |
+
---
|
| 127 |
+
|
| 128 |
+
## Copy Instructions:
|
| 129 |
+
|
| 130 |
+
1. β
**Twitter/X Post:** https://x.com/aghilsabu/status/1995249175336997350?s=20
|
| 131 |
+
2. β
**LinkedIn Post:** https://www.linkedin.com/posts/aghilsabu_codeatlas-ai-powered-codebase-visualization-share-7401015482310393857-vHRg
|
| 132 |
+
3. β
Both links updated in README.md
|
| 133 |
+
4. Ready to commit and deploy!
|
| 134 |
+
|
| 135 |
+
**Tips:**
|
| 136 |
+
- Tag relevant companies/projects to increase visibility
|
| 137 |
+
- Post during peak hours (9-11 AM or 1-3 PM EST)
|
| 138 |
+
- Add a screenshot or video preview if possible
|
| 139 |
+
- Engage with comments to boost the algorithm
|
src/ui/components.py
CHANGED
|
@@ -173,7 +173,5 @@ def make_footer() -> str:
|
|
| 173 |
return '''
|
| 174 |
<div class="footer">
|
| 175 |
Built for MCP's 1st Birthday Hackathon π Β·
|
| 176 |
-
<a href="https://github.com/aghilsabu/codeAtlas" target="_blank">GitHub</a> Β·
|
| 177 |
-
<a href="https://x.com/aghilsabu" target="_blank">@aghilsabu</a>
|
| 178 |
</div>
|
| 179 |
'''
|
|
|
|
| 173 |
return '''
|
| 174 |
<div class="footer">
|
| 175 |
Built for MCP's 1st Birthday Hackathon π Β·
|
|
|
|
|
|
|
| 176 |
</div>
|
| 177 |
'''
|