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

@marcuwynu23/jsdaffodil

v1.0.7

Published

A deploy automation framework like pydaffodil, built in Node.js

Readme

A lightweight, declarative deployment automation framework for Node.js, inspired by pydaffodil.

Built with:

  • 🧠 SSH automation using node-ssh
  • 🗃️ Step-by-step task execution
  • 🚀 Clean API for local/remote scripts
  • 💡 Dual support for CommonJS and ESM

📦 Installation

npm install @marcuwynu23/jsdaffodil

🚀 Usage

✅ ESM Example (type: module or .mjs)

// test.mjs or test.js (with "type": "module" in package.json)
import { Daffodil } from "@marcuwynu23/jsdaffodil";

const deployer = new Daffodil({
  remoteUser: "deployer", // Cloud server username
  remoteHost: "231.142.34.222", // Replace with your VPS or cloud IP
  remotePath: "/root/test", // Remote target path
});

const steps = [
  { step: "List local directory.", command: () => deployer.runCommand("ls -a") },
  { step: "List remote directory.", command: () => deployer.sshCommand("ls -a") },
];

await deployer.deploy(steps);

✅ CommonJS Example (.js or .cjs)

// test.cjs or test.js (without "type": "module")
const { Daffodil } = require("@marcuwynu23/jsdaffodil");

const deployer = new Daffodil({
  remoteUser: "deployer",
  remoteHost: "231.142.34.222",
  remotePath: "/root/test",
});

const steps = [
  { step: "List local directory.", command: () => deployer.runCommand("ls -a") },
  { step: "List remote directory.", command: () => deployer.sshCommand("ls -a") },
];

deployer.deploy(steps);

🛠 Features

  • 🔐 Multi-key SSH fallback (supports id_rsa, id_ed25519, etc.)
  • 📁 SCP-based file transfer with .scpignore support
  • 🟨 Ora & Chalk for styled terminal output
  • ✅ Progress bars for file transfers
  • ⚙️ CLI-ready architecture for future tooling

📂 Ignore List (.scpignore)

A .scpignore file is automatically created on first run.
Add filenames or patterns to exclude from SCP transfer.

node_modules
.env
*.log

🧪 Tips

  • Ensure your local SSH key is authorized for the remote user.
  • Use the same key that your CI/CD (e.g., GitHub Actions) uses, or add your own key to ~/.ssh/authorized_keys on the server.
  • Enable debug logs in your script by logging keys before connection if needed.

📄 License

MIT License