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

synpick

v1.6.3

Published

Interactive model selection tool for Claude Code with Synthetic AI models

Readme

Synpick

Interactive model selection tool for Claude Code with Synthetic AI models.

Overview

synpick is a modern TypeScript/Node.js application that provides a seamless interface for selecting and launching Claude Code with various AI models from the Synthetic API.

Features

  • Modern TypeScript Stack: Built with TypeScript, Node.js, and npm
  • Interactive Model Selection: Rich terminal UI for browsing and selecting models
  • Smart Search: Search models by name, provider, or capabilities
  • Persistent Configuration: Save your preferred model choices
  • Easy Installation: npm install -g synpick - available on npm registry
  • System Health: Built-in diagnostic tools
  • Well Tested: Comprehensive Jest test suite
  • Beautiful UI: Modern React-based terminal interface with Ink

Quick Start

Prerequisites

Note: The installer script will automatically configure nvm to use Node.js v24.12.0 if available.

Installation

Option 1: npm Registry (Recommended)

Linux/Windows/macOS:

npm install -g synpick

macOS (if permissions error):

sudo npm install -g synpick

Alternative for macOS (permanent fix):

mkdir ~/.npm-global
npm config set prefix '~/.npm-global'
echo 'export PATH=~/.npm-global/bin:$PATH' >> ~/.zshrc
source ~/.zshrc
npm install -g synpick

Option 2: GitHub Release

npm install -g https://github.com/jeffersonwarrior/synpick/releases/download/v1.6.1/synpick-1.6.1.tgz

Option 3: One-line Installer

curl -sSL https://raw.githubusercontent.com/jeffersonwarrior/synpick/main/scripts/install.sh | bash

Option 4: Clone and Install

git clone https://github.com/jeffersonwarrior/synpick.git
cd synpick
./scripts/install.sh

Important:

  • npm registry is the recommended installation method
  • GitHub releases and install scripts are available as alternatives
  • The installer script automatically configures nvm for Node.js v24.12.0 if available

Uninstallation

Option 1: One-line Uninstaller

curl -sSL https://raw.githubusercontent.com/jeffersonwarrior/synpick/main/scripts/uninstall.sh | bash

Option 2: Manual Uninstall

# If installed globally via npm
npm uninstall -g synpick

# If installed locally via npm link
npm unlink -g synpick

# Remove configuration and cache
rm -rf ~/.config/synpick

Initial Setup

After installation, run the setup wizard:

synpick setup

This will guide you through:

  1. Configuring your Synthetic API key
  2. Testing your connection
  3. Selecting your first model

Basic Usage

After setup, you can start using Synpick:

# Launch with interactive model selection
synpick

# Launch with a specific model
synpick --model "openai:gpt-4"

# Browse and save a default model
synpick model

# Check system health
synpick doctor

See USAGE.md for comprehensive usage documentation.


Advanced Usage

Configuration Options

Synpick stores configuration in ~/.config/synpick/config.json. Key options include:

  • apiKey: Your Synthetic API key
  • baseUrl: Synthetic API base URL
  • modelsApiUrl: Models endpoint URL
  • cacheDurationHours: Model cache duration (1-168 hours, default 24)
  • selectedModel: Last selected model
  • selectedThinkingModel: Last selected thinking model
  • firstRunCompleted: Whether first-time setup has been completed
  • maxTokenSize: Max token size for Claude Code (1000-200000, default 128000)
  • apiTimeoutMs: HTTP API request timeout in ms (1000-300000, default 30000)
  • commandTimeoutMs: Command execution timeout in ms (1000-60000, default 5000)

Updates

Synpick provides multiple ways to update:

Update via npm (Recommended)

# Update to the latest version
npm update -g synpick

Automatic Update Command

# Check for and install updates from GitHub
synpick update

The update command:

  • Checks GitHub repository for the latest release
  • Compares versions using semver (won't downgrade)
  • Runs the installer if a newer version is available

Manual Update

# Install specific version from npm
npm install -g [email protected]

# Or from GitHub release
npm install -g https://github.com/jeffersonwarrior/synpick/releases/download/v1.6.1/synpick-1.6.1.tgz

Check Current Version

synpick --version

Environment Variables

You can override configuration with environment variables:

export SYNTHETIC_API_KEY="your-api-key"
export SYNTHETIC_BASE_URL="https://api.synthetic.new"
export SYNTHETIC_CACHE_DURATION=24

Development

Setup Development Environment

git clone https://github.com/jeffersonwarrior/synpick.git
cd synpick
npm install

Development Commands

# Build the project
npm run build

# Run in development mode
npm run dev

# Run tests
npm test

# Run tests with coverage
npm test:coverage

# Lint code
npm run lint

# Format code
npm run format

# Full development cycle
npm run lint && npm test && npm run build

Project Structure

synpick/
├── src/
│   ├── cli/           # CLI commands and parsing (Commander.js)
│   ├── core/          # Application orchestration
│   ├── config/        # Configuration management (Zod)
│   ├── models/        # Data models and API interfaces
│   ├── ui/            # Terminal UI components (Ink)
│   ├── launcher/      # Claude Code launcher
│   ├── api/           # HTTP client (axios)
│   └── utils/         # Shared utilities
├── tests/             # Jest tests
├── scripts/           # Installation and utility scripts

API Integration

Synthetic API Endpoints

  • Models API: https://api.synthetic.new/openai/v1/models
  • Anthropic API: https://api.synthetic.new/anthropic

Environment Variables for Claude Code

When launching Claude Code, Synpick automatically sets:

  • ANTHROPIC_BASE_URL=https://api.synthetic.new/anthropic
  • ANTHROPIC_AUTH_TOKEN={your_api_key}
  • ANTHROPIC_DEFAULT_*_MODEL variants
  • CLAUDE_CODE_SUBAGENT_MODEL={selected_model}

Troubleshooting

Recent Fixes (v1.6.1)

This version includes:

  • ESM (ES Modules) compatibility - fixed __dirname is not defined and require() errors
  • Now available on npm registry: npm install -g synpick
  • Installer script now configures nvm for Node.js v24.12.0 automatically
  • All 227 tests passing across 12 test suites
  • Multiple installation options (npm, GitHub, install scripts)

Common Issues

Node.js Version Issues

# Check your Node.js version
node --version

# Upgrade to Node.js 18+ if needed
nvm install 18
nvm use 18

PATH Issues

If synpick command is not found after installation:

# Check if local bin directory is in PATH
echo $PATH | grep -o "$HOME/.local/bin"

# Add to PATH (add to your .bashrc, .zshrc, etc.)
export PATH="$PATH:$HOME/.local/bin"

Permission Issues

# Fix npm global permissions
mkdir ~/.npm-global
npm config set prefix '~/.npm-global'
export PATH=~/.npm-global/bin:$PATH

API Connection Issues

# Test API connection
synpick doctor

# Clear cache and retry
synpick cache clear
synpick models --refresh

Get Help

# Show all commands
synpick --help

# Get help for specific command
synpick models --help
synpick config --help

# Check system health
synpick doctor

Contributing

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature/amazing-feature
  3. Make your changes
  4. Run tests and linting: npm test && npm run lint
  5. Commit your changes: git commit -m 'Add amazing feature'
  6. Push to the branch: git push origin feature/amazing-feature
  7. Open a Pull Request

Development Guidelines

  • Use TypeScript for all new code
  • Follow ESLint and Prettier configurations
  • Write tests for new functionality
  • Update documentation for API changes
  • Ensure compatibility with Node.js 18+

License

This project is licensed under the MIT License - see the LICENSE file for details.

Support