Bas van den Aakster 8ed647587b Fix ES module imports to eliminate runtime require() calls
- Changed node-cron import from namespace import to default import
- Added GitHub workflow for automatic npm publishing on version changes
- Ensured all build output uses pure ES module imports without CommonJS remnants

This fixes the runtime error: "ReferenceError: require is not defined in ES module scope"

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-31 17:58:46 +02:00
2025-08-29 18:11:36 +02:00
2025-08-29 18:11:36 +02:00
2025-08-29 18:11:36 +02:00
2025-08-29 18:11:36 +02:00
2025-08-29 18:11:36 +02:00
2025-08-29 18:11:36 +02:00
2025-08-29 18:11:36 +02:00
2025-08-29 18:11:36 +02:00
2025-08-31 17:14:40 +02:00
2025-08-31 17:14:40 +02:00
2025-08-29 18:11:36 +02:00
2025-08-29 18:11:36 +02:00

@xtr-dev/payload-automation

A comprehensive workflow automation plugin for PayloadCMS 3.x that enables visual workflow building, execution tracking, and parallel processing.

⚠️ Pre-release Warning: This package is currently in active development (v0.0.x). Breaking changes may occur before v1.0.0. Not recommended for production use.

Features

  • 🔄 Visual Workflow Builder - Create complex workflows with drag-and-drop interface
  • Parallel Execution - Smart dependency resolution for optimal performance
  • 🎯 Multiple Triggers - Collection hooks, webhooks, manual execution
  • 📊 Execution Tracking - Complete history and monitoring of workflow runs
  • 🔧 Extensible Steps - HTTP requests, document CRUD, email notifications
  • 🔍 JSONPath Integration - Dynamic data interpolation and transformation

Installation

npm install @xtr-dev/payload-automation
# or
pnpm add @xtr-dev/payload-automation
# or
yarn add @xtr-dev/payload-automation

Quick Start

import { buildConfig } from 'payload'
import { payloadAutomation } from '@xtr-dev/payload-automation'

export default buildConfig({
  // ... your config
  plugins: [
    payloadAutomation({
      collections: ['posts', 'users'], // Collections to monitor
      globals: ['settings'],           // Globals to monitor
      enabled: true,
    }),
  ],
})

Step Types

  • HTTP Request - Make external API calls
  • Create Document - Create PayloadCMS documents
  • Read Document - Query documents with filters
  • Update Document - Modify existing documents
  • Delete Document - Remove documents
  • Send Email - Send notifications via PayloadCMS email

Data Resolution

Use JSONPath to access workflow data:

  • $.trigger.doc.id - Access trigger document
  • $.steps.stepName.output - Use previous step outputs
  • $.context - Access workflow context

Requirements

  • PayloadCMS ^3.45.0
  • Node.js ^18.20.2 || >=20.9.0
  • pnpm ^9 || ^10

Documentation

Full documentation coming soon. For now, explore the development environment in the repository for examples and patterns.

License

MIT

Description
No description provided
Readme 594 KiB
Languages
TypeScript 98.6%
JavaScript 1.4%