colorthief 2.7.0
Get the dominant color or color palette from an image.
colorthief@2.7.0 was published on 2026-02-28. Its manifest declares 3 runtime dependencies and 0 peer requirements. Type declarations are bundled according to the package metadata. No Node.js engine requirement is declared in this manifest.
All colorthief versions · Permanent reference to 2.7.0 · View npm registry JSON · Latest release
Package specifications
| Version | 2.7.0 |
|---|---|
| License declaration | MIT |
| Published | 2026-02-28T09:05:42.570Z |
| Node.js requirement | Not declared |
| Type declarations | Bundled declarations |
| Runtime dependency count | 3 |
| Peer requirement count | 0 |
| Optional dependency count | 0 |
| Minified size | Measurement not available yet |
| Minified + gzip | Measurement not available yet |
| Unpacked distribution size | 74.10 KiB |
| Published file count | 15 |
| Package type | Not declared |
| ES module entry | dist/color-thief.mjs |
| Default entry | dist/color-thief.js |
| Side effects declaration | Not declared |
| Direct advisories | 0 |
| Resolved graph dependencies | 39 |
| Repository stars | 13663 |
| Repository forks | 1308 |
Install colorthief 2.7.0
npm install colorthief@2.7.0 pnpm add colorthief@2.7.0 yarn add colorthief@2.7.0
Runtime dependencies
- sharp ^0.33.5
- ndarray-pixels ^4.1.0
- @lokesh.dhakar/quantize ^1.4.0
Peer requirements
- None declared
Optional dependencies
- None declared
Resolved dependency graph
This deps.dev graph describes a generic 64-bit Linux environment, not your application lockfile.
- @emnapi/runtime@1.11.3 — indirect
- @img/sharp-darwin-arm64@0.33.5 — indirect
- @img/sharp-darwin-x64@0.33.5 — indirect
- @img/sharp-libvips-darwin-arm64@1.0.4 — indirect
- @img/sharp-libvips-darwin-x64@1.0.4 — indirect
- @img/sharp-libvips-linux-arm@1.0.5 — indirect
- @img/sharp-libvips-linux-arm64@1.0.4 — indirect
- @img/sharp-libvips-linux-s390x@1.0.4 — indirect
- @img/sharp-libvips-linux-x64@1.0.4 — indirect
- @img/sharp-libvips-linuxmusl-arm64@1.0.4 — indirect
- @img/sharp-libvips-linuxmusl-x64@1.0.4 — indirect
- @img/sharp-linux-arm@0.33.5 — indirect
- @img/sharp-linux-arm64@0.33.5 — indirect
- @img/sharp-linux-s390x@0.33.5 — indirect
- @img/sharp-linux-x64@0.33.5 — indirect
- @img/sharp-linuxmusl-arm64@0.33.5 — indirect
- @img/sharp-linuxmusl-x64@0.33.5 — indirect
- @img/sharp-wasm32@0.33.5 — indirect
- @img/sharp-win32-ia32@0.33.5 — indirect
- @img/sharp-win32-x64@0.33.5 — indirect
- @lokesh.dhakar/quantize@1.4.0 — direct
- @types/ndarray@1.1.0 — indirect
- color@4.2.3 — indirect
- color-convert@2.0.1 — indirect
- color-name@1.1.4 — indirect
- color-string@1.9.1 — indirect
- cwise-compiler@1.1.3 — indirect
- detect-libc@2.1.2 — indirect
- iota-array@1.0.0 — indirect
- is-arrayish@0.3.4 — indirect
- is-buffer@1.1.6 — indirect
- ndarray@1.1.1 — indirect
- ndarray-ops@1.2.2 — indirect
- ndarray-pixels@4.1.0 — direct
- semver@7.8.6 — indirect
- sharp@0.33.5 — direct
- simple-swizzle@0.2.4 — indirect
- tslib@2.9.1 — indirect
- uniq@1.0.1 — indirect
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 | 0/10 — Found 1/25 approved changesets -- score normalized to 0 |
|---|---|
| Maintained | 10/10 — 13 commit(s) and 6 issue activity found in the last 90 days -- score normalized to 10 |
| Dangerous-Workflow | 10/10 — no dangerous workflow patterns detected |
| Token-Permissions | 0/10 — detected GitHub workflow tokens with excessive permissions |
| Binary-Artifacts | 10/10 — no binaries found in the repo |
| Pinned-Dependencies | 3/10 — dependency not pinned by hash detected -- score normalized to 3 |
| CII-Best-Practices | 0/10 — no effort to earn an OpenSSF best practices badge detected |
| Fuzzing | 0/10 — project is not fuzzed |
| Security-Policy | 0/10 — security policy file not detected |
| License | 10/10 — license file detected |
| Branch-Protection | 0/10 — branch protection not enabled on development/release branches |
| SAST | 0/10 — SAST tool is not run on all commits -- score normalized to 0 |
Evidence and freshness
- Readable npm registry JSON — retrieved 2026-11-05T05:34:31.007Z
- https://api.deps.dev/v3/systems/npm/packages/colorthief/versions/2.7.0:dependencies — retrieved 2026-11-05T05:34:31.118Z
- https://api.deps.dev/v3/systems/npm/packages/colorthief/versions/2.7.0 — retrieved 2026-11-05T05:34:31.152Z
- https://api.deps.dev/v3/projects/github.com%2Flokesh%2Fcolor-thief — retrieved 2026-11-04T21:30:32.616Z (stale snapshot; refresh pending)