huetension

package module
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 24, 2026 License: MIT Imports: 12 Imported by: 0

README ΒΆ

huetension

A color palette toolkit for designers, frontend devs, and photographers. One binary, three modes β€” CLI, MCP server, and Web UI β€” sharing a single pure-Go core.

Go Report Card Go Reference Latest release Go Reference CI

huetension web UI

Features

🎨 Palette generation
  • Extract from images β€” file path, http(s) URL, data: URI, or stdin. Methods: soft (default, designer-friendly), softk, kmeans, okkmeans, mediancut, octree, popularity, wu, dbscan, wkmeans, with mood presets for soft/softk.
  • Random palettes β€” deterministic when seeded, optionally driven by a harmony rule.
  • Harmonies around a base color β€” complementary, analogous, triadic, split, tetradic, square, double-complementary, compound, monochromatic, shades.
  • Gradients β€” two endpoints or N positioned stops, interpolated in OkLab / OkLCH / Lab / RGB / HSL with optional easing.
  • Interactive color wheel (web UI) β€” drag handles to mix custom palettes, pin the card while editing.
πŸ” Analysis
  • Contrast scoring β€” WCAG 2.1 and APCA side-by-side. Foreground "analyse" mode (--suggest) finds the nearest passing OkLCH lightness for a failing fg / bg pair.
  • Color-vision-deficiency simulation β€” protanopia, deuteranopia, tritanopia, achromatopsia. Live preview in the SPA.
  • Image color-distribution strips by color space and distance metric (analyze).
πŸ› οΈ Color utilities
  • Convert between hex / RGB / HSL / HSV / HLS / Lab / LCH / OkLab / OkLCH / CSS named / 24-bit integer.
  • Sort lists by luminance, lightness, OkLab L, hue, saturation, or frequency.
🎬 3D LUT
  • .cube LUT β€” palette-driven, two grading methods: Smooth (RBF over OkLab) or Layered (K-NN over OkLCH).
  • LUT Texture PNG β€” the cube laid out as a 2D image, handy for OBS-style real-time color grading and other tools that accept a texture LUT.
  • In-browser preview on your own image β€” the backend pipes the .cube text into ffmpeg's lut3d filter, so ffmpeg must be on the server's PATH.
πŸ“š Library
  • Bundled curated catalogue ships in the binary.
  • Save your own palettes to library.json from the CLI, the REST API, or the MCP library.save tool β€” they join the Saved category alongside the defaults.
πŸ“€ Export
  • JSON, plain TXT, CSS custom properties, SCSS, LESS, Tailwind theme.extend.colors, GIMP .gpl, GIMP .ggr (gradient), SVG, PNG, JPEG, Adobe .ase, Adobe .aco.

Three modes

CLI
huetension extract photo.jpg -k 6
huetension harmony complementary "#3498db"
huetension gradient "#ff0066" "#00bcd4" --steps 9
huetension contrast "#222" "#fff" --algo wcag21

ANSI swatches by default, JSON / CSS / SCSS / Tailwind / GIMP .gpl / PNG / .ase / .aco on demand.

MCP server
huetension mcp --transport stdio

15 default-enabled tools (color.convert, harmony.generate, image.extract, library.list, …) speaking the same JSON contract as the CLI. Drop into Claude Desktop, an editor, or any MCP client:

{
  "mcpServers": {
    "huetension": {
      "command": "huetension",
      "args": ["mcp", "--transport", "stdio"]
    }
  }
}
Web UI
huetension web                       # http://127.0.0.1:8080

The embedded Vue SPA β€” color wheel, harmonies, image extraction, contrast / blindness checks, library, palette-driven 3D LUTs. Same REST envelope as huetension --format json.

Install

go install
go install github.com/leporel/huetension/cmd/huetension@latest

Requires Go β‰₯ 1.26. The SPA assets are committed under web/dist/ and embedded into the binary, so this produces a fully functional Web UI without bun.

Pre-built archives

Pick the right archive from the latest release:

OS Arch File
Linux amd64 huetension_<v>_linux_amd64.tar.gz
Linux arm64 huetension_<v>_linux_arm64.tar.gz
macOS amd64 huetension_<v>_darwin_amd64.tar.gz
macOS arm64 huetension_<v>_darwin_arm64.tar.gz
Windows amd64 huetension_<v>_windows_amd64.zip
Windows arm64 huetension_<v>_windows_arm64.zip

Each archive ships the binary, LICENSE, README.md, and huetension.example.yaml. SHA-256 checksums are published next to the archives.

Docker

The release image is ghcr.io/leporel/huetension. Three common shapes:

Web UI + REST API β€”

docker run --rm -p 8080:8080 \
  ghcr.io/leporel/huetension:latest \
  web --address 0.0.0.0:8080

MCP over HTTP β€”

docker run --rm -p 7337:7337 \
  -v "$HOME/.config/huetension:/data:ro" \
  ghcr.io/leporel/huetension:latest \
  mcp --transport http --address 0.0.0.0:7337 \
      --auth-token "$TOKEN" --data-dir /data

Web + MCP on the same port (serve) β€”

docker run --rm -p 8080:8080 \
  -v "$HOME/.config/huetension:/data:ro" \
  ghcr.io/leporel/huetension:latest \
  serve --address 0.0.0.0:8080 \
        --auth-token "$TOKEN" --data-dir /data

The SPA is served at /, the REST API mounts under /api/v1, and the MCP HTTP transport mounts under /mcp. Add --mcp-transport http,sse to also expose SSE at /mcp/sse.

For MCP-over-stdio inside Docker (Claude Desktop and similar), see docs/mcp.md.

From source
git clone https://github.com/leporel/huetension
cd huetension/web && bun install --frozen-lockfile && bun run build
cd .. && go build ./cmd/huetension

Build order matters: the SPA assets are embedded, so bun run build must run before go build.

CLI quick reference

Command What it does
extract <source> Pull a palette from an image (file / URL / data: / stdin).
analyze <source> Image color-distribution strips by color space + distance metric.
harmony <type> <color> Generate a harmony around a base color.
gradient Two-endpoint or N-stop gradients with easing.
contrast WCAG 2.1 / APCA contrast scores.
blindness Simulate protanopia / deuteranopia / tritanopia / achromatopsia.
convert / sort Color-list utilities; read stdin when no args.
random Generate a random palette, optionally harmonised.
css / tailwind Export-only conveniences.
lut Palette-driven 3D LUT (.cube) β€” RBF or K-NN grading.
library / library add Manage the on-disk palette catalogue.
mcp / web / serve Long-running servers (see below).
version / completion Print version, generate shell completions.

Full reference in docs/cli.md. Every command supports --help.

MCP usage

huetension mcp runs the MCP server over stdio (default; for Claude Desktop / editors), http (recommended for remote use), or sse (legacy). The same mcp: section of config.yaml controls which tools are exposed, and is also honoured by huetension serve.

Tool catalogue, transport details, image-sandbox flags, and container configs live in docs/mcp.md.

Web UI tour

Tools page (the default route):

  • Color wheel β€” drag handles to mix custom palettes; pin the card to keep it visible while scrolling.
  • Harmonies / Random / Gradient β€” generate around a base color or a seed.
  • From image β€” drag-drop or paste an image; choose extract method + size.
  • Contrast checker β€” WCAG / APCA side-by-side.
  • Color blindness β€” preview palettes under each CVD type.
  • Export β€” JSON / CSS / SCSS / LESS / Tailwind / GIMP .gpl / PNG / SVG / .ase / .aco. Includes a palette-driven 3D LUT tab with in-browser grading preview.

Library page (/library):

  • Browse the bundled curated catalogue and any palettes you've saved.

Configuration

config.yaml lives in the data directory β€” ~/.config/huetension/ on Linux/macOS, %APPDATA%\huetension\ on Windows. Override with --data-dir or HUETENSION_DATA_DIR.

# Blacklist β€” start from the default-enabled set, remove specific tools.
mcp:
  disable:
    - image.extract
    - library.save
# Whitelist β€” expose ONLY these tools; everything else is off.
mcp:
  enable:
    - color.convert
    - harmony.generate
    - contrast.check

Precedence: flag > HUETENSION_* env > config.yaml > built-in default.

Full reference in docs/config.md; annotated example at huetension.example.yaml.

Library

The data directory also holds library.json. Bundled palettes ship with the binary; saved palettes (via huetension library add, POST /api/v1/library, or the MCP library.save tool) are appended under the Saved category.

{
  "version": 1,
  "palettes": [
    {
      "id": "brand-minimal",
      "name": "Brand minimal",
      "source": "user",
      "categories": ["Saved"],
      "colors": [
        { "hex": "#111827", "name": "Ink" },
        { "hex": "#F9FAFB", "name": "Paper" },
        { "hex": "#2563EB", "name": "Accent" }
      ]
    }
  ]
}

Development

Repo layout:

  • cmd/huetension/ β€” CLI entrypoint, command tree.
  • internal/color, internal/palette, internal/harmony, internal/gradient, internal/contrast, internal/blindness, internal/extract, internal/exporter, internal/imageio, internal/cliutil, internal/lut β€” pure-Go core.
  • internal/web/ β€” REST API + embedded SPA.
  • internal/mcp/ β€” MCP server + tool registry.
  • internal/serve/ β€” combined SPA + REST + MCP listener.
  • web/ β€” Vue 3 SPA source; built bundle committed to web/dist/.
  • docs/ β€” long-form documentation.

Common tasks:

go test ./... -short          # fast tests (skips heavy extract sidecar)
go test ./...                 # full suite
cd web && bun run dev         # SPA dev server with HMR
huetension web --dev http://localhost:5173    # Go API in front of Vite

Release process: docs/RELEASING.md.

Extract testdata guidance: internal/extract/testdata/README.md.

License

MIT β€” see LICENSE.

Inspirations

Built after exploring these projects:

Acknowledgements

Documentation ΒΆ

Overview ΒΆ

Package huetension is the public library facade of the huetension color palette toolkit. It re-exports the most useful types and functions from the internal subpackages so external Go programs can use huetension as a library:

import "github.com/leporel/huetension"

pal, err := huetension.Extract(ctx, "photo.jpg", huetension.ExtractOptions{
    Method:      huetension.MethodSoft,
    PaletteSize: 6,
})
if err != nil { ... }
css, _ := huetension.Export(pal, huetension.FormatCSS, huetension.ExportOptions{})

The same internal packages back the CLI, MCP server, and Web UI binaries, so the library and the binaries are guaranteed to stay in sync.

The internal/* subpackages are private and may change between minor versions; use the symbols re-exported here for stable API guarantees.

Index ΒΆ

Constants ΒΆ

View Source
const (
	SoftPresetDefault  = extract.SoftPresetDefault
	SoftPresetColorful = extract.SoftPresetColorful
	SoftPresetBright   = extract.SoftPresetBright
	SoftPresetMuted    = extract.SoftPresetMuted
	SoftPresetDeep     = extract.SoftPresetDeep
	SoftPresetDark     = extract.SoftPresetDark
)

Soft preset values. Empty string means "no preset" β€” the legacy HSL-knob behavior stays in effect.

View Source
const (
	MethodKMeans         = extract.MethodKMeans
	MethodOkKMeans       = extract.MethodOkKMeans
	MethodMedianCut      = extract.MethodMedianCut
	MethodSoft           = extract.MethodSoft
	MethodSoftK          = extract.MethodSoftK
	MethodOctree         = extract.MethodOctree
	MethodPopularity     = extract.MethodPopularity
	MethodWu             = extract.MethodWu
	MethodDBSCAN         = extract.MethodDBSCAN
	MethodWeightedKMeans = extract.MethodWeightedKMeans
)
View Source
const (
	HarmonyComplementary       = harmony.Complementary
	HarmonyAnalogous           = harmony.Analogous
	HarmonyTriadic             = harmony.Triadic
	HarmonySplit               = harmony.Split
	HarmonyTetradic            = harmony.Tetradic
	HarmonySquare              = harmony.Square
	HarmonyDoubleComplementary = harmony.DoubleComplementary
	HarmonyCompound            = harmony.Compound
	HarmonyMonochromatic       = harmony.Monochromatic
	HarmonyShades              = harmony.Shades
)
View Source
const (
	GradientRGB   = gradient.SpaceRGB
	GradientLab   = gradient.SpaceLab
	GradientOkLab = gradient.SpaceOkLab
	GradientOkLCH = gradient.SpaceOkLCH
	GradientHSL   = gradient.SpaceHSL
)
View Source
const (
	ContrastWCAG21 = contrast.AlgoWCAG21
	ContrastAPCA   = contrast.AlgoAPCA
)
View Source
const (
	BlindnessProtan  = blindness.Protan
	BlindnessDeutan  = blindness.Deutan
	BlindnessTritan  = blindness.Tritan
	BlindnessAchroma = blindness.Achroma
)
View Source
const (
	FormatJSON     = exporter.FormatJSON
	FormatCSS      = exporter.FormatCSS
	FormatSCSS     = exporter.FormatSCSS
	FormatLESS     = exporter.FormatLESS
	FormatTailwind = exporter.FormatTailwind
	FormatPlain    = exporter.FormatPlain
	FormatGPL      = exporter.FormatGPL
	FormatGGR      = exporter.FormatGGR
	FormatSVG      = exporter.FormatSVG
	FormatPNG      = exporter.FormatPNG
	FormatJPEG     = exporter.FormatJPEG
	FormatASE      = exporter.FormatASE
	FormatACO      = exporter.FormatACO
)
View Source
const (
	MetricHue         = analyze.MetricHue
	MetricLuminance   = analyze.MetricLuminance
	MetricSaturation  = analyze.MetricSaturation
	MetricDistance    = analyze.MetricDistance
	AnalyzeSpaceOkLCH = analyze.SpaceOkLCH
	AnalyzeSpaceHSL   = analyze.SpaceHSL
)
View Source
const Version = "0.1.0"

Version is the current library version. Wire-format JSON envelopes use the separate "huetension/v1" string from the exporter package; bumping Version here is allowed without bumping the wire contract.

Variables ΒΆ

View Source
var (
	NewColor          = color.New
	NewColorWithAlpha = color.NewWithAlpha
	ParseHex          = color.ParseHex
	Parse             = color.Parse
	NewPalette        = palette.New
	RandomPalette     = palette.Random
)

Color parsers / constructors. Aliasing functions as vars keeps the public surface aware of upstream signature changes.

View Source
var (
	AllSoftPresets  = extract.AllSoftPresets
	ParseSoftPreset = extract.ParseSoftPreset
)

AllSoftPresets is the canonical list of supported soft presets.

View Source
var (
	BuildGradient     = gradient.Build
	MultiStopGradient = gradient.MultiStop
)
View Source
var (
	WCAG21          = contrast.WCAG21
	APCA            = contrast.APCA
	CheckContrast   = contrast.Check
	SuggestContrast = contrast.Suggest
)
View Source
var (
	SimulateBlindness        = blindness.Simulate
	SimulateBlindnessPalette = blindness.SimulatePalette
	SimulateAllBlindness     = blindness.SimulateAll
)
View Source
var (
	AllExportFormats = exporter.AllFormats
	Export           = exporter.Export
	FileExtension    = exporter.FileExtension
)
View Source
var (
	AnalyzeStrips      = analyze.Strips
	AnalyzeAllMetrics  = analyze.AllMetrics
	AnalyzeCombinePNGs = analyze.Combined
)
View Source
var (
	GenerateLUT   = lut.Generate
	EncodeCube    = lut.EncodeCube
	EncodeHaldPNG = lut.EncodeHaldPNG
)
View Source
var AllExtractMethods = extract.AllMethods

AllExtractMethods is the canonical list of supported extraction methods.

View Source
var ExtractFromImage = extract.Extract

ExtractFromImage is the in-memory variant for callers that already decoded the image (e.g. via image.Decode).

View Source
var GenerateHarmony = harmony.Generate

GenerateHarmony returns the colors of a harmony around base.

Functions ΒΆ

This section is empty.

Types ΒΆ

type APCAResult ΒΆ

type APCAResult = contrast.APCAResult

Contrast surface β€” WCAG 2.1 ratio + APCA Lc score, plus an OkLCH lightness-fix search for failing foreground/background pairs.

type AnalyzeDistanceTarget ΒΆ

type AnalyzeDistanceTarget = analyze.DistanceTarget

Image analysis surface β€” render four colour-distribution strips (hue / luminance / saturation / distance) for an image.

type AnalyzeMetric ΒΆ

type AnalyzeMetric = analyze.Metric

Image analysis surface β€” render four colour-distribution strips (hue / luminance / saturation / distance) for an image.

type AnalyzeOptions ΒΆ

type AnalyzeOptions = analyze.Options

Image analysis surface β€” render four colour-distribution strips (hue / luminance / saturation / distance) for an image.

type AnalyzeResult ΒΆ

type AnalyzeResult = analyze.Result

Image analysis surface β€” render four colour-distribution strips (hue / luminance / saturation / distance) for an image.

type AnalyzeSpace ΒΆ

type AnalyzeSpace = analyze.Space

Image analysis surface β€” render four colour-distribution strips (hue / luminance / saturation / distance) for an image.

type AnalyzeStrip ΒΆ

type AnalyzeStrip = analyze.Strip

Image analysis surface β€” render four colour-distribution strips (hue / luminance / saturation / distance) for an image.

type BlindnessKind ΒΆ

type BlindnessKind = blindness.Kind

Blindness surface β€” Brettel-ViΓ©not-Mollon CVD simulation.

type Color ΒΆ

type Color = color.Color

Core types.

Color is huetension's canonical sRGB color, Palette is the ordered list of colors with provenance metadata.

type ContrastAlgo ΒΆ

type ContrastAlgo = contrast.Algo

Contrast surface β€” WCAG 2.1 ratio + APCA Lc score, plus an OkLCH lightness-fix search for failing foreground/background pairs.

type ContrastSample ΒΆ added in v0.2.0

type ContrastSample = contrast.SuggestSample

Contrast surface β€” WCAG 2.1 ratio + APCA Lc score, plus an OkLCH lightness-fix search for failing foreground/background pairs.

type ContrastSuggest ΒΆ added in v0.2.0

type ContrastSuggest = contrast.SuggestResult

Contrast surface β€” WCAG 2.1 ratio + APCA Lc score, plus an OkLCH lightness-fix search for failing foreground/background pairs.

type ContrastSuggested ΒΆ added in v0.2.0

type ContrastSuggested = contrast.Suggestion

Contrast surface β€” WCAG 2.1 ratio + APCA Lc score, plus an OkLCH lightness-fix search for failing foreground/background pairs.

type ExportFormat ΒΆ

type ExportFormat = exporter.Format

Exporter surface β€” render a palette to JSON / CSS / SCSS / Tailwind / plain hex / GIMP .gpl / .ggr / SVG / PNG / JPEG / Adobe .ase / .aco.

type ExportOptions ΒΆ

type ExportOptions = exporter.Options

Exporter surface β€” render a palette to JSON / CSS / SCSS / Tailwind / plain hex / GIMP .gpl / .ggr / SVG / PNG / JPEG / Adobe .ase / .aco.

type ExtractMethod ΒΆ

type ExtractMethod = extract.Method

Extraction surface β€” turn an image into a palette. ExtractMethod values are typed string constants suitable for CLI flag parsing.

type ExtractOptions ΒΆ

type ExtractOptions = extract.Options

Extraction surface β€” turn an image into a palette. ExtractMethod values are typed string constants suitable for CLI flag parsing.

type GradientOptions ΒΆ

type GradientOptions = gradient.Options

Gradient surface β€” interpolate between two or more colors in a chosen space with optional easing.

type GradientSpace ΒΆ

type GradientSpace = gradient.Space

Gradient surface β€” interpolate between two or more colors in a chosen space with optional easing.

type HarmonyOptions ΒΆ

type HarmonyOptions = harmony.Options

Harmony surface β€” generate complementary / analogous / etc. palettes around a base color.

type HarmonyType ΒΆ

type HarmonyType = harmony.Type

Harmony surface β€” generate complementary / analogous / etc. palettes around a base color.

type LUT ΒΆ

type LUT = lut.LUT

LUT surface β€” 3D color-grading lookup tables in Cube and HALD PNG formats.

type LUTOptions ΒΆ

type LUTOptions = lut.Options

LUT surface β€” 3D color-grading lookup tables in Cube and HALD PNG formats.

type Metadata ΒΆ

type Metadata = palette.Metadata

Core types.

Color is huetension's canonical sRGB color, Palette is the ordered list of colors with provenance metadata.

type Palette ΒΆ

type Palette = palette.Palette

Core types.

Color is huetension's canonical sRGB color, Palette is the ordered list of colors with provenance metadata.

func Extract ΒΆ

func Extract(ctx context.Context, source string, opts ExtractOptions) (*Palette, error)

Extract pulls a palette from any source string β€” file path, URL, data: URI, or "-" for stdin. Network sources require a non-zero ImageHostAllowList; pass it through extract.FromSource directly when custom imageio options are needed.

type SoftPreset ΒΆ

type SoftPreset = extract.SoftPreset

SoftPreset is a mood preset for the Soft/SoftK methods.

type SortBy ΒΆ

type SortBy = palette.SortBy

SortBy enumerates palette sort keys (luminance, lightness, hue, ...).

type WCAG21Result ΒΆ

type WCAG21Result = contrast.WCAG21Result

Contrast surface β€” WCAG 2.1 ratio + APCA Lc score, plus an OkLCH lightness-fix search for failing foreground/background pairs.

Directories ΒΆ

Path Synopsis
cmd
huetension command
huetension is a single-binary CLI: subcommands for palette extraction, harmony / gradient generation, contrast checks, CVD simulation, and export.
huetension is a single-binary CLI: subcommands for palette extraction, harmony / gradient generation, contrast checks, CVD simulation, and export.
huetension/cli
Package cli wires the huetension command tree on top of cobra and viper.
Package cli wires the huetension command tree on top of cobra and viper.
internal
analyze
Package analyze renders "colour distribution" strips for an image: four horizontal bars showing the image's pixels sorted by hue, luminance, saturation, and distance to a primary colour.
Package analyze renders "colour distribution" strips for an image: four horizontal bars showing the image's pixels sorted by hue, luminance, saturation, and distance to a primary colour.
blindness
Package blindness simulates the four common forms of color-vision deficiency: protanopia, deuteranopia, tritanopia, and achromatopsia.
Package blindness simulates the four common forms of color-vision deficiency: protanopia, deuteranopia, tritanopia, and achromatopsia.
cliutil
Package cliutil renders palettes and color lists for terminal output.
Package cliutil renders palettes and color lists for terminal output.
color
Package color provides huetension's canonical color type and conversions across hex, rgb, hsl, hsv, hls (Python colorsys), lab, lch, oklab, oklch, and CSS named colors.
Package color provides huetension's canonical color type and conversions across hex, rgb, hsl, hsv, hls (Python colorsys), lab, lch, oklab, oklch, and CSS named colors.
contrast
Package contrast computes color-contrast scores using two algorithms:
Package contrast computes color-contrast scores using two algorithms:
exporter
Package exporter renders a *palette.Palette into one of several formats: JSON (the huetension/v1 wire contract), CSS custom properties, SCSS variables, a Tailwind theme.extend.colors snippet, plain hex per line, the GIMP .gpl palette and .ggr gradient formats, a standalone SVG <linearGradient>, swatch images (PNG / JPEG), and the Adobe .ase / .aco swatch interchange formats.
Package exporter renders a *palette.Palette into one of several formats: JSON (the huetension/v1 wire contract), CSS custom properties, SCSS variables, a Tailwind theme.extend.colors snippet, plain hex per line, the GIMP .gpl palette and .ggr gradient formats, a standalone SVG <linearGradient>, swatch images (PNG / JPEG), and the Adobe .ase / .aco swatch interchange formats.
extract
Package extract turns an image into a Palette via one of three algorithms:
Package extract turns an image into a Palette via one of three algorithms:
gradient
Package gradient produces interpolated color sequences between two or more endpoints.
Package gradient produces interpolated color sequences between two or more endpoints.
harmony
Package harmony generates color harmonies β€” complementary, analogous, triadic, split-complementary, tetradic / square, double-complementary, compound, monochromatic, and shades β€” around a base color.
Package harmony generates color harmonies β€” complementary, analogous, triadic, split-complementary, tetradic / square, double-complementary, compound, monochromatic, and shades β€” around a base color.
httputil
Package httputil holds HTTP transport helpers shared by huetension's network-facing internal packages (mcp, web, serve): thin http.Handler middleware, request-classification predicates, and the shared operational logger constructor.
Package httputil holds HTTP transport helpers shared by huetension's network-facing internal packages (mcp, web, serve): thin http.Handler middleware, request-classification predicates, and the shared operational logger constructor.
imageio
Package imageio loads images from a variety of sources (file paths, http URLs, stdin, raw bytes, data URIs) and exposes the helpers extract needs: pixel iteration with optional alpha-mask filtering, and aspect-preserving resize through bild.
Package imageio loads images from a variety of sources (file paths, http URLs, stdin, raw bytes, data URIs) and exposes the helpers extract needs: pixel iteration with optional alpha-mask filtering, and aspect-preserving resize through bild.
lut
mcp
Package mcp wires the huetension internal libraries (color, palette, harmony, …) up as an MCP server.
Package mcp wires the huetension internal libraries (color, palette, harmony, …) up as an MCP server.
mcp/tools
Package tools holds the per-feature MCP tool implementations.
Package tools holds the per-feature MCP tool implementations.
palette
Package palette holds the ordered-color-list type used everywhere in huetension and its operations: sort, random generation, and (in later slices) extraction-result wrapping and library lookup.
Package palette holds the ordered-color-list type used everywhere in huetension and its operations: sort, random generation, and (in later slices) extraction-result wrapping and library lookup.
palette/library
Package library is huetension's curated palette catalogue.
Package library is huetension's curated palette catalogue.
sandbox
Package sandbox holds the image-loading security policy shared by every huetension network transport (mcp, web).
Package sandbox holds the image-loading security policy shared by every huetension network transport (mcp, web).
serve
Package serve composes huetension's three network frontends β€” the Vue SPA, the REST API, and the MCP HTTP/SSE transports β€” behind a single listener.
Package serve composes huetension's three network frontends β€” the Vue SPA, the REST API, and the MCP HTTP/SSE transports β€” behind a single listener.
web
Package web hosts huetension's REST API and embedded Vue SPA.
Package web hosts huetension's REST API and embedded Vue SPA.
Package webdist exposes the built Vue SPA as an embed.FS used by the internal HTTP server (internal/web) to serve the UI from the binary.
Package webdist exposes the built Vue SPA as an embed.FS used by the internal HTTP server (internal/web) to serve the UI from the binary.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL