Orchestration-first IDE for spec-driven AI development
Project description
Hangar Backend
FastAPI backend for the Hangar orchestration IDE.
Architecture
The backend is a thin orchestration layer that shells out to CLI tools (bd, openspec, git, claude) and presents their JSON output through a REST API.
Services (6)
| Service | CLI | Purpose |
|---|---|---|
BeadsService |
bd |
Task CRUD, dependency graph, status management |
OpenSpecService |
openspec |
Change listing, artifact browsing |
ImportSyncService |
bd |
Bridge between tasks.md and Beads |
SpecWizardService |
claude/codex |
AI-generated spec artifacts |
AgentLauncherService |
— | Context-aware agent launch commands |
GitDiffService |
git |
Commit history and diffs per task |
Routers (6)
| Router | Prefix | Endpoints |
|---|---|---|
| Tasks | /api/tasks |
list, ready, get, claim, close |
| Specs | /api/specs |
list, get, artifacts |
| Sync | /api/sync |
preview, import, sync, completion |
| Wizard | /api/wizard |
create, generate, approve, state |
| Agents | /api/agents |
list, launch |
| GitDiff | /api/tasks/{id}/diff |
task diff |
Dependency Injection
Services are DI singletons wired through dependencies.py. Each getter lazily creates the service and caches it. set_project_path() resets all singletons when the project root changes.
Development
uv sync # Install dependencies
uv run hangar # Start the server (port 8000)
uv run pytest -v # Run all 190 tests
uv run pytest -m integration -v # Run only integration tests
uv run pytest -m "not integration" -v # Run only unit tests
Testing
The test suite has two layers:
- Unit tests — Mock services via
app.dependency_overrides. Fast, isolated, test router logic. - Integration tests — Real DI chain, mock at
asyncio.create_subprocess_execlevel. Catch wiring bugs.
Test markers: @pytest.mark.integration for integration tests.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hangar_ide-0.1.1.tar.gz.
File metadata
- Download URL: hangar_ide-0.1.1.tar.gz
- Upload date:
- Size: 698.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1647a2213b0be5c3df4af21c67c59b6c31ebac6fdc1274b56a68d0f78dcc54f1
|
|
| MD5 |
4072922b714d95fb7450a7ffe5d805d1
|
|
| BLAKE2b-256 |
22121307073d2ccc3bd577d7f4f2457e58b1a8bc541ad145f36904cd1fdf21fc
|
Provenance
The following attestation bundles were made for hangar_ide-0.1.1.tar.gz:
Publisher:
publish.yml on pyros-projects/hangar
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hangar_ide-0.1.1.tar.gz -
Subject digest:
1647a2213b0be5c3df4af21c67c59b6c31ebac6fdc1274b56a68d0f78dcc54f1 - Sigstore transparency entry: 949887238
- Sigstore integration time:
-
Permalink:
pyros-projects/hangar@9b8281a585b6910833c4e43dd086f73ca008cc4f -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/pyros-projects
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@9b8281a585b6910833c4e43dd086f73ca008cc4f -
Trigger Event:
release
-
Statement type:
File details
Details for the file hangar_ide-0.1.1-py3-none-any.whl.
File metadata
- Download URL: hangar_ide-0.1.1-py3-none-any.whl
- Upload date:
- Size: 664.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0e7b7e869cb99e79ac35ac716731dfd899377ce635cb8bc937f5d06a81cc500e
|
|
| MD5 |
777ebdf669487c1a2dc214b7b025c16b
|
|
| BLAKE2b-256 |
6f8d4b9d392aa24847da62dbdfd108d4712252e30155f619efbb960a14c4b1a0
|
Provenance
The following attestation bundles were made for hangar_ide-0.1.1-py3-none-any.whl:
Publisher:
publish.yml on pyros-projects/hangar
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hangar_ide-0.1.1-py3-none-any.whl -
Subject digest:
0e7b7e869cb99e79ac35ac716731dfd899377ce635cb8bc937f5d06a81cc500e - Sigstore transparency entry: 949887290
- Sigstore integration time:
-
Permalink:
pyros-projects/hangar@9b8281a585b6910833c4e43dd086f73ca008cc4f -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/pyros-projects
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@9b8281a585b6910833c4e43dd086f73ca008cc4f -
Trigger Event:
release
-
Statement type: