Ink: React for interactive command-line apps

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • Ink

    🌈 React for interactive command-line apps

  • Ink is amazing for quickly hacking together TUIs. I recently did so with Nbb (Node Babashka) and and enjoyed the experience overall.

    My only real complaint is how everything in your VDOM seems to re-render on a state change. IIRC this is being addressed [1], but is something to be mindful of, especially if your users may be using slow machines.

    [1] https://github.com/vadimdemedes/ink/issues/21

  • dioxus

    Fullstack GUI library for web, desktop, mobile, and more.

  • There is also Rink, a Rust port of Ink that uses Dioxus instead of React for the high-level API https://github.com/DioxusLabs/dioxus/tree/master/packages/ri...

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

    SurveyJS logo
  • bubbletea

    A powerful little TUI framework 🏗

  • For Golang there is Bubbletea [1], Textual [2] for Python and tui-rs for Rust [3].

    [1] https://github.com/charmbracelet/bubbletea

    [2] https://github.com/textualize/textual

    [3] https://github.com/fdehau/tui-rs

  • ratatui

    Rust library that's all about cooking up terminal user interfaces (TUIs) 👨‍🍳🐀

  • blessed

    A high-level terminal interface library for node.js.

  • I tried this a long time ago when I was in love with react. It felt difficult to wrap my head around the yoga layout engine. I'm glad others here in this thread seem to like yoga, but I didn't. And, now I really dislike react for various reasons.

    I would use this if I needed to write a command line app with nodejs:

    https://github.com/chjj/blessed

  • emoj

    Find relevant emoji from text on the command-line :open_mouth: :sparkles: :raised_hands: :horse: :boom: :see_no_evil:

  • Check the list of apps using it.

    This one got my attention: https://github.com/sindresorhus/emoj

    I do use emojipedia.org quite often, so I must admit I find this would be quite useful :D. But the thought of having a framework like React powering this behind the scenes, right on my freaking terminal, makes me think that there's no hope for future generations to keep software development simple, "lean" for the foreseeable future. Imagine using 100MB to search for emojis.

  • react-blessed

    A react renderer for blessed.

  • I'll need to try Ink but you were also able to do this with react + blessed via https://github.com/Yomguithereal/react-blessed

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • textual

    The lean application framework for Python. Build sophisticated user interfaces with a simple Python API. Run your apps in the terminal and a web browser.

  • For Golang there is Bubbletea [1], Textual [2] for Python and tui-rs for Rust [3].

    [1] https://github.com/charmbracelet/bubbletea

    [2] https://github.com/textualize/textual

    [3] https://github.com/fdehau/tui-rs

  • tui-rs

    Discontinued Build terminal user interfaces and dashboards using Rust

  • For Golang there is Bubbletea [1], Textual [2] for Python and tui-rs for Rust [3].

    [1] https://github.com/charmbracelet/bubbletea

    [2] https://github.com/textualize/textual

    [3] https://github.com/fdehau/tui-rs

  • taffy

    A high performance rust-powered UI layout library

  • I maintain a library (https://github.com/DioxusLabs/taffy) that implements both Flexbox and CSS Grid, and is designed to be easily embedded (similar to Yoga, which Ink is using).

  • clog

    CLOG - The Common Lisp Omnificent GUI

  • ink

    inkle's open source scripting language for writing interactive narrative. (by inkle)

  • "Ink" and "interactive" in the same sentence has a strong association in my mind for Inkle's Ink [1]

    [1]: https://www.inklestudios.com/ink/

  • hooks

    FRP-ish / Reactive programming inspired by React hooks (by benweitzman)

  • Pretty neat. I adapted the state management of hooks to Haskell a few years ago. Could be used for similar purposes, but there's no support for templating or styling yet: https://github.com/benweitzman/hooks

  • autarky

    Liberating disk space from 📁 node_modules | Built with React

  • I have built a CLI tool called Autarky a long long time back https://github.com/pranshuchittora/autarky.

    Ink is great to get bare minimums up and running, but the capabilities are quite limited and you can't build full blown interactive dashboards with this like HTOP etc.

  • mosaic

    An experimental tool for building console UI in Kotlin using the Jetpack Compose compiler/runtime (by JakeWharton)

  • There's also Mosaic, which is an experiment of sorts to build console UI using Kotlin and Jetpack Compose: https://github.com/JakeWharton/mosaic

  • react-ionize

    A React renderer for building your entire Electron app

  • One of my favorite side projects (from several years ago now) was a custom renderer implementation that let one use React to manage the parts of an Electron app outside the page being rendered. [1] I never found the time to actually go through and make it robust enough to use in a production setting, but I remember being very pleased with how much easier it was to use than the native Electron APIs.

    Maybe I'll revisit this sometime. :)

    1: https://github.com/mhink/react-ionize

  • devtools-ds

    UI components, libraries, and templates for building robust devtools experiences.

  • meow

    🐈 CLI app helper

  • Inquirer.js

    A collection of common interactive command line user interfaces.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts