{"slug": "robinhooding-libraries-from-js-to-c-part-1-interactive-clis", "title": "Robinhooding libraries from JS to C, part 1: Interactive CLIs", "summary": "The article announces a new C99 single-header library inspired by @clack/prompts, designed to create beautiful command-line interfaces with zero dependencies, instant compilation, and cross-platform support including browsers. The library can be used by simply dropping the source code into a project, and a live demo is provided, compiled to WebAssembly and running in a real terminal via libghostty and restty, with full mobile compatibility.", "body_md": "I wrote a @clack/prompts\n-inspired single header library in plain C99 for making beautiful CLIs. It compiles instantly, works on every OS and the browser, and has zero dependencies – not even libc1.\nThe source code is here; just drop it into your project and you’re done. If you just want screenshots, jump down to the gallery.\nOr, even better, try it! The below demo is compiled to WASM and running inside a true blue, real terminal thanks to libghostty\nand restty\n. Just tap or click the terminal to try it. (And yes, it works great on your phone – use Vim keys!)", "url": "https://wpnews.pro/news/robinhooding-libraries-from-js-to-c-part-1-interactive-clis", "canonical_source": "https://spader.zone/prompt/", "published_at": "2026-04-24 00:00:00+00:00", "updated_at": "2026-05-23 05:38:15.963536+00:00", "lang": "en", "topics": ["developer-tools", "open-source"], "entities": ["Clack", "libghostty", "restty", "WASM"], "alternates": {"html": "https://wpnews.pro/news/robinhooding-libraries-from-js-to-c-part-1-interactive-clis", "markdown": "https://wpnews.pro/news/robinhooding-libraries-from-js-to-c-part-1-interactive-clis.md", "text": "https://wpnews.pro/news/robinhooding-libraries-from-js-to-c-part-1-interactive-clis.txt", "jsonld": "https://wpnews.pro/news/robinhooding-libraries-from-js-to-c-part-1-interactive-clis.jsonld"}}