Skip to content
@blit386

BLIT386

Palette-first WebGPU retro engine for TypeScript. Draw with palette indices, animate with cycling and fades, with automatic Canvas 2D fallback.

BLIT386

A palette-first WebGPU retro engine for TypeScript, inspired by RetroBlit by Martin Cietwierkowski (@daafu). Draw with palette indices instead of RGBA pixels, animate with palette cycling and fades, and ship authentic VGA-era effects on modern GPUs – with an automatic Canvas 2D fallback when WebGPU is unavailable.

Read the documentation at blit386.dev.

Start a game in seconds

npm create blit386@latest my-game

Works with npm, pnpm, yarn, or bun. You get a ready-to-run Vite project, a commented starter game, and local docs.

BLIT386 logo

Projects

blit386/blit386 is a single monorepo holding everything below. The engine anchors it; the other packages release in lockstep with it.

Why BLIT386?

  • True indexed rendering – primitives and sprites write palette indices, not RGBA.
  • Palette effects built-in – cycling, fade, flash, and swap run per frame, no per-sprite rewrites.
  • Retro palette presets – VGA, CGA, C64, Game Boy, PICO-8, and NES.
  • Post-process effects – a two-tier chain with bundled CRT presets.
  • Full input – pointer, keyboard, and gamepad, plus a fixed-timestep loop and frame capture.

Community

Authors

License

Licensed under ISC.

Pinned Loading

  1. blit386 blit386 Public

    A palette-first WebGPU retro engine for TypeScript, inspired by RetroBlit.

    TypeScript 15 1

  2. awesome-blit386 awesome-blit386 Public

    A curated list of great BLIT386 resources – the palette-first WebGPU retro engine for the web.

Repositories

Showing 7 of 7 repositories
  • blit386 Public

    A palette-first WebGPU retro engine for TypeScript, inspired by RetroBlit.

    blit386/blit386's past year of commit activity
    TypeScript 15 ISC 1 1 0 Updated Oct 3, 2026
  • naplazi Public

    Beach Detector is a portrait pixel-art browser game where you sweep a metal detector along a beach, follow the speeding-up beeps (also shown as a screen-border pulse, a blinking detector tip and phone vibration) to dig up buried treasure, and find as much as you can before a two-minute day runs out.

    blit386/naplazi's past year of commit activity
    TypeScript 0 ISC 0 0 0 Updated Oct 2, 2026
  • awesome-blit386 Public

    A curated list of great BLIT386 resources – the palette-first WebGPU retro engine for the web.

    blit386/awesome-blit386's past year of commit activity
    0 CC0-1.0 0 0 0 Updated Sep 28, 2026
  • .github Public

    Org-wide profile and default community-health files for the BLIT386 organization.

    blit386/.github's past year of commit activity
    0 0 0 0 Updated Aug 23, 2026
  • blit386-dev-fumapress Public archive

    Source for blit386.dev – the public documentation site for the BLIT386 palette-first WebGPU engine. Built with Fumapress, Waku, and Fumadocs. Deployed to Cloudflare Workers.

    blit386/blit386-dev-fumapress's past year of commit activity
    MDX 0 ISC 0 7 0 Updated Aug 2, 2026
  • create-blit386 Public archive

    Scaffolder and kit for BLIT386 games.

    blit386/create-blit386's past year of commit activity
    JavaScript 0 ISC 0 0 0 Updated Aug 2, 2026
  • blit386-demos Public archive

    Interactive demos for BLIT386, a palette-first WebGPU retro engine for TypeScript.

    blit386/blit386-demos's past year of commit activity
    JavaScript 0 ISC 0 0 0 Updated Aug 2, 2026

Top languages

Loading…

Most used topics

Loading…