Cheng Lou
Work: ReactJS, ReasonML, ReScript, Messenger, Midjourney
GitHub
181 repos
9.7k followers
Explained projects
Freerange: The TypeScript Analyzer That Turns `console.assert` Into Proofs
A zero-annotation static analysis engine for catching NaN, division by zero, and layout bugs before they ship.
8 min read · Jul 21, 2026
chenglou/claude-config-learnings: The Shell Hooks That Turn Claude Code Into a Permission Firewall
A tiny Bash toolkit shows how Claude Code’s hook layer can override rigid permissions, repair dontAsk mode, and make safety decisions from live context.
8 min read · Apr 7, 2026
ai-font-renderer: pretext turns text layout into a cached math problem
A JavaScript and TypeScript engine that measures text once, then reuses cached widths to wrap and size it without leaning on the DOM every time.
8 min read · Apr 4, 2026
masked-text-diffusion: Escaping the DOM: Inside chenglou/pretext and the Userland Text Rebellion
How a two-phase architecture severed text measurement from the browser's synchronous layout cycle, unlocking high-performance typography for custom renderers.
8 min read · Apr 4, 2026
`tips-for-running-modal`: Training code built to survive being killed
A compact Modal scaffold for PyTorch that treats checkpoints, preemption, and `torch.compile` edge cases as first-class problems instead of afterthoughts.
8 min read · Apr 4, 2026
The 16-Context Limit: How shaderjoy Multiplexes WebGL
By rendering to a single hidden framebuffer and transferring pixels to standard 2D canvases, Chenglou's zero-dependency playground bypasses a hard browser constraint.
6 min read · Apr 4, 2026
martian-ui: The Game Engine Hiding in the DOM: Inside Martian UI
How Cheng Lou’s experimental toolkit abandons declarative state for continuous physics, treating the browser like a low-level rendering target.
7 min read · Apr 4, 2026
The 800K-Parameter Reasoning Engine: Inside chenglou/sotaku
How a four-layer Transformer uses test-time compute scaling and 2D spatial embeddings to solve extreme Sudoku without learning the rules.
7 min read · Apr 4, 2026
The Anatomy of a Pixel: Deconstructing chenglou/diffusion
How a frontend pioneer stripped Denoising Diffusion Probabilistic Models down to a single PyTorch file.
6 min read · Apr 4, 2026
text-layout: The Ghost in the Browser: Inside chenglou/pretext
How a pure TypeScript library bypasses the DOM to measure and wrap text 500 times faster.
7 min read · Apr 4, 2026
The Illegal Graphics Card: Inside pure-css-shaders-art
How Cheng Lou turned the browser's layout engine into a GPU, bypassed GitHub's Markdown filters, and built a zero-JavaScript shader using pure CSS.
6 min read · Apr 4, 2026
The Anatomy of a Perfect Failure: Inside react-useDedupedRender
How a brilliant solution to React's stale closure problem became a cautionary tale about fighting the browser's event loop.
5 min read · Apr 4, 2026
The No-Math AI: Deconstructing chenglou/mnist
How a React pioneer built a digit classifier without neural networks, backpropagation, or a single machine learning dependency.
6 min read · Apr 3, 2026
The End of Layout Thrashing: Unpacking chenglou/pretext
How a pure-TypeScript engine bypasses the DOM to turn multi-line text measurement into a blazing-fast math problem.
8 min read · Mar 28, 2026
Yet to be explained
hengshu
Chinese poems from a different universe
TypeScript
20 stars
Explain
hummingbirds
TypeScript
4 stars
Explain