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 🙏

© 2025 – Pkg Stats / Ryan Hefner

deploypress

v1.0.0

Published

A comprehensive WordPress deployment tool with backup, retry logic, and network resilience

Downloads

4

Readme

DeployPress

A comprehensive WordPress deployment tool that handles file synchronization, database deployment, and automatic backups with network resilience and retry logic.

Features

  • 🚀 Interactive Configuration: Guided setup for all deployment parameters
  • 🔄 Automatic Backups: Creates and downloads backups before deployment
  • 🌐 Network Resilient: Retry logic for slow/unstable connections
  • 🛡️ Safe Deployment: Validates paths and tests connections before deployment
  • 📁 Smart File Exclusion: Default and custom file/directory exclusions
  • 🔐 Secure: Hidden password input and SSH key support
  • 📊 Progress Tracking: Colored output with clear status messages

Requirements

  • Node.js 14+
  • SSH access to target server
  • rsync, ssh, and scp commands available on your system
  • MySQL/MariaDB on target server

Installation & Usage

Option 1: Run directly with NPX (Recommended)

npx deploypress

Option 2: Global Installation

npm install -g deploypress
deploypress

Option 3: Local Development

git clone <repository-url>
cd deploypress
npm install
node index.js

What it does

  1. Configuration Collection: Interactively collects all necessary deployment parameters
  2. Validation: Validates local paths, SSH connections, and required files
  3. Backup Creation: Creates timestamped backups of remote files and database
  4. File Synchronization: Syncs local WordPress files to remote server with retry logic
  5. Database Deployment: Uploads and imports database with compression support
  6. Verification: Confirms successful deployment

Configuration Options

The tool will prompt you for:

  • Local project path: Your WordPress project directory
  • WordPress root: Relative path to WordPress files (e.g., 'public', 'wp', or '.')
  • Database file: Path to your .sql.gz database backup
  • SSH credentials: Username, host, port, and remote path
  • Database credentials: MySQL username, password, and database name
  • File exclusions: Additional files/directories to skip during sync

Default Exclusions

The following files/directories are excluded by default:

  • .git/
  • .github/
  • .idea/
  • node_modules/
  • vendor/
  • .DS_Store
  • *.log
  • wp-config.php
  • .htaccess

You can add additional exclusions during the configuration process.

Network Resilience

  • Timeout Protection: 5-minute timeout for operations
  • Retry Logic: Up to 3 attempts for failed operations
  • Partial Transfers: Resumes interrupted file transfers
  • Connection Testing: Validates SSH connectivity before deployment

Backup System

  • Creates timestamped backups on remote server
  • Downloads backups to local ./backups/ directory
  • Backs up both files and database
  • Safe rollback capability

Example Usage

# Run the deployment tool
npx deploypress

# Follow the interactive prompts:
# - Enter your local WordPress project path
# - Specify WordPress root directory (e.g., 'public')
# - Provide database file path (e.g., 'database/database.sql.gz')
# - Enter SSH connection details
# - Configure database credentials
# - Add any additional file exclusions
# - Confirm deployment and backup options

Troubleshooting

SSH Connection Issues

  • Ensure SSH key authentication is set up
  • Verify server hostname and port
  • Check firewall settings

File Sync Problems

  • Verify local file paths exist
  • Check remote directory permissions
  • Ensure sufficient disk space on remote server

Database Import Errors

  • Verify database credentials
  • Check MySQL user privileges
  • Ensure database exists on remote server
  • Validate .sql.gz file format

Network Timeouts

  • The tool automatically retries failed operations
  • For very slow connections, consider uploading database separately
  • Check network stability and bandwidth

Security Considerations

  • Passwords are hidden during input
  • SSH keys are preferred over password authentication
  • Database credentials are not logged or stored
  • Backups are created before any destructive operations

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Add tests if applicable
  5. Submit a pull request

License

MIT License - see LICENSE file for details

Support

For issues and questions:

  • Create an issue on GitHub
  • Check existing issues for solutions
  • Refer to troubleshooting section above

Note: Always test deployments on staging environments before deploying to production!