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

shsu

v0.0.10

Published

CLI for deploying and managing Supabase Edge Functions on self-hosted Supabase (Coolify, Docker Compose). Sync functions via rsync, stream logs, and invoke endpoints.

Readme

shsu

Self-Hosted Supabase Utilities

Deploy and manage Supabase Edge Functions and migrations on Coolify-hosted Supabase.

Install

npm install -g shsu
# or use directly
npx shsu

Setup

Run the init command to configure your project:

npx shsu init

This adds config to your package.json:

{
  "shsu": {
    "server": "root@your-coolify-server",
    "remotePath": "/data/coolify/services/YOUR_SERVICE_ID/volumes/functions",
    "url": "https://your-supabase.example.com",
    "edgeContainer": "edge",
    "dbContainer": "postgres"
  }
}

Finding Configuration Values

remotePath - SSH to your server and run:

docker inspect $(docker ps -q --filter 'name=edge') | grep -A 5 "Mounts"

Container names - SSH to your server and run docker ps to list containers. Coolify names containers using the pattern <service>-<uuid> (e.g., abc123-supabase-edge-functions-1). The filter does substring matching, so edge matches any container with "edge" in its name.

Usage

# Configure project
shsu init

# Show current configuration
shsu env

# Deploy all functions
shsu deploy

# Deploy single function
shsu deploy hello-world

# Deploy without restarting edge-runtime
shsu deploy hello-world --no-restart

# Run database migrations
shsu migrate

# Stream logs
shsu logs

# Stream logs filtered by function name
shsu logs hello-world

# List local and remote functions
shsu list

# Invoke a function
shsu invoke hello-world '{"name":"Stefan"}'

# Create new function from template
shsu new my-function

# Restart edge-runtime
shsu restart

Migrations

Place SQL files in ./supabase/migrations/ (or your configured migrationsPath). Files are sorted alphabetically and executed in order.

supabase/migrations/
  001_create_users.sql
  002_add_email_index.sql

Run with:

shsu migrate

Configuration

Config is read from package.json "shsu" key. Environment variables override package.json values.

| Key / Env Var | Required | Description | |---------------|----------|-------------| | server / SHSU_SERVER | Yes | SSH host (e.g., [email protected]) | | remotePath / SHSU_REMOTE_PATH | Yes | Remote path to functions directory | | url / SHSU_URL | For invoke | Supabase URL | | localPath / SHSU_LOCAL_PATH | No | Local functions path (default: ./supabase/functions) | | migrationsPath / SHSU_MIGRATIONS_PATH | No | Local migrations path (default: ./supabase/migrations) | | edgeContainer / SHSU_EDGE_CONTAINER | No | Edge runtime container filter (default: edge) | | dbContainer / SHSU_DB_CONTAINER | No | Database container filter (default: postgres) |

MCP Server

shsu can run as an MCP server for AI assistants.

Claude Code

Add to .mcp.json in your project root:

{
  "mcpServers": {
    "shsu": {
      "command": "npx",
      "args": ["shsu", "mcp"]
    }
  }
}

Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):

{
  "mcpServers": {
    "shsu": {
      "command": "npx",
      "args": ["shsu", "mcp"],
      "cwd": "/path/to/your/project"
    }
  }
}

Cursor

Add to .cursor/mcp.json in your project:

{
  "mcpServers": {
    "shsu": {
      "command": "npx",
      "args": ["shsu", "mcp"]
    }
  }
}

Available MCP Tools

  • deploy - Deploy edge functions
  • migrate - Run database migrations
  • list - List local and remote functions
  • invoke - Invoke a function
  • restart - Restart edge-runtime
  • new - Create new function from template
  • config - Show current configuration
  • docs - Get setup documentation

Releasing

npm version patch   # or minor/major
git push --follow-tags

GitHub Actions will automatically publish to npm when the tag is pushed.

License

MIT