npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@xincli/opentui-core

v0.4.11

Published

XINCLI fork of OpenTUI core — with Android/Termux support via @xincli/opentui-core-android-*

Readme

OpenTUI Core (XINCLI Fork)

This is the XINCLI fork of OpenTUI with Android/Termux support added. Upstream opentui doesn't support Android — this fork adds:

  • aarch64-linux-android build target in src/zig/build.zig
  • android branch in resolveNativePackage() (loads @xincli/opentui-core-android-*)
  • Native Termux build script (scripts/build-native-termux.sh)
  • npm packages published under the @xincli scope

OpenTUI is a native terminal UI core written in Zig with TypeScript bindings. The native core exposes a C ABI and can be used from any language. OpenTUI powers OpenCode in production today and will also power terminal.shop. It is an extensible core with a focus on correctness, stability, and high performance. It provides a component-based architecture with flexible layout capabilities, allowing you to create complex terminal applications.

Documentation

Install

For XINCLI (Android/Termux)

npm install @xincli/[email protected] \
  @xincli/[email protected] \
  --legacy-peer-deps

The @xincli/opentui-core package is the compiled JS library. The @xincli/opentui-core-android-arm64 package contains the native libopentui.so binary built natively on Termux.

For upstream (macOS/Linux/Windows)

bun install @opentui/core

Runtime requirements (Android)

  • Node.js 26.3.0+ with --experimental-ffi flag (opentui uses node:ffi)
  • Or Bun (uses bun:ffi, no flags needed)
# On Termux:
pkg upgrade nodejs  # gets Node 26.x
node --experimental-ffi your-app.mjs

How it works on Android

your-app.mjs
  ↓  import { createCliRenderer } from '@xincli/opentui-core'
@xincli/opentui-core (compiled JS)
  ↓  resolveNativePackage() detects process.platform === 'android'
  ↓  await import('@xincli/opentui-core-android-arm64')
@xincli/opentui-core-android-arm64
  ↓  index.js exports the .so path string
  ↓  dlopen(libopentui.so) via node:ffi
libopentui.so (12 MB ARM64 ELF, built natively on Termux)
  ↓  Zig core: yoga layout, cell buffering, ANSI output
  ↓  takes over stdout, 30 FPS render loop
Terminal renders 🎉

See Clagit docs/OPENTUI_TERMUX.md for the full deep-dive including all 14 critical problems we solved.

Build

bun run build

This creates platform-specific libraries that are automatically loaded by the TypeScript layer.

Examples

bun install
cd ../examples
bun run dev

Benchmarks

Run native performance benchmarks:

bun run bench:native

See src/zig/bench.zig for available options like --filter and --mem.

NativeSpanFeed TypeScript benchmarks:

CLI Renderer

Renderables

Renderables are hierarchical objects that can be positioned, nested, styled and rendered to the terminal:

import { createCliRenderer, TextRenderable } from "@opentui/core"

const renderer = await createCliRenderer()

const obj = new TextRenderable(renderer, { id: "my-obj", content: "Hello, world!" })

renderer.root.add(obj)