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

rivermeet-tui

v0.0.7

Published

Terminal UI for Confluence

Downloads

39

Readme

Rivermeet TUI

A terminal user interface for reading and editing Confluence pages, built with OpenTUI.

Features

  • Tree View: Browse Confluence spaces and pages in a hierarchical tree
  • Read View: View Confluence pages rendered as markdown with line numbers
  • Edit Mode: Press i to open the page in your configured $EDITOR
  • Vim Navigation: Navigate with hjkl keys and standard vim motions
  • Caching: Pages are cached locally as markdown files
  • Extensible: Custom confluence components (panels, decisions, tasks) are rendered with appropriate styling

Requirements

  • Bun runtime
  • Zig (required for OpenTUI)
  • Confluence Cloud account with API access

Installation

bun install

Configuration

Environment Variables

Set the following environment variables:

export ATLASSIAN_BASE_URL="https://your-domain.atlassian.net"
export ATLASSIAN_EMAIL="[email protected]"
export ATLASSIAN_API_TOKEN="your-api-token"
export EDITOR="vim"  # or your preferred editor

To create an API token, visit: https://id.atlassian.com/manage-profile/security/api-tokens

Config File (Optional)

Create ~/.config/rivermeet-tui/config.json:

{
  "confluence": {
    "baseUrl": "https://your-domain.atlassian.net",
    "email": "[email protected]",
    "apiToken": "your-api-token"
  },
  "editor": "vim",
  "cacheDir": "~/.cache/rivermeet-tui",
  "keyBindings": {
    "up": ["k", "up"],
    "down": ["j", "down"],
    "left": ["h", "left"],
    "right": ["l", "right"],
    "select": ["return", "enter"],
    "back": ["escape", "backspace"],
    "edit": ["i"],
    "quit": ["q"],
    "search": ["/"],
    "refresh": ["r"]
  },
  "theme": {
    "primary": "#7aa2f7",
    "secondary": "#bb9af7",
    "background": "#1a1b26",
    "text": "#c0caf5",
    "border": "#565f89",
    "highlight": "#3b82f6",
    "error": "#f7768e",
    "warning": "#e0af68"
  }
}

Usage

# Development mode with hot reload
bun dev

# Normal run
bun start

Key Bindings

Tree View

| Key | Action | |-----|--------| | j / | Move down | | k / | Move up | | l / / Enter | Expand space / Open page | | h / | Collapse space | | r | Refresh spaces | | q | Quit |

Read View

| Key | Action | |-----|--------| | j / | Scroll down | | k / | Scroll up | | Ctrl+d | Half page down | | Ctrl+u | Half page up | | g | Go to top | | G | Go to bottom | | i | Edit in $EDITOR | | Esc / Backspace | Return to tree | | q | Quit |

Supported Confluence Components

The following Confluence/ADF components are supported:

Basic Markdown

  • Paragraphs
  • Headings (H1-H6)
  • Bold, italic, underline, strikethrough
  • Code (inline and blocks)
  • Links
  • Lists (ordered and unordered)
  • Blockquotes
  • Horizontal rules
  • Tables

Confluence-Specific

  • Panels: Info, note, warning, error, success panels
  • Decision Items: Decision lists with status
  • Task Lists: Checkboxes with completion state
  • Status Labels: Colored status badges
  • Mentions: @mentions of users
  • Dates: Date components
  • Expand: Collapsible sections
  • Media: Attachments (shown as placeholders)
  • Emoji: Emoji shortcodes

Unknown Components

Components not yet implemented are rendered as JSON code blocks with a label indicating the component type, making it easy to identify what needs to be supported.

Cache

Markdown files are cached in ~/.cache/rivermeet-tui/<space-key>/<page-id>.md. This allows you to:

  1. View pages offline
  2. Edit pages in your preferred editor
  3. Keep a local copy of changes

Architecture

src/
├── index.tsx              # Main application entry
├── types.ts               # TypeScript type definitions
├── config.ts              # Configuration loading
├── confluence-client.ts   # Confluence API client
├── cache.ts               # File system caching
└── markdown-components.ts # ADF to Markdown converters

Extending

Adding New Components

  1. Create a new class extending BaseMarkdownComponent in markdown-components.ts
  2. Implement canRender, toMarkdown, and toReadView methods
  3. Add the component to createComponentRegistry()

Example:

class MyCustomComponent extends BaseMarkdownComponent {
  type = "myCustomType";

  canRender(node: ADFNode): boolean {
    return node.type === "myCustomType";
  }

  toMarkdown(node: ADFNode, context: RenderContext): string {
    return `[Custom: ${node.attrs?.value}]`;
  }

  toReadView(node: ADFNode, context: RenderContext): ReadViewNode {
    return {
      content: `[Custom: ${node.attrs?.value}]`,
      style: { fg: "#ff00ff" },
      sourceNode: node,
    };
  }
}

License

MIT