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

opsos

v1.0.3

Published

Zero-config git-branch deploy CLI for MERN / Next.js / Vite projects

Readme

opsos

Zero-config git-branch deploy CLI for MERN / Next.js / Vite projects

npm license

What it does

opsos builds your project and deploys the output to a dedicated git branch on your remote repository. The VPS/server then just pulls that branch — no Docker, no CI pipeline complexity needed.

opsos deploy prod

That's it. ✅


Install

# Use directly without installing
npx opsos deploy prod

# Or install globally
npm install -g opsos

# Or as a dev dependency
npm install -D opsos

Usage

opsos deploy [branch]     # Deploy to branch (default: stage)
opsos init                # Auto-detect project and create deploy-config.json
opsos help                # Show help

Recommended package.json scripts

{
  "scripts": {
    "deploy:stage": "opsos deploy stage",
    "deploy:prod":  "opsos deploy prod",
    "deploy:dev":   "opsos deploy dev",
    "deploy:uat":   "opsos deploy uat"
  }
}

Configuration

Place a deploy-config.json file in your project root to customize the build and copy steps.

If no config is found, opsos will auto-detect your project type and generate one automatically.

Auto-detection supports

| Project type | Detection | Output dir | |---|---|---| | Next.js standalone | output: 'standalone' in next.config | .next/standalone | | Next.js static export | output: 'export' in next.config | out/ | | Vite | vite.config.* present | dist/ | | Create React App | react-scripts in package.json | build/ | | Generic | fallback | dist/ |

Example deploy-config.json

Next.js standalone (default):

{
  "buildCommand": "npm run build",
  "copySteps": [
    {
      "src": ".next/standalone",
      "dest": ".deploy",
      "excludes": ["public", ".next/static", ".git"]
    },
    { "src": ".next/static", "dest": ".deploy/.next/static" },
    { "src": "public",       "dest": ".deploy/public" }
  ]
}

Vite / Static export:

{
  "buildCommand": "npm run build",
  "copySteps": [
    { "src": "dist", "dest": ".deploy" }
  ]
}

How it works

  1. Checks if the target branch exists on origin
  2. Bumps the patch version in package.json
  3. Runs your buildCommand
  4. Clones the deploy branch (shallow, --depth 1) into .deploy/
  5. Syncs files from your build output to .deploy/ using smart incremental copy
  6. Commits and pushes the result to the target branch
  7. Retains .deploy/ for faster subsequent deploys (acts as a git cache)

.deploy is safe to add to .gitignore — it is a separate git repo cloned inside your project folder.


Add .deploy to .gitignore

/.deploy

Requirements

  • Node.js >= 16
  • git installed and accessible in PATH
  • Remote origin configured in the project (git remote add origin ...)

License

MIT © mytecsys