@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

Latest Version0.1.0
LicenseMIT
Keywords-
Repository-
Author-
Homepage-
Bugs-

Versions

VersionPublished
0.1.02026-09-24

Per-version supply chain

VersionSigSBOMAtt
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

Loading dependency graph...

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

SubpathContents
.Barrel (types + all utilities)
./blendChannel blend, composite (over/normal/layer/frame)
./colorHex/RGB/HSL/HSV parse + convert, WCAG luminance/contrast
./detectColor-match detection utilities
./fillFlood/region fills
./maskMask extract/apply
./palettePalette extraction + quantization
./transformFlip/rotate/scale/offset for RGBA buffers
./repairDead-pixel / artifact repair
./typesBlendMode, 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).