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

create-jedi-ops

v0.0.1

Published

CLI tool for creating worker queue platforms on Cloudflare Workers

Readme

Jedi-Ops

    ____          ___       ____              
   / / /___  ____/ (_)___  / __ \____  _____  
  / / / __ \/ __  / / __ \/ / / / __ \/ ___/  
 / / / /_/ / /_/ / / /_/ / /_/ / /_/ (__  )   
/_/_/\____/\__,_/_/\____/\____/ .___/____/    
                             /_/            
                      Worker Queue Platform

A command-line interface (CLI) tool for creating worker queue platforms on Cloudflare Workers. Jedi-Ops brings the Force to your serverless applications.

Overview

Jedi-Ops simplifies the development of serverless applications with worker queues on Cloudflare Workers. It scaffolds projects with pre-configured components, including:

  • Cloudflare Queues for task management
  • Hono for secure webhook integrations
  • Optional Upstash Redis for pub/sub messaging

Installation

Using npx (without installation)

# 🚀 Recommended - no installation needed
npx create-jedi-ops@latest

Global Installation

# With bun (recommended for speed - uses Rust runtime)
bun install -g create-jedi-ops

# With npm
npm install -g create-jedi-ops

💡 Why Bun? Bun uses a Rust-based JavaScript runtime that's significantly faster than Node.js for dependency installation and project startup. It's particularly well-suited for Cloudflare Workers development.

Usage

Creating a New Project

# Interactive setup (recommended)
npx create-jedi-ops@latest

# Or if installed globally
jedi-ops init

The CLI will guide you through an interactive setup process to configure:

  • Project name and location
  • Cloudflare Queues enablement
  • Upstash Redis integration
  • Authentication key generation

Command Options

# Create with specific options
npx create-jedi-ops@latest -n my-jedi-project -d ./projects/jedi

# Skip prompts and use defaults
npx create-jedi-ops@latest -y

Available options:

  • -n, --name <name>: Project name (default: "jedi-ops-project")
  • -d, --directory <directory>: Target directory (default: ./)
  • -y, --yes: Skip prompts and use defaults

Adding Components

Once you have a project, you can add new components:

npx jedi-ops add queue-consumer --name my-processor

This will:

  1. Create a new queue consumer worker
  2. Update the wrangler.toml file with necessary queue bindings

Available components:

  • queue-consumer: Generic queue consumer worker
  • dispatch-processor: Specialized queue consumer for dispatching tasks

Project Structure

The generated project includes:

your-project/
├── package.json
├── wrangler.toml
├── tsconfig.json
├── src/
│   └── index.ts        # Main worker with Hono for webhooks and queue production
└── workers/
    └── dispatch-processor/ # Queue consumer worker
        └── index.ts

Features

  • Cloudflare Queues: Pre-configured for background job processing
  • Webhook Endpoints: Secured with authkey authentication
  • TypeScript: Full type safety with Cloudflare Workers types
  • Pub/Sub Messaging: Optional Upstash Redis integration

Development of Jedi-Ops CLI

Prerequisites

  • Node.js v16+ or Bun (recommended)
  • Cloudflare Workers knowledge

Building the CLI

# Install dependencies
bun install  # or npm install

# Build the CLI
bun run build  # or npm run build

Local Testing

# Link for local development
bun link  # or npm link

# Test with a new project
jedi-ops init --name test-project

Sample Projects

Jedi-Ops works well for various async processing needs:

  • Event processing pipelines
  • Background job processing
  • Data transformation workflows
  • Notification systems
  • Email processing/delivery
  • Webhook handling and distribution

The Force is Strong with This One

Jedi-Ops simplifies building serverless applications with Cloudflare Workers. By combining the power of queue processing, webhook handling, and pub/sub messaging, you can build powerful applications that run at the edge.

"Do. Or do not. There is no try." - Master Yoda

License

MIT