# @react-spring/shared

> Globals and shared modules

Latest version **10.1.2** (published 2026-06-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install @react-spring/shared
pnpm add @react-spring/shared
yarn add @react-spring/shared
bun add @react-spring/shared
```

## Health

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

Positive: has types; esm support; no vulnerabilities; has provenance; recently updated; high maintenance score; popular repo.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 10.1.2 |
| Published | 2026-06-24 |
| First published | 2019-06-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 212.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 29149 |
| Author | Paul Henschel |
| Maintainers | tdfka_rick |
| Keywords | animated, animation, hooks, motion, react, react-native, spring, typescript, velocity |

## Links

- npm: https://www.npmjs.com/package/@react-spring/shared
- Repository: https://github.com/pmndrs/react-spring
- Homepage: https://github.com/pmndrs/react-spring#readme
- Issues: https://github.com/pmndrs/react-spring/issues
- npm.io page: https://npm.io/package/@react-spring/shared

## Dependencies (2)

- [@react-spring/rafz](https://npm.io/package/@react-spring/rafz.md) ~10.1.2
- [@react-spring/types](https://npm.io/package/@react-spring/types.md) ~10.1.2

## Alternatives

- [@luma.gl/experimental](https://npm.io/package/@luma.gl/experimental.md) — 77.1K weekly downloads
- [persona-harness](https://npm.io/package/persona-harness.md) — 4.7K weekly downloads
- [@tsparticles/effect-bubble](https://npm.io/package/@tsparticles/effect-bubble.md) — 4.6K weekly downloads
- [f3d](https://npm.io/package/f3d.md) — 730 weekly downloads
- [spark-html-motion](https://npm.io/package/spark-html-motion.md) — 298 weekly downloads

## Recent versions

- 10.1.2 (latest) — 2026-06-24
- 11.0.0-beta.0 (beta) — 2026-06-21
- 0.0.0-nightly-52cc710-20230626001840 (nightly) — 2023-06-26
- 0.0.0-65fc02cc281573bc28d90720983c8e9df9035059-20230625170003 (experimental) — 2023-06-25
- 9.4.0-alpha.0 (alpha) — 2021-10-15
- 10.1.1 — 2026-06-10
- 10.1.0 — 2026-05-22
- 10.0.4 — 2026-05-21
- 10.0.3 — 2025-09-18
- 10.0.3-beta.0 — 2025-09-16
- 10.0.2 — 2025-09-07
- 10.0.1 — 2025-05-21
- 10.0.0 — 2025-05-14
- 10.0.0-beta.0 — 2025-04-29
- 9.7.5 — 2024-10-07
- … 126 more at https://npm.io/package/@react-spring/shared/versions

## README

# @react-spring/shared

Various helpers used by `@react-spring/core` and/or the platform targets (eg: `@react-spring/web`).

### Notable exports:

- The `Globals` object (updated with its `assign` method)
- The `createStringInterpolator` function
- The `createInterpolator` function
- The `normalizeColor` function
- The `FrameLoop` class
- The `colors` object
- The `colorToRgba` function
- The `FluidValue` class and related functions

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