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

@surgedev/cli

v0.0.4

Published

SurgeDev CLI — Manage your SurgeDev backend from the command line (database, storage, auth)

Readme

SurgeDev CLI

Manage your SurgeDev backend from the command line — database, storage, auth, all in one tool.

Install

npm install -g surgedev-cli

Quick Start

# 1. Set your API credentials
export SURGEDEV_API_URL=http://localhost:7130
export SURGEDEV_API_KEY=ik_xxx

# 2. Test the connection
surgedev ping

# Or use a .env file in your project root
echo "SURGEDEV_API_URL=http://localhost:7130" >> .env
echo "SURGEDEV_API_KEY=ik_xxx" >> .env

Commands

Database

surgedev db list                              # List all tables
surgedev db schema <table>                    # Show table structure
surgedev db create <table> --columns '[...]'  # Create a table
surgedev db drop <table>                      # Drop a table
surgedev db query <table>                     # Query records
surgedev db insert <table> --data '[...]'     # Insert records
surgedev db update <table> --filter '{}' --data '{}'  # Update records
surgedev db delete <table> --filter '{}'      # Delete records
surgedev db sql "SELECT * FROM users"         # Run raw SQL

Query with filters (PostgREST style):

surgedev db query users --filter '{"age":"gt.18","status":"eq.active"}' --select id,name --limit 10

Create a table:

surgedev db create posts --columns '[
  {"name": "title", "type": "string", "nullable": false},
  {"name": "content", "type": "text"},
  {"name": "published", "type": "boolean", "default": "false"}
]'

Storage

surgedev storage ls                           # List all buckets
surgedev storage create <bucket>              # Create a bucket
surgedev storage create <bucket> --private    # Create a private bucket
surgedev storage drop <bucket>                # Delete a bucket
surgedev storage objects <bucket>             # List files in a bucket

Auth

surgedev auth users                           # List registered users
surgedev auth users --search "alice"          # Search users
surgedev auth config                          # View auth configuration

Utility

surgedev ping                                 # Test backend connection

Configuration

| Environment Variable | Description | Default | |---|---|---| | SURGEDEV_API_URL | Backend API URL | http://localhost:7130 | | SURGEDEV_API_KEY | API Key (required) | — |

You can also place a .env file in your project root or the CLI's install directory.

Use with AI Agents

SurgeDev CLI is designed to be used by AI coding agents (Cursor, Claude Code, etc.) via terminal. The AI runs CLI commands directly — no MCP protocol needed.

AI Agent → terminal → surgedev CLI → SurgeDev Backend API

License

Apache-2.0