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

@ebowwa/coder

v0.7.80

Published

AI-powered terminal coding assistant

Readme

@ebowwa/coder

An AI-powered terminal coding assistant built with TypeScript + Bun + Rust.

Installation

# Install globally
npm install -g @ebowwa/coder

# Or with bun
bun add -g @ebowwa/coder

Usage

CLI

# Interactive mode
coder

# Single query
coder "What files are in this directory?"

# With specific model
coder -m glm-5 "Explain this codebase"

# With permission mode
coder --permission-mode acceptEdits "Add a test"

Programmatic

import { createMessageStream, agentLoop, tools } from "@ebowwa/coder";

// Stream API messages
const result = await createMessageStream(messages, {
  apiKey: process.env.API_KEY,
  model: "glm-5",
  onToken: (text) => process.stdout.write(text),
});

// Run agent loop
const agentResult = await agentLoop(messages, {
  apiKey: process.env.API_KEY,
  systemPrompt: "You are a helpful assistant.",
  tools: [tools.ReadTool, tools.WriteTool, tools.BashTool],
  permissionMode: "default",
  workingDirectory: process.cwd(),
});

Features

  • API Client: SSE streaming with cost calculation
  • Agent Loop: Turn-based processing with tool execution
  • Built-in Tools: Read, Write, Edit, Bash, Glob, Grep
  • MCP Client: Model Context Protocol support (stdio, HTTP, SSE, WebSocket)
  • Hook System: 10 lifecycle events for customization
  • Skill System: YAML frontmatter skills with /skillname invocation
  • Teammate System: Multi-agent coordination with tmux backend
  • Native Module: Rust-based performance for critical operations

Native Modules (Rust)

The @ebowwa/coder-native package provides high-performance operations:

| Module | Description | |--------|-------------| | grep | Ripgrep-based file search with regex support | | hash | xxHash3/SHA-256 content hashing | | highlight | Syntax highlighting with syntect | | structure | Tree-sitter code structure parsing | | patterns | Tool usage pattern analysis | | multi_edit | Batch file editing with validation |

Project Structure

coder/
├── packages/
│   ├── src/
│   │   ├── types/          # TypeScript type definitions
│   │   ├── core/           # API client, agent loop, checkpoints
│   │   ├── tools/          # Built-in tools (Read, Write, Edit, Bash, etc.)
│   │   ├── mcp/            # MCP client implementation
│   │   ├── hooks/          # Hook system for lifecycle events
│   │   ├── skills/         # Skill parsing and invocation
│   │   ├── teammates/      # Multi-agent coordination
│   │   ├── native/         # Native module loader
│   │   └── interfaces/     # CLI and UI interfaces
│   └── rust/
│       └── src/
│           ├── grep.rs     # Ripgrep-based file search
│           ├── hash.rs     # Content hashing (xxHash3, SHA-256)
│           ├── highlight.rs # Syntax highlighting
│           ├── structure.rs # Tree-sitter parsing
│           ├── patterns.rs  # Tool pattern analysis
│           ├── multi_edit.rs # Batch file operations
│           └── diff.rs     # Diff calculation
├── native/             # Compiled native modules
└── dist/               # Build output

Configuration

Environment Variables

  • API_KEY - API key for your LLM provider

CLI Options

| Option | Description | Default | |--------|-------------|---------| | -m, --model | Model to use | glm-5 | | -p, --permission-mode | Permission mode | default | | --max-tokens | Maximum output tokens | 4096 | | --system-prompt | Override system prompt | - | | --mcp-config | MCP server configuration | - |

Development

# Install dependencies
bun install

# Build TypeScript
bun run build:ts

# Build Rust native module
bun run build:native

# Full build
bun run build

# Development mode with watch
bun run dev

# Run tests
bun test

Packages

| Package | Version | Description | |---------|---------|-------------| | @ebowwa/coder | 0.2.1 | Main CLI package | | @ebowwa/coder-native | 0.2.1 | Native Rust modules |

License

MIT