# Install colorthief with npm

Extract dominant colors and palettes from images — TypeScript, OKLCH, semantic swatches, live video extraction. Version 3.5.0 via npm; verified 2026-08-02. Also installable with debian: sudo apt install python3-colorthief.

## Install

```sh
sudo av install npm:colorthief
```

Additional install commands:

### Portable and language managers

- npm (100%):

```sh
npm install -g colorthief
```

  Evidence: local npm package metadata

## Package facts

- **Package key:** npm:colorthief
- **Package manager:** npm
- **Package manager page:** <https://www.npmjs.com/package/colorthief>
- **Version:** 3.5.0
- **Source summary:** Extract dominant colors and palettes from images — TypeScript, OKLCH, semantic swatches, live video extraction.
- **Homepage:** <http://lokeshdhakar.com/projects/color-thief/>
- **Repository:** <https://github.com/lokesh/color-thief>
- **Upstream docs:** <http://lokeshdhakar.com/projects/color-thief/>
- **License:** MIT
- **Source archive:** <https://registry.npmjs.org/colorthief/-/colorthief-3.5.0.tgz>
- **Issue tracker:** <https://github.com/lokesh/color-thief/issues>
- **Published:** 2026-08-02T23:24:55.464Z
- **Last updated:** 2026-08-02T23:24:55.464Z
- **Generated:** 2026-08-04T22:13:35+00:00

## Executables

- colorthief (cli)
- colorthief (alias)

## Build dependencies

- @types/node
- chai
- chai-as-promised
- cypress
- http-server
- mocha
- mustache
- sharp
- tsup
- typescript

## Install behavior

- Post-install hook: not defined
- Bottle: not available

## Freshness

- Page generated: 2026-08-04
- Package-manager version: 3.5.0
- Package-manager updated: 2026-08-02
- Local data: ok
- Upstream repository: https://github.com/lokesh/color-thief
- info: No cached GitHub release or tag data was available.

## Security Notes

No matching local secret-handling manifest was found for colorthief. Package metadata is still published here so future coverage has a stable package URL.


## Source Database Details

- **Source Database:** npm registry
- **Dist Tags:** Latest: 3.5.0
- **Version Count:** 18
- **Maintainers:** lokesh.dhakar
- **Author:** Lokesh Dhakar
- **Publisher:** lokesh.dhakar
- **Peer Dependencies:** sharp
- **Integrity:** sha512-wV/6Rnkqdx07CAuv8O3WYKBU/j5QdSXbYUfGp26seMIqze5Q40C9ovBSZB9PeVV6XkGe3VWb4zUEtQCYzCfyEA==
- **Shasum:** 98b85187e41f69ce9872af57cd7c0f005d2d735f
- **Unpacked Size:** 1,696,040
- **File Count:** 0
- **Created At:** 2017-11-27T02:36:08.549Z
- **Latest Published At:** 2026-08-02T23:24:55.464Z
- **Modified At:** 2026-08-02T23:24:55.626Z

## Other Package-Manager Records

- Debian apt - python3-colorthief - 0.2.1-2: normalized package name match | Debian stable package indexes: python3-colorthief from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Python module for extracting color palettes from images | https://github.com/fengsp/color-thief-py


## Related links

- [Media and graphics packages](https://pkg.so/media-graphics-tools/) - Matched curated package taxonomy and local package facts.
- [dipc](https://pkg.so/brew/dipc/) - Both packages work with overlapping file formats or content types. Shared terms: cli, color, image, images, media.
- [cwebp-bin](https://pkg.so/npm/cwebp-bin/) - Both packages work with overlapping file formats or content types. Shared terms: cli, image, images, media.
- [image-data-uri](https://pkg.so/npm/image-data-uri/) - Both packages work with overlapping file formats or content types. Shared terms: cli, image, images, media.

## Sources

- pkg.so package database
- package-page enrichment
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
