temporal-workflows-webpack-plugin weekly downloads statistics
By sytnikk · npm · Webpack plugins
Webpack plugin for bundling Temporal workflows with @temporalio/worker
temporal-workflows-webpack-plugin has 321 recorded weekly downloads on npm, a decrease of 35.7% over the past 30 days, ranking #1610 of 2,322 tracked listings.
About temporal-workflows-webpack-plugin
Temporal Workflows Webpack Plugin
<div align="center"> <a href="https://www.npmjs.com/package/temporal-workflows-webpack-plugin"> <img src="https://img.shields.io/npm/v/temporal-workflows-webpack-plugin.svg?style=flat-square" alt="npm version" /> </a> <a href="https://www.npmjs.com/package/temporal-workflows-webpack-plugin"> <img src="https://img.shields.io/npm/dm/temporal-workflows-webpack-plugin.svg?style=flat-square" alt="npm downloads" /> </a> <a href="https://github.com/sytnikk/temporal-workflows-webpack-plugin/blob/main/LICENSE"> <img src="https://img.shields.io/npm/l/temporal-workflows-webpack-plugin.svg?style=flat-square" alt="license" /> </a> <a href="https://github.com/sytnikk/temporal-workflows-webpack-plugin/actions"> <img src="https://img.shields.io/github/actions/workflow/status/sytnikk/temporal-workflows-webpack-plugin/ci.yml?branch=main&style=flat-square" alt="build status" /> </a> <img src="https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=flat-square" alt="semantic-release" /> <a href="http://makeapullrequest.com"> <img src="https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square" alt="PR's Welcome" /> </a> </div> <br />Webpack plugin for automatic bundling of Temporal workflows using @temporalio/worker.
Why do you need this?
Temporal workflows require special bundling via bundleWorkflowCode because they:
- Run in an isolated V8 isolate
- Cannot use Node.js APIs directly
- Must be deterministic
Typically, developers handle this manually through separate npm scripts. This plugin integrates the bundling process directly into your webpack build pipeline.
Features
- ✅ Automatic bundling of workflows during project build
- ⚡ Watch mode with incremental rebuilds
- 🎯 Full support for all
BundleOptionsfrom@temporalio/worker - 🔧 Flexible configuration - global and per-workflow options
- 📦 TypeScript typings out of the box
- 🚀 Zero config for simple cases
Installation
Prerequisites: This plugin requires @temporalio/worker to be installed in your project.
# Install the plugin as a dev dependency
npm install --save-dev temporal-workflows-webpack-plugin
# If you don't have @temporalio/worker yet, install it as well
npm install @temporalio/worker
# or with yarn
yarn add -D temporal-workflows-webpack-plugin
yarn add @temporalio/worker
# or with pnpm
pnpm add -D temporal-workflows-webpack-plugin
pnpm add @temporalio/worker
Quick Start
// webpack.config.js
const TemporalWorkflowsPlugin = require('temporal-workflows-webpack-plugin');
module.exports = {
// ... your webpack config
plugins: [
new TemporalWorkflowsPlugin({
defaultOutputDir: './dist/workflows',
workflows: [
{ workflowsPath: './src/workflows' }
]
})
]
};
This will create ./dist/workflows/workflows.js with all workflows from ./src/workflows.
Usage
Basic Configuration
new TemporalWorkflowsPlugin({
defaultOutputDir: './dist/workflows',
workflows: [
{
workflowsPath: './src/workflows/orders',
name: 'order-workflows'
},
{
workflowsPath: './src/workflows/payments',
name: 'payment-workflows'
}
]
})
With Temporal Bundler Options
new TemporalWorkflowsPlugin({
defaultOutputDir: './dist/workflows',
// Global options apply to all workflows
globalBundleOptions: {
ignoreModules: ['some-problematic-module'],
workflowInterceptorModules: ['./src/workflow-interceptors']
},
workflows: [
{
workflowsPath: './src/workflows/critical',
name: 'critical',
// Local options override global ones
bundleOptions: {
webpackConfigHook: (config) => ({
...config,
optimization: { minimize: true }
})
}
}
]
})
TypeScript
import TemporalWorkflowsPlugin, {
TemporalWorkflowsPluginOptions
} from 'temporal-workflows-webpack-plugin';
import { Configuration } from 'webpack';
const config: Configuration = {
plugins: [
new TemporalWorkflowsPlugin({
defaultOutputDir: './dist/workflows',
workflows: [
{ workflowsPath: './src/workflows' }
]
} as TemporalWorkflowsPluginOptions)
]
};
API
TemporalWorkflowsPluginOptions
| Option | Type | Required | Description |
|---|---|---|---|
defaultOutputDir | string | ✅ | Default directory for output files |
workflows | WorkflowBundleConfig[] | ✅ | List of workflows to bundle |
globalBundleOptions | Omit<BundleOptions, 'workflowsPath'> | ❌ | Global options for all workflows |
WorkflowBundleConfig
| Option | Type | Required | Description |
|---|---|---|---|
workflowsPath | string | ✅ | Path to entry file with workflows |
name | string | ❌ | Output file name (without .js) |
outputPath | string | ❌ | Full path to output file |
bundleOptions | Omit<BundleOptions, 'workflowsPath'> | ❌ | Bundler options for this workflow |
BundleOptions (from @temporalio/worker)
See the full list of options in Temporal documentation.
Main options:
ignoreModules- modules to exclude from bundlewebpackConfigHook- function to modify webpack configworkflowInterceptorModules- paths to workflow interceptorspayloadConverterPath- path to custom payload converterfailureConverterPath- path to custom failure converter
Examples
Simple Project
new TemporalWorkflowsPlugin({
defaultOutputDir: './dist/workflows',
workflows: [
{ workflowsPath: './src/workflows' }
]
})
Multiple Workflows…
Description from the npm listing.
- webpack
- webpack-plugin
- temporal
- temporalio
- workflow
- bundler
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (122)Similar npm Webpack plugins plugins
All 20 temporal-workflows-webpack-plugin alternativesData source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/temporal-workflows-webpack-plugin. First seen Oct 16, 2026; last successful collection Oct 20, 2026. See the methodology.