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

@runtypelabs/cli

v0.1.8

Published

Command-line interface for Runtype AI platform

Readme

Runtype CLI

Command-line interface for the Runtype AI platform.

Official CLI tool published on npm

Installation

npm install -g @runtypelabs/cli

Quick Start

1. Create Account & Authenticate

# Create a new account
runtype auth signup

# Or login to existing account
runtype auth login

# Check authentication status
runtype auth whoami

2. Start Interactive Chat

# Start a chat session
runtype talk

# With custom model
runtype talk --model claude-3-opus --temperature 0.2

# With system prompt
runtype talk --system "You are an expert in Next.js development"

3. Manage Flows and Records

# List flows
runtype flows list

# Run a flow
runtype flows run <flow-id> --record <record-id>

# Create a record
runtype records create --name "My Record" --type "document"

# List records
runtype records list --type document

Chat Commands

During a chat session, you can use these special commands:

  • /help - Show available commands
  • /clear - Clear conversation history
  • /save [filename] - Save session to file
  • /load <filename> - Load session from file
  • /export - Export conversation as markdown
  • /model <model> - Change AI model
  • /temp <value> - Set temperature (0-1)
  • /info - Show session information
  • /exit - Exit chat session

Configuration

# View all configuration
runtype config get

# Set API URL
runtype config set apiUrl https://api.runtype.com

# Set default model
runtype config set defaultModel gpt-4o

# Reset configuration
runtype config reset

Development

Local Development Setup

# From repository root, navigate to CLI package
cd packages/cli

# Install dependencies
pnpm install

# Copy environment template and configure for local development
cp .env.example .env
# Edit .env with your local settings (API URL, Clerk key, etc.)

# Build the CLI
pnpm build

Running the CLI Locally

Option 1: Development mode with hot reload

# Run with tsx watch (for development)
pnpm dev

# Run specific commands in dev mode
pnpm dev -- --help
pnpm dev -- auth login
pnpm dev -- config get

Option 2: Build and run directly

# Build first
pnpm build

# Run built CLI with Node.js
node dist/index.js --help
node dist/index.js auth login
node dist/index.js talk

Option 3: Install globally for testing

# Build and install globally
pnpm build
npm install -g .

# Now use the runtype command anywhere
runtype --help
runtype auth login
runtype talk

# After making changes, rebuild and reinstall
pnpm build && npm install -g .

Local Environment Configuration

Create a .env file for local development:

# Point to local API and dashboard
RUNTYPE_API_URL=http://localhost:8787
RUNTYPE_DASHBOARD_URL=http://localhost:3001

# Add your Clerk publishable key (get from Clerk dashboard)
CLERK_PUBLISHABLE_KEY=pk_test_your_key_here

# Optional: Set defaults
RUNTYPE_DEFAULT_MODEL=meta/llama3.1-8b-instruct-free
RUNTYPE_DEFAULT_TEMPERATURE=0.7
DEBUG=true

Testing

# Run tests
pnpm test

# Watch mode
pnpm test:watch

Environment Variables

  • RUNTYPE_API_URL - API endpoint URL (default: https://api.runtype.com)
  • RUNTYPE_DASHBOARD_URL - Dashboard URL (default: https://use.runtype.com)
  • CLERK_PUBLISHABLE_KEY - Clerk public key for OAuth
  • RUNTYPE_DEFAULT_MODEL - Default AI model (default: gpt-4o)
  • RUNTYPE_DEFAULT_TEMPERATURE - Default temperature (default: 0.7)
  • DEBUG - Enable debug mode

License

MIT