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

opencode-miniterm

v1.0.19

Published

A small front-end terminal UI for OpenCode

Readme

OpenCode Miniterm

A small front-end terminal UI for OpenCode.

Note: This project is not affiliated with OpenCode.

Features

  • Slash Commands - Quick access to common operations
  • File Auto-Completion - Type @ followed by file path for intelligent completions
  • Real-Time Streaming - See AI responses as they're being generated
  • Logging Support - Optional conversation logging for debugging
  • Keyboard Navigation - Readline support with history and editing

Installation

Prerequisites

Install from npm

npm install -g opencode-miniterm
# or
pnpm add -g opencode-miniterm

Install from Source

git clone https://github.com/your-repo/opencode-miniterm.git
cd opencode-miniterm
bun install
bun link

Quick Start

ocmt

This will:

  1. Start the OpenCode server (if not already running)
  2. Create or resume a session for the current directory
  3. Present the interactive prompt

Configuration

Configuration is stored in ~/.config/opencode-miniterm/opencode-miniterm.json:

{
	"providerID": "opencode",
	"modelID": "big-pickle",
	"agentID": "build",
	"sessionIDs": {
		"/path/to/project1": "session-id-1",
		"/path/to/project2": "session-id-2"
	},
	"loggingEnabled": false
}

Environment Variables

  • OPENCODE_SERVER_USERNAME - Server username (default: "opencode")
  • OPENCODE_SERVER_PASSWORD - Server password (required if server has auth)
  • OPENCODE_MT_CONFIG_CONTENT - Override config as JSON string

Usage

Basic Interaction

Simply type your question or request at the prompt and press Enter:

> Help me fix the bug in auth.ts

Slash Commands

| Command | Description | | ------------------ | ------------------------------------------- | | /help | Show available commands | | /init | Analyze project and create/update AGENTS.md | | /new | Create a new session | | /sessions | List and switch sessions | | /diff | Show file additions and deletions | | /undo | Undo last assistant request | | /details | Show detailed info for the previous request | | /page | Page through the detailed info | | /agents | Show available agents | | /models | Show available models | | /log | Enable/disable logging | | /run <cmd> | Run a shell command from within miniterm | | /exit or /quit | Exit the application |

File References

Reference files in your conversation using @ followed by the path:

> Review @src/index.ts and suggest improvements

Tab completion is supported for file paths:

> @sr<tab>  → @src/
> @src/in<tab>  → @src/index.ts

Keyboard Shortcuts

| Key | Action | | ---------------------- | ---------------------------- | | / | Navigate command history | | / | Move cursor | | Opt+← / Opt+→ | Move by word boundaries | | Tab | Auto-complete commands/files | | Backspace / Delete | Delete characters | | Esc | Cancel current request | | Ctrl+C | Force quit application |

Session Management

OpenCode Miniterm automatically manages sessions per directory:

  • First Launch: Creates a new session for the current directory
  • Subsequent Launches: Resumes the last session for that directory
  • New Session: Use /new to create a fresh session
  • Switch Sessions: Use /sessions to browse and switch between all your sessions

Development

Running Locally

bun run dev
# or
bun src/index.ts

Build

bun build src/index.ts --outdir dist

Type Check

bun run check

Formatting

bunx prettier --write "**/*.{ts,json,md}"

License

ISC