# @ledgerhq/live-promise

> Ledger Live Promise utilities

Latest version **0.3.0** (published 2026-07-16) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @ledgerhq/live-promise
pnpm add @ledgerhq/live-promise
yarn add @ledgerhq/live-promise
bun add @ledgerhq/live-promise
```

## Health

**Score 70/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; recently updated; high maintenance score; high quality score.

Warnings: low downloads; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.3.0 |
| Published | 2026-07-16 |
| First published | 2023-03-22 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 31.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 618 |
| Maintainers | phenry-ledger, sergii-shkolin, gbrahm-ledger, thomas.coudray, ldg-github-ci, vbouzon, ledger-releaser |
| Keywords | Ledger |

## Links

- npm: https://www.npmjs.com/package/@ledgerhq/live-promise
- Repository: https://github.com/LedgerHQ/ledger-live
- Homepage: https://github.com/LedgerHQ/ledger-live/tree/develop/libs/promise
- Issues: https://github.com/LedgerHQ/ledger-live/issues
- npm.io page: https://npm.io/package/@ledgerhq/live-promise

## Dependencies (1)

- [@ledgerhq/logs](https://npm.io/package/@ledgerhq/logs.md) ^6.17.0

## Recent versions

- 0.3.0 (latest) — 2026-07-16
- 0.3.0-nightly.20260718030452 (nightly) — 2026-07-18
- 0.1.1-next.1 (next) — 2025-06-04
- 0.1.0-windows-certificate.0 (windows-certificate) — 2024-05-28
- 0.0.2-tag-word.0 (tag-word) — 2023-10-25
- 0.3.0-nightly.20260717030514 — 2026-07-17
- 0.3.0-nightly.20260716030502 — 2026-07-16
- 0.3.0-nightly.20260715030507 — 2026-07-15
- 0.3.0-nightly.20260714030307 — 2026-07-14
- 0.3.0-nightly.20260711030526 — 2026-07-11
- 0.3.0-nightly.20260710083506 — 2026-07-10
- 0.3.0-nightly.20260710030609 — 2026-07-10
- 0.3.0-nightly.20260709093723 — 2026-07-09
- 0.3.0-nightly.20260709030615 — 2026-07-09
- 0.3.0-nightly.20260708030542 — 2026-07-08
- … 87 more at https://npm.io/package/@ledgerhq/live-promise/versions

## README

# live-promise

`@ledgerhq/live-promise` provides small, focused Promise utilities for Ledger Live. Rather than pulling in a heavy async library, it ships only the primitives the codebase actually needs: retrying, delaying, and composing async operations.

## What it does

- `retry(fn, options)` — retries an async function with configurable exponential back-off, max attempts, and a custom retry-condition predicate.
- `delay(ms)` — returns a Promise that resolves after `ms` milliseconds.

## Key exports / concepts

- `retry<A>(f: () => Promise<A>, options?)` — `maxRetry`, `interval`, `intervalMultiplicator`, `retryCondition`.
- `delay(ms: number): Promise<void>`.

## Usage context

Used throughout `libs/ledger-live-common` and coin modules wherever network calls or device commands need automatic retry logic. Zero runtime dependencies beyond the standard Promise API.

---
_Source: https://npm.io/package/@ledgerhq/live-promise · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
