Skip to main content

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_exec level. 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

hangar_ide-0.1.1.tar.gz (698.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hangar_ide-0.1.1-py3-none-any.whl (664.8 kB view details)

Uploaded Python 3

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

Hashes for hangar_ide-0.1.1.tar.gz
Algorithm Hash digest
SHA256 1647a2213b0be5c3df4af21c67c59b6c31ebac6fdc1274b56a68d0f78dcc54f1
MD5 4072922b714d95fb7450a7ffe5d805d1
BLAKE2b-256 22121307073d2ccc3bd577d7f4f2457e58b1a8bc541ad145f36904cd1fdf21fc

See more details on using hashes here.

Provenance

The following attestation bundles were made for hangar_ide-0.1.1.tar.gz:

Publisher: publish.yml on pyros-projects/hangar

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for hangar_ide-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0e7b7e869cb99e79ac35ac716731dfd899377ce635cb8bc937f5d06a81cc500e
MD5 777ebdf669487c1a2dc214b7b025c16b
BLAKE2b-256 6f8d4b9d392aa24847da62dbdfd108d4712252e30155f619efbb960a14c4b1a0

See more details on using hashes here.

Provenance

The following attestation bundles were made for hangar_ide-0.1.1-py3-none-any.whl:

Publisher: publish.yml on pyros-projects/hangar

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page