One model. Many languages.
A shared tokenizer and a small neural network read the structure around each line. The model chooses the space between logical groups, without a separate formatting rulebook for every language.
Small model. A little more space.
A tiny model that puts blank lines where your ideas pause.
Same code. Same indentation. A calmer read.
A shared tokenizer and a small neural network read the structure around each line. The model chooses the space between logical groups, without a separate formatting rulebook for every language.
Only blank lines change. Nonblank content and indentation stay intact, with protected multiline regions preserved. This is a spacing tool; it does not wrap lines, sort imports, or replace your formatter.
The native CLI uses ggml with GPU acceleration when available. In your browser, WebGPU runs the spacing model while Zig handles code analysis and rendering through WebAssembly. No server, account, or API key required.
[ bring it into your workflow ]
Initialize once. Format as often as you need.
Read the documentation ↗// npm i gpu-code-spacer
import { createSpacer } from 'gpu-code-spacer';
const spacer = await createSpacer();
const { text } = await spacer.format(source);
// Same code, with room to breathe.