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

@gengjiawen/os-init

v1.19.0

Published

[![npm version](https://img.shields.io/npm/v/%40gengjiawen%2Fos-init)](https://www.npmjs.com/package/@gengjiawen/os-init)

Readme

os-init CLI

npm version

A CLI tool to quickly configure development tools and environments.

Usage

Setup Dev Environment

pnpx @gengjiawen/os-init set-dev <SSH_PUBLIC_KEY>

Sets up a Docker-based development environment with SSH access. This command will:

  • Copy dev-setup directory to your current directory (or specify with -t, --target <dir>)
  • Configure SSH public key in Dockerfile
  • Automatically run docker-compose build && docker-compose up -d (if docker-compose is available)
  • Display SSH connection command with your local IP address

Example:

pnpx @gengjiawen/os-init set-dev "ssh-rsa AAAAB3NzaC1yc2..."

Setup Android Development Environment

pnpx @gengjiawen/os-init set-android

Sets up a complete Android development environment on macOS and Linux. This command will:

  • Install Android SDK to ~/Android (or custom path with --android-home <path>)
  • Download and install Android SDK Command-line Tools, Platform Tools, Build Tools, CMake, and NDK
  • Automatically accept Android SDK licenses
  • Configure environment variables in your shell config (~/.bashrc, ~/.zshrc, or ~/.config/fish/config.fish)
  • Works on both macOS (Intel and Apple Silicon) and Linux
  • No sudo access required

Example:

# Custom installation path
pnpx @gengjiawen/os-init set-android --android-home ~/my-android-sdk

# Skip environment variable configuration
pnpx @gengjiawen/os-init set-android --skip-env-vars

Setup Fish Shell Import Script

pnpx @gengjiawen/os-init set-fish

Sets up Fish shell to automatically import environment variables from .bashrc. This command will:

  • Detect if Fish shell is installed (by checking for ~/.config/fish/config.fish)
  • Add an import script to ~/.config/fish/config.fish that reads environment variables from ~/.bashrc
  • Automatically convert Bash-style environment variable syntax to Fish shell syntax
  • Handle PATH variables correctly (converting : separators to spaces)
  • Skip if the import script already exists

This is useful when you have environment variables configured in .bashrc but want to use them in Fish shell without duplicating configuration.

Example:

pnpx @gengjiawen/os-init set-fish

Generate Mihomo Config

pnpx @gengjiawen/os-init set-clash
pnpx @gengjiawen/os-init set-clash --download
pnpx @gengjiawen/os-init set-clash --target ~/mihomo/config.yml

Generates a Mihomo config.yml from the built-in template. This command will:

  • Write ./config.yml in the current directory by default
  • Download the Mihomo binary to the config directory when --download is set
  • Support a custom output path with -t, --target <path>

After generating the config, you can keep Mihomo running with pm2:

pm2 start mihomo --name mihomo -- -f /absolute/path/to/config.yml && pm2 save

Configure Claude Code

pnpx @gengjiawen/os-init set-cc <API_KEY>

Configures Claude Code with your API key. This command will:

  • Write ~/.claude/settings.json
  • Write VSCode Claude extension config in user settings.json
  • Install global tool: @anthropic-ai/claude-code

Configure Codex CLI

pnpx @gengjiawen/os-init set-codex <API_KEY>

Configures Codex CLI with your API key. This command will:

  • Write ~/.codex/config.toml
  • Write ~/.codex/auth.json
  • Install global tool: @openai/codex

Configure OpenCode CLI

pnpx @gengjiawen/os-init set-opencode <API_KEY>

Configures OpenCode CLI with your API key. This command will:

  • Write ~/.config/opencode/opencode.json
  • Install global tool: opencode-ai (provides opencode command)

Configure Raycast AI

pnpx @gengjiawen/os-init set-raycast-ai <API_KEY>

Configures Raycast AI providers with your API key. This command will:

  • Write ~/.config/raycast/ai/providers.yaml

Project generated by gengjiawen/ts-scaffold