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.0.tar.gz (680.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.0-py3-none-any.whl (644.2 kB view details)

Uploaded Python 3

File details

Details for the file hangar_ide-0.1.0.tar.gz.

File metadata

  • Download URL: hangar_ide-0.1.0.tar.gz
  • Upload date:
  • Size: 680.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.0.tar.gz
Algorithm Hash digest
SHA256 d9c02175b5a4e0d92cb74ada2e37b9e459018c80d6f9f3b01d4f9c2b8b535b36
MD5 35d0b74560d8af6eb63c1de15df02e99
BLAKE2b-256 1aeee0582450589c9378acd6824ca3b9110a38414f2b6ed1f731aef5abb6f4c2

See more details on using hashes here.

Provenance

The following attestation bundles were made for hangar_ide-0.1.0.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.0-py3-none-any.whl.

File metadata

  • Download URL: hangar_ide-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 644.2 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 63f15e5ef9a0659a911a191779ce3349042618a8ba65b7e660cd6c27c2fea713
MD5 c2ee98cceac3821a5383b4bf8d7571ad
BLAKE2b-256 a0ec7bf5c95523f900757d7617a25daa98fbe692682b983129dbf582e05640de

See more details on using hashes here.

Provenance

The following attestation bundles were made for hangar_ide-0.1.0-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