ForkNous ResearchNous Researchpublished Apr 9, 2026seen 5d

NousResearch/ink

forked from vadimdemedes/ink

Open original ↗

Captured source

source ↗
published Apr 9, 2026seen 5dcaptured 11hhttp 200method plain

NousResearch/ink

Description: 🌈 React for interactive command-line apps

Language: TypeScript

License: MIT

Stars: 5

Forks: 1

Open issues: 0

Created: 2026-04-09T18:10:36Z

Pushed: 2026-04-09T18:41:34Z

Default branch: master

Fork: yes

Parent repository: vadimdemedes/ink

Archived: no

README: ![](https://github.com/vshymanskyy/StandWithUkraine/blob/main/docs/README.md)

---

> React for CLIs. Build and test your CLI output using components.

![Build Status](https://github.com/vadimdemedes/ink/actions)

Ink provides the same component-based UI building experience that React offers in the browser, but for command-line apps. It uses Yoga to build Flexbox layouts in the terminal, so most CSS-like properties are available in Ink as well. If you are already familiar with React, you already know Ink.

Since Ink is a React renderer, all features of React are supported. Head over to the React website for documentation on how to use it. Only Ink's methods are documented in this readme.

Fully AI-generated pull requests are not accepted. You can use AI, but should be verified and cleaned up by a human. Only Opus 4.6+ (high-effort) and Codex 5.4+ (extra high) are accepted models. Preferably created with Opus and verified by Codex.

---

Install

npm install ink react

> [!NOTE] > This readme documents the upcoming version of Ink. For the latest stable release, see Ink on npm.

Usage

import React, {useState, useEffect} from 'react';
import {render, Text} from 'ink';

const Counter = () => {
const [counter, setCounter] = useState(0);

useEffect(() => {
const timer = setInterval(() => {
setCounter(previousCounter => previousCounter + 1);
}, 100);

return () => {
clearInterval(timer);
};
}, []);

return {counter} tests passed;
};

render();

Who's Using Ink?

  • Claude Code - An agentic coding tool made by Anthropic.
  • Gemini CLI - An agentic coding tool made by Google.
  • GitHub Copilot CLI - Just say what you want the shell to do.
  • Canva CLI - CLI for creating and managing Canva Apps.
  • Cloudflare's Wrangler - The CLI for Cloudflare Workers.
  • Linear - Linear built an internal CLI for managing deployments, configs, and other housekeeping tasks.
  • Gatsby - Gatsby is a modern web framework for blazing-fast websites.
  • tap - A Test-Anything-Protocol library for JavaScript.
  • Terraform CDK - Cloud Development Kit (CDK) for HashiCorp Terraform.
  • Specify CLI - Automate the distribution of your design tokens.
  • Twilio's SIGNAL - CLI for Twilio's SIGNAL conference. Blog post.
  • Typewriter - Generates strongly-typed Segment analytics clients from arbitrary JSON Schema.
  • Prisma - The unified data layer for modern applications.
  • Blitz - The Fullstack React Framework.
  • New York Times - NYT uses Ink's kyt - a toolkit that encapsulates and manages the configuration for web apps.
  • tink - A next-generation runtime and package manager.
  • Inkle - A Wordle game.
  • loki - Visual regression testing tool for Storybook.
  • Bit - Build, distribute, and collaborate on components.
  • Remirror - Your friendly, world-class editor toolkit.
  • Prime - Open-source GraphQL CMS.
  • emoj - Find relevant emojis.
  • emma - Find and install npm packages easily.
  • npm-check-extras - Check for outdated and unused dependencies, and run update/delete actions on selected ones.
  • swiff - Multi-environment command-line tools for time-saving web developers.
  • share - Share files quickly.
  • Kubelive - A CLI for Kubernetes that provides live data about the cluster and its resources.
  • changelog-view - View changelogs.
  • cfpush - Interactive Cloud Foundry tutorial.
  • startd - Turn your React component into a web app.
  • wiki-cli - Search Wikipedia and read article summaries.
  • garson - Build interactive, config-based command-line interfaces.
  • git-contrib-calendar - Display a contributions calendar for any Git repository.
  • gitgud - Interactive command-line GUI for Git.
  • Autarky - Find and delete old node_modules directories to free up disk space.
  • fast-cli - Test your download and upload speeds.
  • tasuku - Minimal task runner.
  • mnswpr - A Minesweeper game.
  • lrn - Learning by repetition.
  • turdle - A Wordle game.
  • Shopify CLI - Build apps, themes, and storefronts for the Shopify platform.
  • ToDesktop CLI - All-in-one platform for building Electron apps.
  • Walle - A full-featured crypto wallet for EVM networks.
  • Sudoku - A Sudoku game.
  • [Sea…

Excerpt shown — open the source for the full document.

Notability

notability 1.0/10

Low-star fork, trivial event