# tc39/proposal-top-level-await

top-level `await` proposal for ECMAScript (stage 4)

Repository: https://github.com/tc39/proposal-top-level-await
Canonical: https://ross.abutalabs.com/products/proposal-top-level-await
Homepage: https://tc39.github.io/proposal-top-level-await/
Language: HTML
License: Apache-2.0
License Family: permissive
Archived: true
Last push: 2021-05-28T08:02:18+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 3145, "days_push": 1923, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, archived
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1081, forks 45 (observed 2026-08-28T04:03:30.704496+00:00)

## What it is
The official TC39 ECMAScript proposal repository for top-level `await`, which reached Stage 4 and was merged into the JavaScript language specification. It contains the motivation, explainer, and formal specification text allowing `await` at the top level of ES modules.

## Use cases
- understand how top-level await works in ES modules
- read the official spec text for top-level await
- learn why IIAFE patterns are problematic for async module initialization
- find motivation and semantics for awaiting resources at module top level
- reference the proposal when implementing ESM engines or bundlers

## When to choose
- you need authoritative specification details or motivation for top-level await
- you are implementing a JavaScript engine, transpiler, or bundler that must support top-level await
- you want to understand async module evaluation semantics

## When to avoid
- you want a tool or library to use top-level await rather than read about it
- you need runtime support itself - use a modern JavaScript engine instead
- you want tutorials rather than formal specification documents

## Facets
- artifact type: learning-resource
- maturity: stable
- function: programming-language, interpreter, developer-tools
- domain: programming-languages, web-development
- platform: cross-platform
- tags: ecmascript, tc39, javascript, language-proposal, top-level-await, esm, specification, stage-4, specifications

## Member repositories
- tc39/proposal-top-level-await (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:30.704496+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:51:24.032536+00:00, confidence not recorded.
  - readme: https://github.com/tc39/proposal-top-level-await (fetched 2026-08-28T04:03:30.704496+00:00, sha 2cb62dd01e54)
  - homepage: https://tc39.github.io/proposal-top-level-await/ (fetched 2026-08-29T12:53:38.742584+00:00, sha 4816f89bab7d)
- Data as of 2026-08-30T08:39:29.467469+00:00.
