@blueforge-studio/pixel-core
Pure TypeScript pixel operation library for RGBA buffers — zero dependencies, no Canvas/DOM/Sharp. Cross-repo source of truth (extracted from @gamevault/sprite-core; collaboration spec row 8 / decision D5).
Package Info
Versions
| Version | Published |
|---|---|
| 0.1.0 | 2026-09-24 |
Per-version supply chain
| Version | Sig | SBOM | Att |
|---|---|---|---|
| 0.1.0 |
Click a version to view its details.
Supply chain
Provenance
- Published by
- web:14
- When
- 2026-09-24T12:31:02Z
- sha256 (registry-computed)
- c7c36af5c5c5c1720d3aed29b3e345906514e2f22c14365d4e804af2116e2ebc
Observed by the registry at publish.
Claimed by the build
The publisher claimed nothing about its build.
Attachments
- Signature
- none
- SBOM
- none
Dependencies
README
@blueforge-studio/pixel-core
Pure TypeScript pixel operation library for RGBA buffers. Zero dependencies — no Canvas, no DOM, no Sharp. Works in Node.js, Deno, Bun, workers, and WASM.
Published to the packr registry (api.packr.blueforge.studio) as the cross-repo source of truth for pixel operations — extracted from @gamevault/sprite-core per the collaboration spec §5.4 row 8 (decision D5: move + re-export shim). @gamevault/sprite-core remains as a workspace-compatible shim; external npm/JSR copies are frozen at 0.1.1.
Install (cross-repo)
npm install @blueforge-studio/pixel-core --registry=https://api.packr.blueforge.studio/
.npmrc for consumers: //api.packr.blueforge.studio/:_authToken=${PACKR_TOKEN}
Modules
| Subpath | Contents |
|---|---|
. | Barrel (types + all utilities) |
./blend | Channel blend, composite (over/normal/layer/frame) |
./color | Hex/RGB/HSL/HSV parse + convert, WCAG luminance/contrast |
./detect | Color-match detection utilities |
./fill | Flood/region fills |
./mask | Mask extract/apply |
./palette | Palette extraction + quantization |
./transform | Flip/rotate/scale/offset for RGBA buffers |
./repair | Dead-pixel / artifact repair |
./types | BlendMode, PaletteColor, shared shapes |
Usage
import { compositeOver, parseHexColor } from "@blueforge-studio/pixel-core";
// or deep: import { blendPixel } from "@blueforge-studio/pixel-core/blend";
License: MIT (inherited from the sprite-core origin).