# shuding/better-all

Better Promise.all with automatic dependency optimization

Repository: https://github.com/shuding/better-all
Canonical: https://ross.abutalabs.com/products/better-all
Language: TypeScript
License: MIT
License Family: permissive
Last push: 2026-08-19T15:20:00+00:00

## Health v2 (maintenance only)
Score: 82/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 98, release rhythm 98, longevity 17
- inputs: {"age_days": 238, "days_push": 14, "days_rel": 14, "gap_med": 5.5, "n_releases_24m": 9}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1095, forks 21 (observed 2026-08-28T04:03:34.047060+00:00)

## What it is
better-all is a TypeScript library that provides an improved Promise.all with automatic dependency optimization. Tasks are declared in an object and dependencies are expressed via a special `this.$` accessor, letting the library maximize parallelism without manual scheduling.

## Use cases
- run async tasks with dependencies in optimal parallel time
- replace nested Promise.all chains with readable task declarations
- speed up server-side data fetching with dependent async calls
- avoid manually analyzing promise dependency graphs
- get fully typed results from parallel async tasks

## When to choose
- you have multiple async tasks where some depend on others' results
- task durations vary and manual Promise.all batching becomes suboptimal
- you want readable, type-safe parallel task orchestration in JavaScript/TypeScript

## When to avoid
- your tasks are fully independent and plain Promise.all suffices
- your tasks are strictly sequential with no parallelism opportunity
- you need advanced scheduling features like retries, timeouts, or concurrency limits

## Facets
- artifact type: library
- maturity: active
- function: concurrency
- domain: developer-tools, web-development, performance
- platform: bun, cross-platform
- tags: promise, async, parallelization, dependency-graph, typescript, nodejs, deno

## Member repositories
- shuding/better-all (main) score 82

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:34.047060+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-30T06:47:17.374740+00:00, confidence not recorded.
  - readme: https://github.com/shuding/better-all (fetched 2026-08-28T04:03:34.047060+00:00, sha a766f20cb3a7)
  - registry_npm: https://registry.npmjs.org/better-all (fetched 2026-08-29T12:50:21.555010+00:00, sha ba226ccb8944)
- Data as of 2026-08-30T08:39:29.467469+00:00.
