Skip to main content

Playground

Everything on this page runs in your browser: the panel on the right is a real X session served by a pure-JavaScript X server (with the XRender extension ntk draws through), composited to a canvas. The editor holds ordinary ntk code — the same code you would run in node against a real display — connected through a custom DISPLAY transport (demo/local:0), with bundled DejaVu fonts standing in for fontconfig. Edit it and press Run.

Hello window

Create and map a window with a title, then draw text with the canvas-like 2d context.

Loading live demo…