Spaces:
Running
Running
File size: 979 Bytes
3806142 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | # SpaceForge
Production-oriented MVP: turn a Hugging Face Space into downloadable **Hybrid** wrappers (HTML widget, PWA, Firefox/Chromium extensions) or a **Local** Tauri project zip.
## Quick start (local)
```bash
# Backend
python -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt
uvicorn backend.app.main:app --reload --port 7860
# Frontend (another shell)
cd frontend && npm install && npm run dev
```
## Docker / HF Space
```bash
docker build -t spaceforge .
docker run -p 7860:7860 spaceforge
```
Space: https://huggingface.co/spaces/2Btainment/spaceforge
## API
- `POST /api/analyze` `{ "url": "...", "hf_token": "[ERSATZ_KEY]" }`
- `POST /api/build` `{ "url": "...", "targets": ["html_widget","pwa"] }`
- `GET /api/build/{id}` / `.../logs` / `.../download?target=`
- `DELETE /api/build/{id}`
## Tests
```bash
pip install -r requirements.txt pytest pytest-asyncio
PYTHONPATH=. pytest backend/tests -q
```
See `SPEC.md` and `RESULT.md`.
|