开发者工具DEVELOPER TOOLS· CLI
lokesh/color-thief
用 JavaScript 从图片提取主色和配色,浏览器和 Node 都能用。A small JavaScript library for developers who need dominant colors and palettes from images in the browser or Node.
根据公开文档整理,未运行实测;费用以项目官网为准。Based on public documentation, without runtime testing. Check the project site for pricing.
能力CAPABILITIES
提取图片主色
生成图片配色方案
从指定区域取色
跟随视频实时取色
命令行直接取色
Get the dominant color from an image in the browser or Node.
Pull a palette from any image in a few lines of JavaScript.
Restrict color sampling to a region like the bottom third.
Extract colors from a video and update ambient backgrounds live.
Print palettes from a terminal as ANSI, JSON, or CSS.
上手GET STARTED
npm install colorthief选择与你的环境对应的方式。命令来自项目文档,未运行实测。Choose the option for your environment. Commands come from project documentation and have not been run-tested.
使用限制LIMITATIONS
以下要求与风险来自文档静态检查,未执行项目代码;扫描没有命中,不代表使用安全。Risk here is evidence, not an alarm. These findings come from static scanning of the docs; we never execute a project’s code.
限制LIMITS
未知Unknown
静态扫描STATIC SCAN
在 README、SKILL.md 和依赖清单中没有匹配到已知风险模式。No known risk patterns matched in the README, SKILL.md or dependency list.
静态扫描未发现明显风险,但不代表安全。The static scan of the documentation found no obvious risk patterns. That does not prove the project is safe, so review it before use.
项目动态PROJECT ACTIVITY
首次发现FIRST SEEN
04 OCT 202604 OCT 2026
增长GROWTH
+0.2%+0.2%
14k → 14k stars · 48 个快照14k → 14k stars · 48 snapshots
讨论DISCUSSION
1 SOURCES1 SOURCES
5 条外部提及5 external mentions
状态STATUS
长期未更新Not updated
质量 AQuality A
一条命令 npx colorthief-cli photo.jpg 就能在终端里直接给照片取色,不用配环境、不用 API key,立刻可以体验。13,652 stars and zero open issues.
HN_STORY · 4 points · 1 comments
HN_STORY · 10 points · 0 comments
HN_STORY · 1 points · 0 comments
依赖:Dependencies:sharp
{
"agents": [],
"apiKey": null,
"docker": null,
"taxonomy": {
"scores": {
"design": 0,
"ai-tools": 0,
"dev-tools": 1,
"indie-web": 0,
"skill-agent": 0,
"productivity": 0
},
"primary": "dev-tools",
"secondary": "cli"
},
"localRuntime": null,
"skillMdTotal": 0,
"skillMdErrors": [],
"treeTruncated": false,
"categoryScores": {
"data": 0,
"agent": 0,
"media": 1,
"design": 1,
"browser": 0,
"devtool": 1,
"security": 0,
"marketing": 0,
"productivity": 0
},
"classification": [],
"scannedSources": [
"readme"
],
"skillMdFetched": 0
}