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

@glash/cli

v0.2.7

Published

glashDB command-line interface — deploy projects, pull source + env, manage env vars.

Readme

@glash/cli

The official command-line interface for glashDB.

npm install -g @glash/cli
glash login
glash deploy

Commands

| Command | Purpose | | --- | --- | | glash login | Sign in (stores a token at ~/.glash/credentials.json) | | glash logout | Clear local credentials | | glash whoami | Show the signed-in user | | glash projects | List your projects | | glash projects:new <name> | Create a project and link it to the current directory | | glash new <name> | Alias for projects:new | | glash new deploy | Deploy to a brand new project, ignoring any existing link | | glash projects:rm <slug> | Delete a project | | glash link <slug> | Link the current directory to an existing project | | glash open | Open the linked project's primary domain | | glash deploy [--prod] [--detach] | Deploy the linked project; streams the pipeline until live | | glash deployments | List recent deployments | | glash status <id> | Show a deployment's pipeline + events | | glash logs <id> | Alias of status | | glash rollback <id> | Roll the linked project back to a previous deployment | | glash retry <id> [--fix <id>] | Retry a failed deployment | | glash env | List env vars for the linked project | | glash env:add KEY=value | Set a single env var | | glash env:rm KEY | Remove an env var | | glash env:pull [--out .env.local] | Pull env vars to a local file | | glash env:push [<file>] | Bulk upload from a .env file | | glash database dump [--url "$DATABASE_URL"] | Dump a Postgres-compatible source database to .glash/database-dumps/ | | glash database upload [--file dump.dump] | Restore a local dump into the linked glashDB database | | glash update | Update @glash/cli to the latest version |

Pass --project <slug> to any command to operate on a project other than the one linked in the current directory.

Database dump and upload

glash database dump looks for a Postgres-compatible source URL in this order:

  1. --url / --from
  2. the current shell environment
  3. .env, .env.local, .env.production, .env.development

Supported env names include DATABASE_URL, POSTGRES_URL, POSTGRES_URL_NON_POOLING, DIRECT_URL, and SUPABASE_DB_URL.

Examples:

glash database dump
glash database dump --url "$DATABASE_URL" --out ./backup.dump
glash database dump --format plain --out ./backup.sql

glash database upload restores the latest dump into the linked glashDB project. It fetches the project's revealed direct database URL from the glashDB API and runs pg_restore for custom dumps or psql for .sql dumps.

glash link my-project
glash database upload --yes
glash database upload --file ./backup.sql --format plain --project my-project

The commands require PostgreSQL client tools locally: pg_dump for dumps, pg_restore for custom-format restores, and psql for plain SQL restores.

Environment

| Variable | Default | Notes | | --- | --- | --- | | GLASH_API_URL | https://api.glashdb.com/api | Override the API base (self-hosted, staging) | | GLASH_TOKEN | — | Use this token instead of ~/.glash/credentials.json (useful in CI) |

Requirements

Node.js 20+. Zero runtime dependencies.

License

Apache-2.0