Shared scaffold for CircuitForge products
Find a file
pyr0ball 3075e5d3da
Some checks are pending
CI / test (push) Waiting to run
Mirror / mirror (push) Waiting to run
feat(tts): add cf-tts module with ChatterboxTurbo backend and FastAPI service
- TTSBackend Protocol + TTSResult dataclass (audio_bytes, sample_rate, duration_s, format)
- MockTTSBackend: silent WAV clip, no GPU required, Protocol assert at import
- ChatterboxTurboBackend: ResembleAI chatterbox-turbo via chatterbox-tts package
  - from_local() loads model from snapshot dir
  - audio_prompt voice cloning via temp file
  - _encode_audio helper: OGG (default), WAV, MP3 via torchaudio
- circuitforge_core.tts module-level synthesize() singleton (CF_TTS_MODEL / CF_TTS_MOCK)
- FastAPI app: GET /health, POST /synthesize (multipart form, returns audio bytes)
  - default format: ogg (smaller than WAV, no patents)
  - X-Duration-S / X-Model / X-Sample-Rate response headers
  - CLI: --model --port --host --gpu-id --mock
- pyproject.toml: tts-chatterbox + tts-service extras
- Sample rate: 24000 Hz (S3GEN_SR from chatterbox internals)
2026-04-08 23:15:05 -07:00
.forgejo/workflows chore: remove misplaced cf-orch docker workflow (belongs in circuitforge-orch) 2026-04-05 20:53:13 -07:00
circuitforge_core feat(tts): add cf-tts module with ChatterboxTurbo backend and FastAPI service 2026-04-08 23:15:05 -07:00
docker feat: cf-orch Docker image + Forgejo CI pipeline 2026-04-03 09:10:29 -07:00
tests feat: add CF_LICENSE_KEY validation via Heimdall (closes #26) 2026-04-05 21:16:57 -07:00
.cliff.toml ci: add Forgejo Actions workflows — CI, PyPI release, mirrors, cliff.toml (closes #27) 2026-04-05 20:51:18 -07:00
.gitignore feat(orch): replace Ouro/vllm-Docker with generic HF inference server; add ProcessSpec 2026-04-02 15:33:08 -07:00
CHANGELOG.md chore: bump version to 0.7.0 — affiliates + preferences modules 2026-04-04 18:28:52 -07:00
Dockerfile.orch feat: cf-orch Docker image + Forgejo CI pipeline 2026-04-03 09:10:29 -07:00
pyproject.toml feat(tts): add cf-tts module with ChatterboxTurbo backend and FastAPI service 2026-04-08 23:15:05 -07:00
README.md feat!: strip resources/ from MIT core — moves to circuitforge-orch (v0.8.0) 2026-04-04 22:34:27 -07:00

circuitforge-core

Shared scaffold for CircuitForge products.

Current version: 0.7.0

Modules

Implemented

  • circuitforge_core.db — SQLite connection factory and migration runner
  • circuitforge_core.llm — LLM router with fallback chain (Ollama, vLLM, Anthropic, OpenAI-compatible)
  • circuitforge_core.tiers — Tier system with BYOK and local vision unlocks
  • circuitforge_core.config — Env validation and .env loader
  • circuitforge_core.hardware — Hardware detection and LLM backend profile generation (VRAM tiers, GPU/CPU auto-select)
  • circuitforge_core.documents — Document ingestion pipeline: PDF, DOCX, and image OCR → StructuredDocument
  • circuitforge_core.affiliates — Affiliate URL wrapping with opt-out, BYOK user IDs, and CF env-var fallback (wrap_url)
  • circuitforge_core.preferences — User preference store (local YAML file, pluggable backend); dot-path get/set API
  • circuitforge_core.tasks — VRAM-aware LLM task scheduler; shared slot manager across services (TaskScheduler)
  • circuitforge_core.manage — Cross-platform product process manager (Docker and native modes)
  • circuitforge_core.resources — Resource coordinator and agent: VRAM allocation, eviction engine, GPU profile registry

Stubs (in-tree, not yet implemented)

  • circuitforge_core.vision — Vision router base class (planned: moondream2 / Claude vision dispatch)
  • circuitforge_core.wizard — First-run wizard base class (products subclass BaseWizard)
  • circuitforge_core.pipeline — Staging queue base (StagingDB; products provide concrete schema)

Install

pip install -e .

License

BSL 1.1 — see LICENSE