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

socclink

v0.2.6

Published

Instant preview links for your projects

Downloads

13

Readme

Socc CLI

CLI for publishing instant preview links with Socc.

Requirements

  • Node.js 20+
  • npm account + API token from https://sh.socc.ink

Install

From npm (public package)

npm i -g socclink

Quickstart

# 1) Authenticate once
socc login socc_xxxxx

# 2) Deploy from your project folder
socc link

# 3) Optional: set TTL and framework explicitly
socc link --ttl 1 --framework vite
socc link --password mysecret

# 4) List and delete previews
socc list
socc delete <deployment-id>

Commands

  • socc login <token>: Save API token locally.
  • socc logout: Remove saved API token.
  • socc whoami: Show account plan and usage limits.
  • socc link [--ttl <hours>] [--framework <name>]: Build, package, and deploy.
  • socc list: List active deployments.
  • socc delete <id>: Hard-delete a deployment.
  • socc help: Show command help.

Link Options

  • --ttl <hours>: Positive integer in hours. Default is 6.
  • --framework <name>: auto|vite|react|next|angular|nuxt|astro|static.
  • --password <value>: Protect preview with password (tier-dependent).

If you do not pass --framework, detection runs automatically.

Static-Only Support (Current)

Socc currently deploys static output only.

  • Works: frameworks/projects that generate static files (dist/, build/, out/).
  • Does not work yet: server-side runtime SSR (for example Nuxt ssr: true in server mode).

Auto Detection

The CLI detects:

  • Framework: vite, react, next, angular, nuxt, astro, static, or custom build script.
  • Package manager: npm, yarn, pnpm, or bun (by lockfile).

Next.js note

Socc requires static export output (out/) for Next.js.

Set this in next.config.js:

export default {
  output: 'export'
};

Then run socc link again.

Auth Storage

Token is saved in:

~/.socc/config.json
  • Switch account: run socc login <new-token> (replaces current token).
  • Logout: run socc logout.

Troubleshooting

  • You are not authenticated: run socc login <token>.
  • Token is invalid or expired: generate a new token in https://sh.socc.ink.
  • Daily deployment limit reached: wait for reset or upgrade plan.
  • Build failed: verify local build command works before running socc link.
  • Output directory not found: set framework explicitly or fix build output path.