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

@hotshot-it/server

v0.0.1

Published

Standalone HTTP + WebSocket server for Hotshot - Works with any framework (Rails, Vue, Svelte, plain HTML)

Readme

@hotshot/server

Standalone HTTP + WebSocket server for AI-powered component editing with Hotshot.

This package provides a framework-agnostic server that works with plain HTML, Rails, Vue, Svelte, and any other web framework—no Vite required.

Installation

# Global installation
npm install -g @hotshot/server

# Or use directly with npx
npx @hotshot/server

Quick Start

  1. Start the server in your project directory:
cd /path/to/your/project
npx @hotshot/server
  1. Install the Hotshot Chrome extension (if you haven't already)

  2. Open your app in Chrome and start editing components!

Usage

Basic Usage

# Start with default settings (port 3737)
hotshot-server

# Custom port
hotshot-server --port 8080

# With config file
hotshot-server --config hotshot.json

Configuration File

Create .hotshotrc.json in your project root:

{
  "port": 3737,
  "cwd": "/path/to/project",
  "model": "claude-sonnet-4-5",
  "permissionMode": "acceptEdits",
  "systemPromptAdditions": "Additional instructions for Claude..."
}

CLI Options

Options:
  -p, --port <port>      Server port (default: 3737)
  -c, --config <path>    Path to config file (default: .hotshotrc.json)
  -h, --help             Show help message

Supported Frameworks

✅ React (with Fiber)

  • Automatic component detection
  • File path extraction from React internals
  • Full props and context support

✅ Rails

  • View path detection from HTML comments
  • Supports ERB templates and partials
  • Line number extraction

✅ Plain HTML

  • Direct element selection
  • Manual file path configuration
  • Works with any static site generator

🚧 Vue, Svelte (Coming Soon)

  • Framework detection implemented
  • Full support in development

How It Works

  1. Server runs independently from your app's dev server
  2. Extension connects via WebSocket (ws://localhost:3737/hotshot-ws)
  3. Claude CLI integration handles AI-powered edits
  4. Health check endpoint at http://localhost:3737/health

Differences from Vite Plugin

| Feature | Vite Plugin | Standalone Server | |---------|-------------|-------------------| | Framework Support | React only | React, Rails, HTML, etc. | | Installation | Part of Vite config | Separate process | | Port | Same as Vite | Independent (3737) | | HMR Integration | Automatic | Uses your dev server's HMR | | Best For | React + Vite projects | Everything else |

Programmatic Usage

You can also use the server programmatically in Node.js:

import { HotshotServer } from '@hotshot/server';

const server = new HotshotServer({
  port: 3737,
  cwd: process.cwd(),
  model: 'claude-sonnet-4-5',
  permissionMode: 'acceptEdits',
});

await server.start();

Requirements

  • Node.js 20.19+ or 22.12+
  • Claude CLI installed and configured
  • Chrome browser with Hotshot extension

Troubleshooting

Extension won't connect

  1. Make sure the server is running: hotshot-server
  2. Check server output for errors
  3. Verify port 3737 is not blocked by firewall
  4. Check health endpoint: curl http://localhost:3737/health

Claude CLI errors

Make sure Claude CLI is installed and authenticated:

# Install Claude CLI
npm install -g @anthropic-ai/claude-cli

# Authenticate
claude auth

License

Apache-2.0