drei
useful add-ons for react-three-fiber
drei@2.2.21 was published on 2021-01-24. Its manifest declares 11 runtime dependencies and 3 peer requirements. Type declarations are bundled according to the package metadata. No Node.js engine requirement is declared in this manifest.
Deprecated: drei is now @react-three/drei
All drei versions · Permanent reference to 2.2.21
Package specifications
| Version | 2.2.21 |
|---|---|
| License declaration | MIT |
| Published | 2021-01-24T13:27:32.020Z |
| Node.js requirement | Not declared |
| Type declarations | Bundled declarations |
| Runtime dependency count | 11 |
| Peer requirement count | 3 |
| Optional dependency count | 0 |
| Minified size | Measurement not available yet |
| Minified + gzip | Measurement not available yet |
| Unpacked distribution size | 732.68 KiB |
| Published file count | 181 |
| Package type | Not declared |
| ES module entry | index.js |
| Default entry | index.cjs.js |
| Side effects declaration | false |
| Direct advisories | 0 |
| Resolved graph dependencies | 19 |
| Repository stars | 10053 |
| Repository forks | 859 |
Install drei 2.2.21
npm install drei@2.2.21 pnpm add drei@2.2.21 yarn add drei@2.2.21
Runtime dependencies
- @babel/runtime ^7.11.2
- @react-spring/web ^9.0.0-rc.3
- detect-gpu ^3.0.0
- glsl-noise ^0.0.0
- lodash.omit ^4.5.0
- lodash.pick ^4.4.0
- react-merge-refs ^1.0.0
- stats.js ^0.17.0
- troika-three-text ^0.34.2
- utility-types ^3.10.0
- zustand ^3.0.3
Peer requirements
- react >=16.13
- react-dom >=16.13
- react-three-fiber >=5.0
Optional dependencies
- None declared
Resolved dependency graph
This deps.dev graph describes a generic 64-bit Linux environment, not your application lockfile.
- @babel/runtime@7.29.10 — direct
- @react-spring/animated@9.7.5 — indirect
- @react-spring/core@9.7.5 — indirect
- @react-spring/rafz@9.7.5 — indirect
- @react-spring/shared@9.7.5 — indirect
- @react-spring/types@9.7.5 — indirect
- @react-spring/web@9.7.5 — direct
- detect-gpu@3.1.30 — direct
- glsl-noise@0.0.0 — direct
- lodash.omit@4.18.0 — direct
- lodash.pick@4.4.0 — direct
- react-merge-refs@1.1.0 — direct
- stats.js@0.17.0 — direct
- troika-three-text@0.34.2 — direct
- troika-three-utils@0.34.0 — indirect
- troika-worker-utils@0.34.1 — indirect
- utility-types@3.11.0 — direct
- webgl-constants@1.1.1 — indirect
- zustand@3.7.2 — direct
How to interpret the specifications
Bundlephobia measurements use its standard package build and may exclude peer dependencies. Unpacked npm distribution size includes shipped files and is a different measurement. Module declarations do not prove tree-shaking or runtime compatibility.
Advisories apply to this package version directly; transitive dependencies need separate inspection. Repository signals describe the whole repository and are current observations, including on historical-version pages.
OpenSSF repository checks
Provider assessment: 2026-08-24T00:00:00Z. These are repository checks, not a jsL maintenance score.
| Code-Review | 1/10 — Found 3/30 approved changesets -- score normalized to 1 |
|---|---|
| Maintained | 5/10 — 4 commit(s) and 3 issue activity found in the last 90 days -- score normalized to 5 |
| Dangerous-Workflow | 10/10 — no dangerous workflow patterns detected |
| Token-Permissions | 0/10 — detected GitHub workflow tokens with excessive permissions |
| CII-Best-Practices | 0/10 — no effort to earn an OpenSSF best practices badge detected |
| Binary-Artifacts | 9/10 — binaries present in source code |
| Pinned-Dependencies | 0/10 — dependency not pinned by hash detected -- score normalized to 0 |
| License | 10/10 — license file detected |
| Security-Policy | 0/10 — security policy file not detected |
| Branch-Protection | 0/10 — branch protection not enabled on development/release branches |
| Fuzzing | 0/10 — project is not fuzzed |
| SAST | 0/10 — SAST tool is not run on all commits -- score normalized to 0 |
Evidence and freshness
- https://registry.npmjs.org/drei/2.2.21 — retrieved 2026-10-29T09:50:30.528Z
- https://api.deps.dev/v3/systems/npm/packages/drei/versions/2.2.21 — retrieved 2026-10-29T09:50:31.078Z
- https://api.deps.dev/v3/systems/npm/packages/drei/versions/2.2.21:dependencies — retrieved 2026-10-29T09:50:31.116Z
- https://api.deps.dev/v3/projects/github.com%2Fpmndrs%2Fdrei — retrieved 2026-10-29T09:50:31.256Z