Tinct 是一个零依赖、TypeScript 优先的浏览器图像编辑库,在 Canvas 2D 上提供可链式调用、不可变、可摇树的流水线,并支持可选的 WebGL2 加速。

Stars

4

7 天增长

暂无数据

Fork 数

2

开放 Issue

9

开源协议

MIT

最近更新

2026-07-31

AI 仓库情报摘要
FR-AI / ANALYSIS

为什么值得关注

它把类 Lodash 的开发体验带入浏览器图像编辑:小体积可组合操作、可序列化历史、透明的 WebGL2/Worker 加速,以及人脸感知裁剪、缩略图哈希、调色板和多图层文档等配套模块。

适合谁使用

  • 构建自定义图像编辑界面的前端开发者
  • 需要在客户端处理图像且不想引入重型依赖的团队
  • 需要可序列化、可重放图像流水线的开发者
  • 需要在上传时剥离元数据以保护隐私的应用开发者

典型使用场景

  • 在浏览器中先裁剪、缩放、调整再上传用户图片
  • 使用人脸感知构图和大小受限的 WebP 导出生成头像
  • 通过 pipe() 重放 JSON 化的胶片预设
  • 合成多图层文档,用于拼贴、表情包或模板

项目优势

  • 零运行时依赖,ESM 且 sideEffects:false,每个滤镜都可单独导入
  • 不可变、惰性、可链式 API:历史与撤销只需要保留引用,操作可 JSON 序列化
  • 自动检测并使用 WebGL2、Web Worker 和 OffscreenCanvas,同时提供 CPU 回退
  • CI 中强制执行体积预算:核心约 8.6 kB brotli,单个滤镜小于 2 kB,全部滤镜约 3 kB

使用前须知

  • 预发布状态:已覆盖初始版本功能,但尚未稳定发布
  • 仅限浏览器,不适合服务端批量处理
  • 人脸感知裁剪基于启发式算法而非 ML,在灰度或风格化图像上效果下降

README 快速开始

Installation

项目描述

Zero-dependency, TypeScript-first image editing for the browser - chainable, immutable, ree-shakeable, WebGL2-accelerated.

相关仓库与替代方案

根据分类、Topic 和编程语言匹配的相似项目。

NUber-dev
精选
NUber-dev GitHub avatar

YTubic

YTubic is a fast, responsive, open-source YouTube Music desktop client for Windows, Linux, and macOS that uses direct InnerTube API communication and aggressive caching to provide instant navigation and playback.

Web 开发前端框架
226
marcelpanse
精选
marcelpanse GitHub avatar

youtube-guitar-tab-parser

A CLI tool that downloads YouTube guitar lesson videos, uses Claude vision to detect and extract the tab region from sampled frames, de-duplicates lines by bar number, and assembles them into a PDF.

开发者工具CLI 与终端
165
Krishnagangwal
精选
Krishnagangwal GitHub avatar

CS-Fundamentals

A curated collection of Computer Science fundamentals (PDFs, notes, cheatsheets, interview question banks) for placement preparation, covering seven core subjects plus general resources.

数据与数据库数据库与存储
2,326