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

@prisma/compute-cli

v0.14.0

Published

Command-line interface for deploying and managing [Prisma Compute](https://www.prisma.io/compute) services.

Readme

Compute CLI

Command-line interface for deploying and managing Prisma Compute services.

Quick start

Run directly with bunx (no install required):

bunx @prisma/compute-cli --help

Also works with npx @prisma/compute-cli if you don't have Bun installed.

Authentication

Interactive login (browser-based)

bunx @prisma/compute-cli login

This opens your browser for OAuth authentication with Prisma. Tokens are stored locally:

| Platform | Path | | -------- | ---------------------------------------------------------------------------------------------- | | macOS | ~/Library/Application Support/prisma-compute/auth.json | | Linux | $XDG_CONFIG_HOME/prisma-compute/auth.json (defaults to ~/.config/prisma-compute/auth.json) | | Windows | %APPDATA%\prisma-compute\auth.json |

To log out and clear stored credentials:

bunx @prisma/compute-cli logout

Service token (CI / non-interactive)

Set the PRISMA_API_TOKEN environment variable. When present, the CLI skips the stored OAuth credentials and authenticates with this token directly.

export PRISMA_API_TOKEN="your-service-token"
bunx @prisma/compute-cli projects list

Commands

All commands except login and logout support --json for machine-readable output.

Deploy

Build and deploy your application:

bunx @prisma/compute-cli deploy --path ./my-app

Key flags:

| Flag | Description | | ----------------- | ---------------------------------------------------------------------------------- | | --path | App directory (default: .) | | --project | Project ID (prompted interactively if omitted) | | --service | Compute service ID (prompted interactively if omitted) | | --entrypoint | File to run at startup, relative to --path (falls back to package.json main) | | --serviceName | Name for a new compute service | | --region | Region for a new compute service | | --env KEY=VALUE | Environment variable (repeatable) | | --httpPort | HTTP port your application listens on (default: 8080) | | --skipBuild | Deploy a pre-built artifact (requires --entrypoint) | | --timeout | Poll timeout in seconds (default: 120) | | --pollInterval | Poll interval in ms (default: 1000) | | --json | Output JSON instead of human-readable text |

Set PRISMA_COMPUTE_SERVICE_ID to skip the --service flag across all commands:

export PRISMA_COMPUTE_SERVICE_ID="your-service-id"
bunx @prisma/compute-cli deploy --path ./my-app

Environment variables

Update environment variables on a running service (creates a new version):

bunx @prisma/compute-cli env update --env DATABASE_URL=postgres://... --env NODE_ENV=production

Projects

bunx @prisma/compute-cli projects list

Services

bunx @prisma/compute-cli services list --project <id>
bunx @prisma/compute-cli services create --project <id> --name my-service --region <region>
bunx @prisma/compute-cli services show <service-id>
bunx @prisma/compute-cli services delete <service-id>
bunx @prisma/compute-cli services destroy <service-id>  # stops all versions, then deletes

Versions

bunx @prisma/compute-cli versions list --service <id>
bunx @prisma/compute-cli versions show <version-id>
bunx @prisma/compute-cli versions start <version-id>
bunx @prisma/compute-cli versions stop <version-id>
bunx @prisma/compute-cli versions delete <version-id>
bunx @prisma/compute-cli versions destroy <version-id>  # stops, then deletes

JSON output

Pass --json to any command for structured output suitable for scripting:

bunx @prisma/compute-cli services list --project <id> --json | jq '.value[].id'

Configuration

| Variable | Description | | --------------------------- | -------------------------------------- | | PRISMA_API_TOKEN | Service token for non-interactive auth | | PRISMA_COMPUTE_SERVICE_ID | Default compute service ID | | PRISMA_MANAGEMENT_API_URL | Override the management API base URL |

Development

bun run bin/compute --help
bun run bin/compute deploy --path .