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

@author-today-tools/tui

v0.1.3

Published

Terminal User Interface for Author.Today platform

Readme

@author-today-tools/tui

Terminal User Interface for the Author.Today publishing platform. An interactive, React-based terminal application built with Ink.

Overview

The TUI provides a rich, interactive terminal interface for browsing and managing content on Author.Today:

  • Dashboard - Overview of library, notifications, and reading progress
  • Library Browser - Navigate your saved works with filtering and sorting
  • Works Manager - View work details, chapters, and statistics
  • Keyboard Shortcuts - Efficient navigation with customizable keybindings
  • Multi-window Support - Task-based window management

Installation

# From npm (when published)
npm install -g @author-today-tools/tui

# Or with pnpm
pnpm add -g @author-today-tools/tui

Usage

Basic Commands

# Launch TUI (default: dashboard view)
at-tui

# Launch with specific view
at-tui --mode=library
at-tui --mode=works
at-tui --mode=dashboard

# Use specific profile
at-tui --profile=work

From Workspace

# Launch TUI from monorepo root
pnpm tui

# With options
pnpm tui -- --mode=library

Authentication

Before using the TUI, authenticate using the CLI:

# Browser-based authentication (recommended)
at-cli auth login-browser

# Or email/password
at-cli auth login [email protected]

The TUI uses the same authentication as the CLI (shared via @author-today-tools/cli-core).

Features

Dashboard View

  • Library Overview - Total works and recent additions
  • Notifications - Unread notification count
  • Reading Progress - Continue reading from where you left off
  • Quick Actions - Navigate to library, works, or settings

Library Browser

  • Work Cards - Cover images, titles, authors, and metadata
  • Filtering - By genre, status, and tags
  • Sorting - By title, author, date added, or last read
  • Search - Quick search across your library
  • Details View - Expand work for full description and chapters

Works Manager

  • Work Details - Title, author, description, tags, and statistics
  • Chapter List - Browse and navigate chapters
  • Actions - Like, bookmark, download
  • Statistics - Views, likes, comments

Keyboard Shortcuts

Default keybindings (customizable):

  • q - Quit application
  • Tab - Switch views
  • ? - Show shortcuts help
  • ↑/↓ - Navigate lists
  • Enter - Select/activate
  • Esc - Go back/cancel
  • / - Search/filter

Development

# Install dependencies
pnpm install

# Build
pnpm --filter @author-today-tools/tui build

# Development mode (watch)
pnpm --filter @author-today-tools/tui dev

# Run tests
pnpm --filter @author-today-tools/tui test

# Type check
pnpm --filter @author-today-tools/tui type-check

Architecture

Component Structure

src/
├── ui/                  # React components
│   ├── App.tsx         # Main app component
│   ├── Dashboard.tsx   # Dashboard view
│   ├── Library.tsx     # Library browser
│   ├── Works.tsx       # Works manager
│   ├── components/     # Reusable UI components
│   │   ├── Button.tsx
│   │   ├── Card.tsx
│   │   ├── Menu.tsx
│   │   ├── Table.tsx
│   │   ├── chrome/    # Window chrome (MenuBar, StatusBar, etc.)
│   │   ├── forms/     # Form components
│   │   ├── feedback/  # Alerts, modals, toasts
│   │   └── layout/    # Layout components
│   └── contexts/       # React contexts
│       ├── KeyboardShortcutsContext.tsx
│       └── WindowContext.tsx
├── tasks/              # Task service for background operations
│   ├── TaskService.ts
│   └── types.ts
└── cli.ts             # Entry point (Commander.js)

Technology Stack

Component Library

The TUI includes a comprehensive component library built on Ink:

Basic Components:

  • Button, Card, Input, Menu, Modal, Spinner, Table, Tabs

Advanced Components:

  • DataGrid, EnhancedMenu, EnhancedTable, VirtualList, ContextMenu

Forms:

  • Checkbox, Form, Radio, Select, TextArea with validation

Feedback:

  • Alert, Badge, Modal, ProgressBar, Toast

Chrome:

  • MenuBar, StatusBar, TaskBar, TitleBar

Layout:

  • Layout, Panel, Splitter for complex layouts

All components are exported and can be used to build custom TUI applications.

Programmatic Usage

import { render } from 'ink';
import React from 'react';
import { App } from '@author-today-tools/tui';
import { createApiClient } from '@author-today-tools/cli-core';

// Create authenticated API client
const client = await createApiClient();

// Render TUI
const { waitUntilExit } = render(
  React.createElement(App, {
    client,
    initialView: 'dashboard',
  }),
);

// Wait for user to exit
await waitUntilExit();

Testing

# Run all tests
pnpm test

# Watch mode
pnpm test:watch

# Coverage
pnpm test -- --coverage

Tests use ink-testing-library for component testing.

License

MIT © Artyom Zakharov

Links