Ink VS helix

Compare Ink vs helix and see what are their differences.

helix

A simple, easy to use library for React development in ClojureScript. (by lilactown)
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.io
featured
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.
www.influxdata.com
featured
Ink helix
65 16
25,856 611
- -
6.2 5.6
24 days ago 23 days ago
TypeScript Clojure
MIT License Eclipse Public License 2.0
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

Ink

Posts with mentions or reviews of Ink. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-05-06.
  • Ask HN: Interesting TUIs (text user interfaces), maybe forgotten ones?
    55 projects | news.ycombinator.com | 6 May 2024
    I have used this https://github.com/vadimdemedes/ink/ to TUI design, it's "React" for TUI. It's pretty good but I had to add a bit of sub-process parallelization since I have a long running process in the background.
  • I created a simple CLI tool that helps you code FAST!
    2 projects | dev.to | 12 Mar 2024
    I've always wanted to build a CLI tool, and when I realized that you can build one using React with Ink, I converted my Python script into a CLI tool.
  • Delete git branches in batches
    2 projects | dev.to | 5 Feb 2024
    ⚠️ Git for Windows Terminal is currently not supported, and the tool is limited to ink. We will look for alternatives later. Please use CMD, Vscode terminal's Git... terminal
  • Setup Simple Web UI for Node.js App in Seconds
    2 projects | dev.to | 17 Jan 2024
    There is a good solution for some of those cases - ink. With ink, I can implement text-based UI with knowledge of React, which is neat but there are still some caveats for my usages:
  • Building Reactive CLIs with Ink - React CLI library
    3 projects | dev.to | 3 Nov 2023
    Looks cool, right? Building a similar UI in the terminal without any library would be quite hard, though, thanks to Ink it's almost as easy as building any frontend UI with React.
  • Terminal-like output library for js?
    2 projects | /r/learnjavascript | 26 Jun 2023
    ink?
  • Synchronous File Reading and Writing in Node.js
    1 project | /r/node | 25 Jun 2023
    I'm writing a CLI with ink. Writing async code is important as to not block the rendering and respond to user input. I have a few loading animations that update every 100ms. Synchronous operations can make the animation hang for >500ms, making the animation choppy.
  • Launch HN: Resend (YC W23) – Email API for Developers Using React
    11 projects | news.ycombinator.com | 13 Jun 2023
    You get the comfort of using react components instead of fighting with HTML tables to make your emails look nice. I think it's awesome! It's analog to what ink[0] does with CLI outputs. Sure, you could write fancy CLI outputs in bash, but ink takes the pain out of it and makes it easy.

    [0] https://github.com/vadimdemedes/ink

  • Is Node.js a good way to implement a CLI app with persistence?
    3 projects | /r/node | 2 Jun 2023
    Due to Node's asynchronous behavior, it makes Node great for long-running processes that make a lot of HTTP requests, database calls, and other async ops, like a web server or a REST API. However, if I am making a CLI tool for pretty much personal use only, with very minimal async operations, then blocking the event loop with a synchronous function that will resolve almost immediately will make no difference perceivable to a human brain or have any speed benefits that someone can actually observe (think `fs.readFileSync` or `require('dotenv') of 10 line config file, or a quick embedded db (sqlite) query with only ~100 records. I'm wondering what the best way to implement the database part of the app synchronous. I can read/write to JSON files but it would be tricky because the data is relational, and some complex joins and other data wrangling operations are required (complex to perform in JS but are easy to implement in a SQL statement). It's not important what the operations are, that's not the point of this post. This is mostly a personal project of interest: making this CLI tool completely avoiding any async operations/using no promises. I would like to use node tho, as I said this is just out of interest and I also want to experiment with several CLI libraries such as Ink or Cliffy.
  • Ink: React for interactive command-line apps
    1 project | /r/patient_hackernews | 8 May 2023

helix

Posts with mentions or reviews of helix. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-04-24.
  • create-helix-app: project templates with Helix and more
    4 projects | /r/Clojure | 24 Apr 2023
    In short, performance, easier interop with JS react libraries, better static analysis, and being able to use modern React features. For more details, see https://github.com/lilactown/helix/blob/master/docs/motivation.md and https://github.com/lilactown/helix/blob/master/docs/faq.md#what-about-hiccup. It's also worth checking this blog post: https://fbeyer.com/posts/refx-origins/
  • Is there a simply way to write small, portable UIs in Clojure/script? Something akin to Elm
    8 projects | /r/Clojure | 13 Apr 2023
    You can ignore the malli/react-hook-form part - the relevant parts are the entry namespace and the shadow-cljs config. This example uses https://github.com/lilactown/helix (great tutorial here https://github.com/iwrotesomecode/react-docs-helix) but you can use reagent if you wish. I think this should meet your requirements. You can inline your data in the cljs bundle as data and add UI via react components.
  • React.dev - are CLJS developers using Reagent in trouble?
    4 projects | /r/Clojure | 18 Mar 2023
    [1] https://github.com/lilactown/helix [2] https://github.com/ferdinand-beyer/refx
  • React.dev
    21 projects | news.ycombinator.com | 16 Mar 2023
    > But Reagent supports functional components as well, with hooks and all.

    I addressed this already: while reagent is able to emit function components, there is a performance penalty to this.[1]

    > I also very much like Hiccup, and so do many of us, because code is data and data is code, and Helix has decided not to support that.

    Hiccup is convenient to write, but it is a constant run-time cost and a significant storage cost given that you have to store long series of constructors to cljs.core.PersistentVector in your bundle, have the JS runtime actually construct the vector, then pass it through a Hiccup interpreter to finally produce DOM nodes and throw away the persistent vector, only to repeat this entire process again on re-render.[2]

    > Helix has decided not to support that.

    That is simply not true. From the Helix documentation[2],

    > If you want to use libraries like sablono, hicada or even hx hiccup parser, you can easily add that by creating a custom macro.

    These are all Hiccup interpreters you can readily use.

    IME there is very little difference between using the $ macro in Helix and writing Hiccup. I do not really miss Hiccup when I use Helix, and you still have data as code ;)

    While this is from an unrelated project, there are benchmarks[3] done against Reagent that demonstrate the sheer overhead it has. In practice it is not a big problem if you rarely trigger a re-render, but otherwise it is a non-trivial cost, and if you want to use modern React features (like Suspense), there is a lot of r/as-element mingling going on, converting cases, etc. that simply make Reagent feel more tedious to use than Helix.

    Also, the newer UIx2, which largely borrows from Helix, is "3.2x faster than Reagent" according to one of the contributors.[4]

    I think it'd be worthwhile to benchmark all of these libraries against each other and record the data in one place. Maybe I'll get around to doing it this weekend :)

    ---

    [1] https://github.com/reagent-project/reagent/blob/master/doc/R...

    [2] https://github.com/lilactown/helix/blob/master/docs/faq.md#w...

    [3] https://github.com/roman01la/uix#benchmarks

    [4] https://github.com/pitch-io/uix/pull/12

  • What is the state of frontend animation in React/ClojureScript?
    1 project | /r/Clojure | 16 Sep 2022
    Helix is also worth checking our for lightweight React integration and hooks support.
  • reframe or plain reagent for new cljs SPA?
    5 projects | /r/Clojure | 17 Jul 2022
  • How does Reagent/re-frame bypass the prolifeation of React hooks?
    2 projects | /r/Clojure | 25 Jun 2022
    Helix is a thinner library with access to hooks, if you want them.
  • Reflecting on 18 months of Clojure - Building a SaaS business with Clojure
    8 projects | /r/Clojure | 7 Feb 2022
    helix
  • re-frame vs react
    1 project | /r/Clojurescript | 28 Oct 2021
    You mentioned liking React hooks, would helix be more to your liking?
  • Keechma vs Keechma.next
    3 projects | /r/Clojure | 5 Oct 2021
    Keechma/next is integrated directly with React through the hooks system (and using the excellent Helix library. You can find the integration code in the Keechma/next toolbox - especially https://github.com/keechma/keechma-next-toolbox/blob/master/src/keechma/next/helix/core.cljs

What are some alternatives?

When comparing Ink and helix you can also consider the following projects:

Commander.js - node.js command-line interfaces made easy

uix - Idiomatic ClojureScript interface to modern React.js

oclif - CLI for generating, building, and releasing oclif CLIs. Built by Salesforce.

reagent - A minimalistic ClojureScript interface to React.js

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

shadow-cljs - ClojureScript compilation made easy

nestjs-commander - A module for using NestJS to build up CLI applications

liveview-clj

tui-rs - Build terminal user interfaces and dashboards using Rust

om - ClojureScript interface to Facebook's React

PyLaTeX - A Python library for creating LaTeX files

storybook.js-with-shadow-cljs