spaceforge / README_DEV.md
2Btainment's picture
Upload folder using huggingface_hub
3806142 verified
|
Raw History Blame Contribute Delete
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)

# 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

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

pip install -r requirements.txt pytest pytest-asyncio
PYTHONPATH=. pytest backend/tests -q

See SPEC.md and RESULT.md.