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

@wyxos/zephyr

v0.8.4

Published

A streamlined deployment tool for web applications with intelligent Laravel project detection

Readme

@wyxos/zephyr

A streamlined deployment tool for web applications with intelligent Laravel project detection.

Installation

npm install -g @wyxos/zephyr

Or run directly with npx:

npx @wyxos/zephyr

Usage

Navigate to your app or package directory and run:

npm run release

Or invoke Zephyr directly:

zephyr

See all flags:

zephyr --help

Common workflows:

# Deploy an app using the saved preset or the interactive prompts
zephyr

# Deploy an app with a local npm package version bump
zephyr minor

# Deploy an app while bypassing Zephyr's built-in local checks
zephyr minor --skip-checks

# Deploy a configured app non-interactively
zephyr --non-interactive --preset wyxos-release --maintenance off

# Configure a Laravel app target and verify SSH without deploying
zephyr --setup

# Deploy a configured app non-interactively and auto-commit dirty changes
zephyr --non-interactive --preset wyxos-release --auto-commit

# Deploy without mutating the local package version
zephyr --non-interactive --preset wyxos-release --skip-versioning

# Resume a pending non-interactive deployment
zephyr --non-interactive --preset wyxos-release --resume-pending --maintenance off

# Emit NDJSON events for automation or agent tooling
zephyr --non-interactive --json --preset wyxos-release --maintenance on

# Release a Node/Vue package (defaults to a patch bump)
zephyr --type node

# Release a Node/Vue package with an explicit bump
zephyr --type node minor

# Release a Node/Vue package, update a local consumer app, then deploy that app
zephyr --type node --then-deploy ../php/atlas --consumer-preset wyxos-release --consumer-package @wyxos/vibe

# Release a Packagist package
zephyr --type packagist patch

# Release the current package/composer version without bumping version files
zephyr --type node --skip-versioning
zephyr --type packagist --skip-versioning

When --type node or --type vue is used without a bump argument, Zephyr defaults to patch.

Interactive and Non-Interactive Modes

Interactive mode remains the default and is the best fit for first-time setup, config repair, and one-off deployments.

For app deployments, interactive mode now requires a real interactive terminal. If stdin/stdout are not attached to a TTY, Zephyr refuses to continue in interactive mode and tells you to rerun with --non-interactive --preset --maintenance on|off.

Non-interactive mode is strict and is intended for already-configured projects:

  • --non-interactive fails instead of prompting
  • app deployments require --preset <name>
  • Laravel app deployments require either a saved preset maintenance preference, --maintenance on|off, or a resumable snapshot that already contains the choice
  • pending deployment snapshots require either --resume-pending or --discard-pending
  • stale remote locks are never auto-removed in non-interactive mode
  • --json is only supported together with --non-interactive

If Laravel maintenance mode has already been enabled and Zephyr then exits abnormally because of a signal such as SIGINT, SIGTERM, or SIGHUP, it now makes a best-effort attempt to run artisan up automatically before exiting.

If Zephyr would normally prompt to:

  • create or repair config
  • save a preset
  • install the release script
  • confirm local path dependency updates
  • resolve a stale remote lock

then non-interactive mode stops immediately with a clear error instead.

For Laravel app deployments, --maintenance on|off overrides both the saved preset preference and the maintenance prompt when you want an explicit choice for the current run.

--setup is Laravel-only. It first verifies that the current project is a local Laravel app, then runs the normal local configuration prompts, tests SSH authentication to the selected server, and exits before local deploy preparation, pending snapshot handling, maintenance-mode decisions, locks, or remote deployment commands. On non-Laravel projects it fails before local setup changes are written.

--auto-commit is available for app deployments and package releases. It tells Zephyr to let local Codex inspect the repo and generate the dirty-tree commit message instead of prompting for one.

--skip-versioning keeps Zephyr from mutating package.json or composer.json. On app deploys it skips the local npm version bump step. On package release workflows it releases the version already present in the manifest and creates the release tag from the current HEAD.

--then-deploy <path> is available for --type node and --type vue package releases. After the package release succeeds and the published version is visible on npm, Zephyr updates the local consumer repository, commits the consumer dependency change, and deploys that consumer through its normal Zephyr app-deploy preset. Use --consumer-preset <name> to choose the app preset and --consumer-package <name> when the consumer dependency name differs from the released package name. Pass --consumer-auto-commit when the consumer app may already have pending changes; Zephyr will stage, commit, and push all pending consumer changes before applying the dependency bump. Consumer lockfiles are refreshed only when the consumer repository already tracks an npm lockfile; Zephyr does not create or commit server-side lockfiles.

AI Agents and Automation

Zephyr can be used safely by Codex, CI jobs, or other automation once configuration is already in place.

Recommended pattern for app deployments:

zephyr --non-interactive --json --preset wyxos-release --maintenance off

Recommended pattern for package releases:

zephyr --type node --non-interactive --json minor
zephyr --type packagist --non-interactive --json patch

Recommended pattern for releasing a package and immediately deploying a consumer app:

zephyr --type node --non-interactive --json --then-deploy ../php/atlas --consumer-preset wyxos-release --consumer-package @wyxos/vibe minor

The consumer update happens in the local consumer repository before deployment. Production receives the committed consumer state through the normal deployment path.

In --json mode Zephyr emits NDJSON events on stdout with a stable shape:

  • run_started
  • log
  • prompt_required
  • run_completed
  • run_failed

Each event includes:

  • event
  • timestamp
  • workflow
  • message
  • level where relevant
  • data

run_failed also includes a stable code field for automation checks.

In --json mode, Zephyr reserves stdout for NDJSON events and routes inherited local command output to stderr so agent parsers do not get corrupted.

On a first run inside a project with package.json, Zephyr can:

  • add .zephyr/ to .gitignore
  • add a release script that runs npx @wyxos/zephyr@latest
  • create global server config and per-project deployment config interactively

Follow the interactive prompts to configure your deployment target:

  • Server name and IP address
  • Project path on the remote server
  • Git branch to deploy
  • SSH user and private key

Configuration is saved automatically for future deployments.

Project Scripts

The recommended entrypoint in consumer projects is:

npm run release
  • npm run release is the recommended app/package entrypoint once the release script has been installed.
  • For --type node workflows, Zephyr runs your project's lint script when present.
  • For --type node workflows, Zephyr runs test:run or test when present.
  • For fresh Laravel app deploys, Zephyr runs local lint/test checks before creating the version-bump commit so failed checks do not force repeated bump retries.
  • For critical app deploys, --skip-checks is shorthand for --skip-lint --skip-tests. It skips Zephyr's built-in local checks, but any local pre-push hook can still run its own checks during git push unless you also opt into --skip-git-hooks.
  • For non-interactive app deploys, use a saved preset name instead of relying on prompt fallback.

Features

  • Automated Git operations (branch switching, commits, pushes)
  • SSH-based deployment to remote servers
  • Laravel project detection with smart task execution
  • Intelligent dependency management (Composer, npm)
  • Database migrations when detected
  • Frontend asset compilation
  • Cache clearing and queue worker management
  • SSH key validation and management
  • Deployment locking to prevent concurrent runs
  • Task snapshots for resuming failed deployments
  • Comprehensive logging of all remote operations

Smart Task Execution

Zephyr analyzes changed files and runs appropriate tasks:

  • Always: git pull origin <branch>
  • Composer files changed (composer.json / composer.lock): composer install --no-dev --no-interaction --prefer-dist --optimize-autoloader (requires composer.lock)
  • Migrations changed (database/migrations/*.php): php artisan migrate --force
  • Node dependency files changed (package.json / package-lock.json, including nested): npm install
  • Frontend files changed (.vue/.js/.ts/.tsx/.css/.scss/.less): npm run build
    • Note: npm run build is also scheduled when npm install is scheduled.
  • PHP files changed: clear caches + restart queue workers (Horizon if configured)

Configuration

Global Server Configuration

Servers are stored globally at ~/.config/zephyr/servers.json:

[
  {
    "id": "server_abc123",
    "serverName": "production",
    "serverIp": "192.168.1.100"
  }
]

Project Configuration

Deployment targets are stored per-project at .zephyr/config.json:

{
  "presets": [
    {
      "name": "prod-main",
      "appId": "app_def456",
      "branch": "main",
      "options": {
        "maintenanceMode": true,
        "skipGitHooks": false,
        "skipTests": false,
        "skipLint": false,
        "skipVersioning": false,
        "autoCommit": true
      }
    }
  ],
  "apps": [
    {
      "id": "app_def456",
      "serverId": "server_abc123",
      "serverName": "production",
      "projectPath": "~/webapps/myapp",
      "branch": "main",
      "sshUser": "forge",
      "sshKey": "~/.ssh/id_rsa"
    }
  ]
}

Preset options capture repeatable deploy behavior so Zephyr can reuse the same maintenance, dirty-tree, and deploy-check preferences on later runs.

Project Directory Structure

Zephyr creates a .zephyr/ directory in your project with:

  • config.json - Project deployment configuration
  • deploy.lock - Lock file to prevent concurrent deployments
  • pending-tasks.json - Task snapshot for resuming failed deployments
  • {timestamp}.log - Log files for each deployment run

The .zephyr/ directory is automatically added to .gitignore.

Notes

  • If Zephyr reports "No upstream file changes detected", it means the remote repository already matches origin/<branch> after git fetch. In that case, Zephyr will only run git pull and skip all conditional maintenance tasks.
  • If Zephyr prompts to update local file dependencies (path-based deps outside the repo), it may also prompt to commit those updates before continuing.

Requirements

  • Node.js 16+
  • Git
  • SSH access to target servers