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 🙏

© 2025 – Pkg Stats / Ryan Hefner

instantcode

v1.1.0

Published

AI-powered web inspection tool - Pick elements and get instant AI assistance

Downloads

81

Readme

InstantCode - AI-Powered Web Development Assistant

Watch the Tutorial

📺 Watch the Tutorial Video - See InstantCode in action!

What can this plugin help you?

After installing the plugin, you can:

  • Point directly at any element on your webapp
  • Type a short request like "make it bigger", "center it", "change color to blue"
  • Wait for AI to modify your code - it automatically finds and updates the source files
  • See instant results - your changes appear immediately in the browser

Save cognitive load, because it's precious.

Prerequisites

InstantCode requires Claude Code to provide AI assistance:

# Install Claude Code globally
bun install -g @anthropic-ai/claude-code

# Verify installation
claude --version

Quick Start with Vite

The fastest way to get started is using our Vite plugin. This automatically handles everything for you!

1. Install InstantCode

bun add -d instantcode

2. Add to Your Vite Config

Add the plugin to your vite.config.ts:

import { defineConfig } from 'vite';
import inspectorPlugin from 'instantcode/vite-plugin';

export default defineConfig({
  plugins: [
    inspectorPlugin(),
  ],
});

3. Start Your Dev Server

bun dev

That's it! The InstantCode toolbar will automatically appear in your application and ready to use.

Plugin Configuration

The Vite plugin accepts these options:

inspectorPlugin({
  port: 7318,
  verbose: false,
})

Framework Support

InstantCode works with all Vite-supported frameworks:

  • ⚛️ React - Detects components, props, and state
  • 🟢 Vue - Understands composition/options API
  • 🅰️ Angular - Recognizes components and directives
  • 🟠 Svelte - Identifies components and stores
  • 📄 Vanilla JS - Works with plain HTML/CSS/JS

Advanced Usage - Team Collaboration

Enable Team-Wide Code Modification

Want your entire team to modify the app? Or let users customize the app themselves? Run InstantCode on a server!

inspectorPlugin({
  port: 7318,                            // Port to run server on (default: 7318)
  listenAddress: '0.0.0.0',              // Used for socket connection between the toolbar and the server
  publicAddress: 'https://ai.example.com', // Used to serve the inspector-toolbar.js file
  verbose: false,                        // Enable detailed logging (default: false)
})

How it works:

  • listenAddress: '0.0.0.0' - Makes the InstantCode server accessible from any network
  • publicAddress - The URL where your team accesses the inspector toolbar

Example Setup for Team Access:

// Deploy your app on a server at https://myapp.com
// Configure InstantCode to be accessible:
inspectorPlugin({
  listenAddress: '0.0.0.0',              // Accept connections from team members
  publicAddress: 'https://myapp.com:7318' // Where the toolbar connects
})

Now anyone on your team can:

  1. Open the app at https://myapp.com
  2. Use the InstantCode toolbar to modify the UI
  3. Changes are saved directly to the server's source files
  4. Everyone sees updates in real-time!

Manual Setup (Without Vite)

If you prefer manual control or aren't using Vite:

Run Standalone Server

# Navigate to your project directory first (important for context!)
cd /path/to/your/project

# Start the server (basic)
bunx instantcode@latest

# With custom port
bunx instantcode --port 8080

# Listen on all interfaces (for team access)
bunx instantcode --listen 0.0.0.0

# Use with reverse proxy
bunx instantcode --listen localhost --public-address https://ai.example.com

# Enable verbose logging
bunx instantcode --verbose

CLI Options

  • -p, --port <number> - Port to run server on (default: 7318)
  • -l, --listen <address> - Address to bind server to (default: localhost)
  • -a, --public-address <url> - Public URL for reverse proxy scenarios
  • -V, --verbose - Enable verbose logging
  • -h, --help - Show help message
  • -v, --version - Show version

Add Script Manually

Add to your HTML:

<!-- Default setup -->
<script src="http://localhost:7318/inspector-toolbar.js"></script>

<!-- With custom port -->
<script src="http://localhost:8080/inspector-toolbar.js"></script>

<!-- With reverse proxy -->
<script src="https://ai.yourdomain.com/inspector-toolbar.js"></script>

Happy coding! 🚀 and save your precious cognitive load.