Spaces:
Running
Running
|
Download README_DEV.md from 2Btainment/spaceforge: direct link, hf CLI and curl.
- Browser
- Download file 979 Bytes
-
https://huggingface.co/spaces/2Btainment/spaceforge/resolve/main/README_DEV.md
- Command line
-
hf download hf://spaces/2Btainment/spaceforge/README_DEV.md
-
curl -L -o README_DEV.md https://huggingface.co/spaces/2Btainment/spaceforge/resolve/main/README_DEV.md
979 Bytes
| # 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`. | |