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

@yeshwanthyk/open-tui

v0.1.6

Published

OpenTUI-based Terminal User Interface with SolidJS reactive rendering

Readme

@yeshwanthyk/open-tui

A Terminal User Interface library built on OpenTUI with SolidJS reactive rendering.

Installation

bun add @yeshwanthyk/open-tui

Quick Start

import { render } from "@opentui/solid"
import { ThemeProvider, useTheme, Markdown, Panel } from "@yeshwanthyk/open-tui"

function App() {
  const { theme } = useTheme()
  
  return (
    <Panel variant="panel" padding={1}>
      <Markdown text="# Hello World\n\nThis is **bold** text." />
    </Panel>
  )
}

render(
  () => (
    <ThemeProvider mode="dark" themeName="tokyonight">
      <App />
    </ThemeProvider>
  ),
  { exitOnCtrlC: true }
)

Components

Layout

  • Panel - Bordered container with theme variants
  • Dialog - Modal overlay with backdrop
  • Spacer - Flexible space filler
  • Divider - Horizontal/vertical separator

Content

  • Markdown - Tree-sitter highlighted markdown
  • CodeBlock - Syntax-highlighted code with line numbers
  • Diff - Unified/split diff view
  • Image - Kitty/iTerm2 inline images

Input

  • Editor - Multi-line text input
  • Input - Single-line text input
  • SelectList - Filterable selection list

Feedback

  • Loader - Animated spinner
  • Toast / ToastViewport - Notification toasts
  • Badge - Status badges

Theming

Built-in Themes

<ThemeProvider themeName="dracula" mode="dark">

Available themes: aura, ayu, catppuccin, cobalt2, dracula, everforest, flexoki, github, gruvbox, kanagawa, material, monokai, nightowl, nord, one-dark, palenight, rosepine, solarized, synthwave84, tokyonight, vercel, vesper, zenburn, and more.

Custom Theme Overrides

<ThemeProvider 
  themeName="dracula"
  customTheme={{ primary: parseColor("#ff79c6") }}
>

Accessing Theme

function MyComponent() {
  const { theme, mode, setMode, themeName, setTheme } = useTheme()
  
  return <text fg={theme.primary}>Themed text</text>
}

Tree-sitter Setup

For syntax highlighting, configure parsers before rendering:

import { configureParsers } from "@yeshwanthyk/open-tui"

await configureParsers({
  languages: ["typescript", "python", "markdown"],
  wasmPath: "./parsers" // Path to .wasm files
})

Autocomplete

import { CombinedAutocompleteProvider } from "@yeshwanthyk/open-tui"

const provider = new CombinedAutocompleteProvider(
  [{ name: "help", description: "Show help" }],
  process.cwd()
)

// Get suggestions
const suggestions = provider.getSuggestions(lines, cursorLine, cursorCol)

// Apply completion
const result = provider.applyCompletion(lines, cursorLine, cursorCol, item, prefix)

License

MIT