# malcommac/Hydra

⚡️ Lightweight full-featured Promises, Async & Await Library in Swift

Repository: https://github.com/malcommac/Hydra
Canonical: https://ross.abutalabs.com/products/malcommac-hydra
Language: Swift
License: MIT
License Family: permissive
Topics: promises, promise-library, await, swift, async, gcd, futures
Last push: 2021-10-10T15:15:16+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 3527, "days_push": 1788, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1981, forks 115 (observed 2026-08-28T04:06:01.749272+00:00)

## What it is
Hydra is a lightweight, full-featured Promises library for Swift, inspired by JavaScript's A+ promise spec and ES8 async/await. It lets developers write asynchronous code in a synchronous style with operators like all, any, retry, timeout, map, and zip.

## Use cases
- write async code in Swift without callback nesting
- chain multiple asynchronous operations with promises
- retry failed async operations with backoff
- run several async tasks in parallel and wait for all
- add timeouts to asynchronous operations
- cancel in-flight async operations

## When to choose
- you're on Swift 3.x/4.x and need promise-based concurrency
- you want async/await-style syntax before Swift's native support
- you need rich promise combinators like all, any, zip, retry

## When to avoid
- you're on modern Swift with built-in async/await and structured concurrency
- you need an actively maintained library (last release 2021)
- your project targets only Apple platforms with Combine available

## Facets
- artifact type: library
- maturity: maintenance
- function: concurrency, developer-tools
- domain: developer-tools, programming-languages
- platform: -
- tags: promises, async-await, futures, gcd, swift, ios, macos, linux

## Member repositories
- malcommac/Hydra (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:01.749272+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:03:58.823702+00:00, confidence not recorded.
  - readme: https://github.com/malcommac/Hydra (fetched 2026-08-28T04:06:01.749272+00:00, sha d2a4cf8eb4bf)
- Data as of 2026-08-30T08:39:29.467469+00:00.
