sonicoder / README.md
R-Kentaren's picture
Upload folder using huggingface_hub
c4c43f1 verified
|
raw
history blame contribute delete
2.23 kB
---
title: SoniCoder
emoji: πŸš€
colorFrom: purple
colorTo: green
sdk: gradio
sdk_version: 6.14.0
python_version: '3.11'
app_file: app.py
pinned: false
hf_oauth: true
hf_oauth_scopes:
- read-repos
- write-repos
- manage-repos
---
## SoniCoder
An AI-powered fullstack application generator running **entirely locally** with no external API dependencies. Powered by [MiniCPM5-1B](https://huggingface.co/openbmb/MiniCPM5-1B) (2.17 GB).
### Features
- **Local Inference**: Uses MiniCPM5-1B running locally via `transformers` β€” no API keys needed
- **Multi-Language Support**: Generate apps in Python, JavaScript, TypeScript, Java, Go, Rust, PHP, Ruby, C#, Swift, Kotlin, and more
- **Framework Support**: Choose from popular frameworks like React, Vue, Flask, Django, Express, Spring Boot, and others
- **Live Preview**: See generated web apps in a sandboxed iframe preview
- **Code Execution**: Run generated Python code and see output
- **Project Download**: Download generated projects as ZIP files
- **HuggingFace Deploy**: Push generated projects directly to HuggingFace Spaces
### Supported Languages & Frameworks
| Language | Frameworks |
|----------|-----------|
| Python | Flask, Django, FastAPI, Streamlit, Plain Python |
| JavaScript | React, Vue.js, Next.js, Express.js, Node.js, Vanilla JS |
| TypeScript | React, Next.js, Express.js, NestJS |
| HTML/CSS/JS | Tailwind CSS, Bootstrap, Vanilla |
| Java | Spring Boot, Maven, Gradle |
| Go | Gin, Fiber, Echo, Plain Go |
| Rust | Actix, Axum, Rocket |
| PHP | Laravel, Symfony, Plain PHP |
| Ruby | Rails, Sinatra |
| C# | ASP.NET, Blazor |
| Swift | Vapor, SwiftUI |
| Kotlin | Ktor, Spring Boot |
### Local Run
```bash
pip install -r requirements.txt
python app.py
```
The model (MiniCPM5-1B, ~2.17 GB) will be automatically downloaded on first run.
### HuggingFace Deploy
1. Generate your application
2. Go to the "Deploy" tab in the output panel
3. Enter your HuggingFace repository name and token
4. Select the Space SDK (Static, Gradio, Streamlit, or Docker)
5. Click "Push to HuggingFace"
### No External APIs
This application does not use any external API calls. All model inference runs locally using the `transformers` library with MiniCPM5-1B.