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

@pixlcore/xyplug-replicate

v1.0.2

Published

Replicate media generation plugin for the xyOps workflow automation system.

Readme

Generate images, video, or audio using the Replicate API, and return the results to the xyOps Workflow Automation System as attached job files.

Requirements

  • Node.js + npx
    • Required to run the plugin via npx.
  • git
    • Required if you run the plugin via the GitHub npx install path.

Environment Variables

Create a Secret Vault in xyOps and assign this Plugin to it. Add the following variable:

  • REPLICATE_API_TOKEN

Plugin Parameters

The plugin uses a Tool Select menu to switch between three modes: Generate Images, Generate Video, and Generate Audio. Each tool shares a Custom JSON field that can include model-specific parameters.

Generate Images

  • Replicate Model: Model or version identifier. Examples:
    • google/nano-banana-pro
    • owner/model:version_id
    • version_id
  • Prompt: Text prompt for the image.
  • Width / Height: Optional output size in pixels (if supported by the model).
  • Num Outputs: Optional number of images to generate.
  • Seed: Optional seed for reproducible results.
  • Custom JSON: Optional JSON object merged into the model input.
  • Timeout (ms): Overall timeout for the prediction.

Default Custom JSON includes "image_input": "files:*" so any input files passed to the job can be mapped into image_input.

Generate Video

  • Replicate Model: Default google/veo-3.1.
  • Prompt: Text prompt for the video.
  • Duration: Duration in seconds (model dependent).
  • Seed: Optional seed for reproducible results.
  • Custom JSON: Optional JSON object merged into the model input (pre-filled with Veo defaults and file-mapping placeholders).
  • Timeout (ms): Overall timeout for the prediction.

Generate Audio

  • Replicate Model: Default stability-ai/stable-audio-2.5.
  • Prompt: Text prompt for the audio.
  • Duration: Duration in seconds (model dependent).
  • Seed: Optional seed for reproducible results.
  • Custom JSON: Optional JSON object merged into the model input.
  • Timeout (ms): Overall timeout for the prediction.

File Inputs via Custom JSON

Any Custom JSON value that starts with files: is treated as a glob against the job input files. The plugin uploads matching files to Replicate and replaces the value with the resulting URL(s). If no files match, the value becomes an empty array.

Example (video reference images):

{
	"reference_images": "files:*.png",
	"image": "files:first-frame.jpg",
	"last_frame": ""
}

Usage Example

Example parameters for Generate Images:

Tool Select: Generate Images
Model: google/nano-banana-pro
Prompt: A playful robot barista pouring latte art in a sunlit cafe.
Width: 1024
Height: 1024
Num Outputs: 2
Seed: 12345

Output

The generated media is downloaded from Replicate and attached to the job as files. The job data payload includes the prediction ID, model, metrics, and full output payload from Replicate.

Local Testing

When invoked by xyOps the script expects JSON input via STDIN. You can simulate this locally by echoing a JSON payload into the script.

Example input:

{
	"params": {
		"tool": "image",
		"model": "google/nano-banana-pro",
		"prompt": "A sleek drone hovering over a foggy forest at sunrise.",
		"width": 1024,
		"height": 1024,
		"num_outputs": 1
	}
}

Example command:

export REPLICATE_API_TOKEN="your-token-here"
echo '{ "params": { "tool": "image", "model": "google/nano-banana-pro", "prompt": "A sleek drone hovering over a foggy forest at sunrise." } }' | node index.js

Data Collection

This plugin does not collect or transmit any data outside of the Replicate API. Replicate may collect usage metrics according to its own terms.

License

MIT