Skip to content

Repository files navigation

GlyphForge Studio

An independent, open-source image & video ASCII, dither, WebGL2 shader, and node-based Flow studio.

Setup & Development

npm install
npm run dev

Build for production:

npm run build

Architecture

  • src/engine/types.ts — Core state, style, Post FX, and text-grid capture types.
  • src/engine/catalog.ts — 10 style categories, 105 style definitions, 15 dithering algorithms, 7 palettes, 17 Post FX specs, and default state factory.
  • src/engine/store.ts — Zero-overhead mutable engine state with useSyncExternalStore, Undo/Redo snapshot stack, and localStorage Favorites/Recipes persistence.
  • src/engine/renderers/ — Decoupled rendering modules:
    • asciiRenderer.ts — characters, mixed, braille, block-chars, dots, asciiStudio, keycap + TextGridCapture.
    • ditherRenderer.ts — 11 ordered dither algorithms + 4 error-diffusion kernels (floyd, atkinson, stucki, sierraLite).
    • pixelRenderer.ts — pixel, mosaic, lego, 3d (Voxel), hexmosaic, ledmatrix, cross, diamond, lines, diagonal.
    • webglRenderer.ts — WebGL2 (#version 300 es) fragment shader pipeline for glass, print, material, glitch, distort, blur, and light styles.
    • postfx.ts — Sequential post-processing chain (vignette, scanLines, chromatic, bloom, charBloom, charChroma, filmGrain, glitch, rgbSplit, pixelate, noise, advBlur).
  • src/engine/export.ts — PNG / JPG (1×–4×), TXT / HTML / SVG / JSON / Markdown, and offline MP4 export via WebCodecs VideoEncoder + mp4-muxer.
  • src/components/ — TopBar, StylesSidebar, CanvasViewport, PropertiesPanel, and FlowWorkspace (@xyflow/react).

Releases

Packages

Contributors

Languages