Skip to content

[web] Disable Vite minification in @workflow/web to fix Socket "obfuscated code" alert#1768

Merged
karthikscale3 merged 85 commits intomainfrom
karthik/reduce-socket-score
Apr 16, 2026
Merged

[web] Disable Vite minification in @workflow/web to fix Socket "obfuscated code" alert#1768
karthikscale3 merged 85 commits intomainfrom
karthik/reduce-socket-score

Conversation

@karthikscale3
Copy link
Copy Markdown
Collaborator

Summary

  • Disables Vite's esbuild minification (minify: false) in @workflow/web's production build so the published npm package contains readable JavaScript instead of single-line minified mega-bundles

Context

Socket Security flags @workflow/web as 91% likely obfuscated, triggering high-severity warnings on downstream PRs (e.g. purduehackers/wack-hacker#62). This is a false positive — the package ships standard Vite production bundles, but Socket's heuristics flag them because:

  • Client chunks had single lines up to 198,000 characters (minified React, Mermaid, XYFlow)
  • All variable names were mangled to single characters
  • Whitespace was stripped entirely

Impact

After this change, client bundle max line lengths drop from 100K–200K chars to 1K–3K chars, and all variable names remain human-readable:

Chunk Max line before Max line after Gzip before Gzip after
mermaid 198,399 15,490 250 KB 348 KB
workflow-graph-viewer 113,225 2,722 97 KB 137 KB
entry.client 122,621 1,205 58 KB 95 KB
run-detail 114,887 1,493 42 KB 59 KB

The npm tarball grows from ~1.6 MB to ~2.1 MB. Gzip sizes (what browsers actually download) increase ~35%, which is negligible for a self-hosted observability tool. The SSR server bundle was already unminified by default and is unchanged.

The remaining long lines (72K in the server build, 15K in mermaid) are embedded WASM base64 data and Unicode lookup tables from bundled dependencies — not something minification controls.

@vercel
Copy link
Copy Markdown
Contributor

vercel bot commented Apr 16, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
example-nextjs-workflow-turbopack Ready Ready Preview, Comment Apr 16, 2026 5:27am
example-nextjs-workflow-webpack Ready Ready Preview, Comment Apr 16, 2026 5:27am
example-workflow Ready Ready Preview, Comment Apr 16, 2026 5:27am
workbench-astro-workflow Ready Ready Preview, Comment Apr 16, 2026 5:27am
workbench-express-workflow Ready Ready Preview, Comment Apr 16, 2026 5:27am
workbench-fastify-workflow Ready Ready Preview, Comment Apr 16, 2026 5:27am
workbench-hono-workflow Ready Ready Preview, Comment Apr 16, 2026 5:27am
workbench-nitro-workflow Ready Ready Preview, Comment Apr 16, 2026 5:27am
workbench-nuxt-workflow Ready Ready Preview, Comment Apr 16, 2026 5:27am
workbench-sveltekit-workflow Ready Ready Preview, Comment Apr 16, 2026 5:27am
workbench-vite-workflow Ready Ready Preview, Comment Apr 16, 2026 5:27am
workflow-docs Ready Ready Preview, Comment, Open in v0 Apr 16, 2026 5:27am
workflow-swc-playground Ready Ready Preview, Comment Apr 16, 2026 5:27am
workflow-web Ready Ready Preview, Comment Apr 16, 2026 5:27am

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Apr 16, 2026

🦋 Changeset detected

Latest commit: fc3bdb6

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 17 packages
Name Type
@workflow/web Patch
@workflow/cli Patch
workflow Patch
@workflow/world-testing Patch
@workflow/ai Patch
@workflow/core Patch
@workflow/web-shared Patch
@workflow/builders Patch
@workflow/next Patch
@workflow/nitro Patch
@workflow/vitest Patch
@workflow/astro Patch
@workflow/nest Patch
@workflow/rollup Patch
@workflow/sveltekit Patch
@workflow/vite Patch
@workflow/nuxt Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@karthikscale3 karthikscale3 marked this pull request as ready for review April 16, 2026 05:25
@karthikscale3 karthikscale3 requested a review from a team as a code owner April 16, 2026 05:25
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 16, 2026

📊 Benchmark Results

📈 Comparing against baseline from main branch. Green 🟢 = faster, Red 🔺 = slower.

workflow with no steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
💻 Local 🥇 Express 0.035s (-1.4%) 1.005s (~) 0.970s 10 1.00x
💻 Local Nitro 0.045s (+24.7% 🔺) 1.006s (~) 0.961s 10 1.30x
💻 Local Next.js (Turbopack) 0.047s 1.006s 0.959s 10 1.35x
🐘 Postgres Next.js (Turbopack) 0.057s 1.011s 0.954s 10 1.64x
🐘 Postgres Nitro 0.059s (-3.0%) 1.011s (~) 0.952s 10 1.71x
🐘 Postgres Express 0.060s (-17.6% 🟢) 1.011s (-0.9%) 0.952s 10 1.73x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 0.327s (-6.3% 🟢) 2.389s (+10.6% 🔺) 2.062s 10 1.00x
▲ Vercel Nitro 0.347s (+43.4% 🔺) 1.996s (-2.4%) 1.649s 10 1.06x
▲ Vercel Next.js (Turbopack) ⚠️ missing - - - -

🔍 Observability: Express | Nitro

workflow with 1 step

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
💻 Local 🥇 Express 1.099s (~) 2.006s (~) 0.907s 10 1.00x
💻 Local Next.js (Turbopack) 1.124s 2.006s 0.882s 10 1.02x
💻 Local Nitro 1.129s (+2.5%) 2.007s (~) 0.878s 10 1.03x
🐘 Postgres Next.js (Turbopack) 1.136s 2.010s 0.874s 10 1.03x
🐘 Postgres Express 1.139s (-1.0%) 2.009s (~) 0.870s 10 1.04x
🐘 Postgres Nitro 1.148s (+0.8%) 2.011s (~) 0.863s 10 1.04x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 2.287s (~) 4.008s (+0.7%) 1.721s 10 1.00x
▲ Vercel Express 2.288s (+20.1% 🔺) 4.149s (+15.1% 🔺) 1.862s 10 1.00x
▲ Vercel Next.js (Turbopack) ⚠️ missing - - - -

🔍 Observability: Nitro | Express

workflow with 10 sequential steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
💻 Local 🥇 Express 10.640s (~) 11.022s (~) 0.382s 3 1.00x
💻 Local Next.js (Turbopack) 10.806s 11.024s 0.218s 3 1.02x
🐘 Postgres Express 10.849s (-1.2%) 11.023s (-2.9%) 0.175s 3 1.02x
🐘 Postgres Nitro 10.870s (~) 11.019s (~) 0.149s 3 1.02x
🐘 Postgres Next.js (Turbopack) 10.890s 11.027s 0.137s 3 1.02x
💻 Local Nitro 10.972s (+3.0%) 11.024s (~) 0.052s 3 1.03x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 20.853s (+14.2% 🔺) 22.698s (+10.2% 🔺) 1.845s 2 1.00x
▲ Vercel Express 21.366s (+25.8% 🔺) 23.184s (+20.6% 🔺) 1.818s 2 1.02x
▲ Vercel Next.js (Turbopack) ⚠️ missing - - - -

🔍 Observability: Nitro | Express

workflow with 25 sequential steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
💻 Local 🥇 Express 14.192s (~) 15.029s (~) 0.837s 4 1.00x
🐘 Postgres Next.js (Turbopack) 14.417s 15.025s 0.608s 4 1.02x
🐘 Postgres Express 14.437s (-1.2%) 15.023s (~) 0.586s 4 1.02x
🐘 Postgres Nitro 14.509s (-0.5%) 15.024s (~) 0.514s 4 1.02x
💻 Local Next.js (Turbopack) 14.594s 15.030s 0.436s 4 1.03x
💻 Local Nitro 15.068s (+5.8% 🔺) 16.032s (+6.7% 🔺) 0.964s 4 1.06x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 38.303s (+15.6% 🔺) 40.054s (+13.8% 🔺) 1.751s 2 1.00x
▲ Vercel Nitro 38.429s (+20.8% 🔺) 40.130s (+19.1% 🔺) 1.701s 2 1.00x
▲ Vercel Next.js (Turbopack) ⚠️ missing - - - -

🔍 Observability: Express | Nitro

workflow with 50 sequential steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Next.js (Turbopack) 13.841s 14.020s 0.179s 7 1.00x
🐘 Postgres Nitro 13.993s (~) 14.594s (+4.1%) 0.601s 7 1.01x
🐘 Postgres Express 14.019s (-2.2%) 14.592s (-2.9%) 0.573s 7 1.01x
💻 Local Express 14.909s (~) 15.028s (~) 0.119s 6 1.08x
💻 Local Next.js (Turbopack) 16.099s 16.864s 0.766s 6 1.16x
💻 Local Nitro 16.682s (+11.5% 🔺) 17.031s (+10.9% 🔺) 0.348s 6 1.21x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 56.482s (+7.5% 🔺) 59.687s (+10.2% 🔺) 3.205s 2 1.00x
▲ Vercel Nitro 59.477s (+9.7% 🔺) 61.609s (+9.2% 🔺) 2.132s 2 1.05x
▲ Vercel Next.js (Turbopack) ⚠️ missing - - - -

🔍 Observability: Express | Nitro

Promise.all with 10 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Next.js (Turbopack) 1.225s 2.010s 0.785s 15 1.00x
🐘 Postgres Nitro 1.261s (~) 2.009s (~) 0.748s 15 1.03x
🐘 Postgres Express 1.267s (-2.0%) 2.009s (~) 0.743s 15 1.03x
💻 Local Express 1.484s (+1.7%) 2.005s (~) 0.521s 15 1.21x
💻 Local Next.js (Turbopack) 1.500s 2.006s 0.506s 15 1.22x
💻 Local Nitro 1.549s (+4.9%) 2.007s (~) 0.457s 15 1.26x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 2.443s (-12.0% 🟢) 3.705s (-15.0% 🟢) 1.262s 9 1.00x
▲ Vercel Express 2.469s (-4.9%) 4.240s (+0.6%) 1.771s 8 1.01x
▲ Vercel Next.js (Turbopack) ⚠️ missing - - - -

🔍 Observability: Nitro | Express

Promise.all with 25 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 2.327s (~) 3.008s (~) 0.682s 10 1.00x
🐘 Postgres Express 2.361s (~) 3.009s (~) 0.648s 10 1.01x
🐘 Postgres Next.js (Turbopack) 2.374s 3.009s 0.636s 10 1.02x
💻 Local Express 2.588s (-8.9% 🟢) 3.007s (-3.2%) 0.419s 10 1.11x
💻 Local Next.js (Turbopack) 3.037s 3.453s 0.416s 9 1.31x
💻 Local Nitro 3.083s (+20.4% 🔺) 3.887s (+29.2% 🔺) 0.804s 8 1.32x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 3.180s (+26.8% 🔺) 5.164s (+35.5% 🔺) 1.983s 6 1.00x
▲ Vercel Nitro 3.714s (+30.1% 🔺) 5.351s (+17.4% 🔺) 1.636s 7 1.17x
▲ Vercel Next.js (Turbopack) ⚠️ missing - - - -

🔍 Observability: Express | Nitro

Promise.all with 50 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 3.465s (~) 4.011s (~) 0.546s 8 1.00x
🐘 Postgres Express 3.509s (+0.8%) 4.013s (~) 0.503s 8 1.01x
🐘 Postgres Next.js (Turbopack) 3.670s 4.009s 0.340s 8 1.06x
💻 Local Express 6.689s (-5.7% 🟢) 7.015s (-12.5% 🟢) 0.327s 5 1.93x
💻 Local Next.js (Turbopack) 8.336s 8.767s 0.431s 4 2.41x
💻 Local Nitro 8.472s (+21.9% 🔺) 9.026s (+20.1% 🔺) 0.554s 4 2.44x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 4.215s (+21.5% 🔺) 5.970s (+15.9% 🔺) 1.756s 6 1.00x
▲ Vercel Express 4.721s (+64.7% 🔺) 7.610s (+73.0% 🔺) 2.889s 5 1.12x
▲ Vercel Next.js (Turbopack) ⚠️ missing - - - -

🔍 Observability: Nitro | Express

Promise.race with 10 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Next.js (Turbopack) 1.214s 2.009s 0.795s 15 1.00x
🐘 Postgres Nitro 1.267s (+0.6%) 2.008s (~) 0.741s 15 1.04x
🐘 Postgres Express 1.273s (+1.4%) 2.009s (~) 0.736s 15 1.05x
💻 Local Express 1.474s (~) 2.006s (~) 0.532s 15 1.21x
💻 Local Next.js (Turbopack) 1.535s 2.005s 0.470s 15 1.27x
💻 Local Nitro 1.556s (+2.6%) 2.006s (~) 0.449s 15 1.28x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 2.205s (-10.1% 🟢) 3.836s (-5.5% 🟢) 1.631s 9 1.00x
▲ Vercel Express 2.339s (+11.3% 🔺) 3.878s (+7.0% 🔺) 1.539s 8 1.06x
▲ Vercel Next.js (Turbopack) ⚠️ missing - - - -

🔍 Observability: Nitro | Express

Promise.race with 25 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 2.324s (~) 3.010s (~) 0.686s 10 1.00x
🐘 Postgres Next.js (Turbopack) 2.350s 3.008s 0.658s 10 1.01x
🐘 Postgres Express 2.364s (+1.2%) 3.011s (~) 0.647s 10 1.02x
💻 Local Express 2.714s (+0.6%) 3.007s (~) 0.293s 10 1.17x
💻 Local Next.js (Turbopack) 2.959s 3.454s 0.495s 9 1.27x
💻 Local Nitro 3.126s (+13.0% 🔺) 3.886s (+25.0% 🔺) 0.761s 8 1.34x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 2.945s (-17.2% 🟢) 4.593s (-14.2% 🟢) 1.647s 7 1.00x
▲ Vercel Express 3.106s (+8.6% 🔺) 4.938s (+13.8% 🔺) 1.832s 7 1.05x
▲ Vercel Next.js (Turbopack) ⚠️ missing - - - -

🔍 Observability: Nitro | Express

Promise.race with 50 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 3.464s (-0.6%) 4.009s (~) 0.545s 8 1.00x
🐘 Postgres Express 3.524s (+1.2%) 4.013s (~) 0.489s 8 1.02x
🐘 Postgres Next.js (Turbopack) 3.638s 4.011s 0.373s 8 1.05x
💻 Local Express 7.587s (-0.8%) 8.016s (~) 0.430s 4 2.19x
💻 Local Next.js (Turbopack) 8.399s 8.767s 0.369s 4 2.42x
💻 Local Nitro 9.505s (+27.6% 🔺) 10.025s (+25.1% 🔺) 0.520s 3 2.74x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 3.551s (-12.1% 🟢) 5.755s (-5.0% 🟢) 2.205s 6 1.00x
▲ Vercel Express 3.688s (-18.0% 🟢) 5.116s (-15.0% 🟢) 1.427s 6 1.04x
▲ Vercel Next.js (Turbopack) ⚠️ missing - - - -

🔍 Observability: Nitro | Express

workflow with 10 sequential data payload steps (10KB)

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
💻 Local 🥇 Express 0.704s (-1.0%) 1.004s (-1.6%) 0.300s 60 1.00x
🐘 Postgres Next.js (Turbopack) 0.766s 1.023s 0.258s 59 1.09x
🐘 Postgres Nitro 0.808s (-1.0%) 1.006s (-1.6%) 0.198s 60 1.15x
💻 Local Next.js (Turbopack) 0.836s 1.004s 0.169s 60 1.19x
🐘 Postgres Express 0.914s (+8.0% 🔺) 1.079s (+5.5% 🔺) 0.166s 56 1.30x
💻 Local Nitro 0.990s (+42.4% 🔺) 1.309s (+30.4% 🔺) 0.319s 46 1.41x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 11.206s (+24.3% 🔺) 12.733s (+15.2% 🔺) 1.527s 5 1.00x
▲ Vercel Express 13.533s (+39.8% 🔺) 16.635s (+45.1% 🔺) 3.103s 4 1.21x
▲ Vercel Next.js (Turbopack) ⚠️ missing - - - -

🔍 Observability: Nitro | Express

workflow with 25 sequential data payload steps (10KB)

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Next.js (Turbopack) 1.890s 2.052s 0.162s 44 1.00x
🐘 Postgres Nitro 1.898s (-1.7%) 2.030s (-3.4%) 0.132s 45 1.00x
🐘 Postgres Express 2.178s (+4.5%) 3.010s (+2.2%) 0.832s 30 1.15x
💻 Local Express 2.264s (~) 3.007s (~) 0.744s 30 1.20x
💻 Local Next.js (Turbopack) 2.691s 3.008s 0.317s 30 1.42x
💻 Local Nitro 3.041s (+34.6% 🔺) 3.884s (+29.1% 🔺) 0.844s 24 1.61x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 30.949s (+2.0%) 32.873s (+1.5%) 1.924s 3 1.00x
▲ Vercel Nitro 31.256s (+3.7%) 32.625s (+0.6%) 1.370s 3 1.01x
▲ Vercel Next.js (Turbopack) ⚠️ missing - - - -

🔍 Observability: Express | Nitro

workflow with 50 sequential data payload steps (10KB)

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Next.js (Turbopack) 3.802s 4.008s 0.206s 30 1.00x
🐘 Postgres Nitro 3.864s (~) 4.010s (-2.4%) 0.145s 30 1.02x
🐘 Postgres Express 4.404s (+6.9% 🔺) 5.012s (+2.5%) 0.609s 24 1.16x
💻 Local Express 7.419s (+1.3%) 8.015s (~) 0.596s 15 1.95x
💻 Local Next.js (Turbopack) 8.788s 9.019s 0.230s 14 2.31x
💻 Local Nitro 9.185s (+24.9% 🔺) 9.865s (+23.1% 🔺) 0.679s 13 2.42x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 86.134s (-27.3% 🟢) 87.941s (-27.0% 🟢) 1.807s 2 1.00x
▲ Vercel Express 89.094s (-32.0% 🟢) 91.165s (-31.6% 🟢) 2.071s 2 1.03x
▲ Vercel Next.js (Turbopack) ⚠️ missing - - - -

🔍 Observability: Nitro | Express

workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Next.js (Turbopack) 0.248s 1.007s 0.759s 60 1.00x
🐘 Postgres Nitro 0.279s (-3.1%) 1.007s (~) 0.728s 60 1.12x
🐘 Postgres Express 0.306s (+7.3% 🔺) 1.008s (~) 0.702s 60 1.23x
💻 Local Next.js (Turbopack) 0.569s 1.004s 0.436s 60 2.30x
💻 Local Nitro 0.586s (+3.5%) 1.021s (+1.7%) 0.435s 59 2.37x
💻 Local Express 0.694s (+16.1% 🔺) 1.125s (+10.2% 🔺) 0.430s 58 2.80x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 2.069s (+17.9% 🔺) 4.082s (+16.6% 🔺) 2.013s 15 1.00x
▲ Vercel Express 2.294s (+42.9% 🔺) 3.994s (+21.5% 🔺) 1.700s 16 1.11x
▲ Vercel Next.js (Turbopack) ⚠️ missing - - - -

🔍 Observability: Nitro | Express

workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Next.js (Turbopack) 0.483s 1.006s 0.523s 90 1.00x
🐘 Postgres Nitro 0.487s (-3.4%) 1.006s (~) 0.519s 90 1.01x
🐘 Postgres Express 0.527s (+6.7% 🔺) 1.008s (~) 0.480s 90 1.09x
💻 Local Express 2.411s (-2.1%) 3.008s (~) 0.597s 30 4.99x
💻 Local Nitro 2.596s (+6.8% 🔺) 3.009s (~) 0.413s 30 5.38x
💻 Local Next.js (Turbopack) 2.654s 3.009s 0.354s 30 5.49x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 2.548s (-5.8% 🟢) 4.598s (+8.8% 🔺) 2.051s 20 1.00x
▲ Vercel Nitro 2.818s (+3.2%) 4.695s (+5.6% 🔺) 1.877s 20 1.11x
▲ Vercel Next.js (Turbopack) ⚠️ missing - - - -

🔍 Observability: Express | Nitro

workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Next.js (Turbopack) 0.750s 1.007s 0.257s 120 1.00x
🐘 Postgres Nitro 0.789s (-1.6%) 1.007s (~) 0.218s 120 1.05x
🐘 Postgres Express 0.871s (+7.2% 🔺) 1.038s (+2.0%) 0.167s 116 1.16x
💻 Local Express 10.392s (-1.8%) 11.027s (~) 0.634s 11 13.86x
💻 Local Next.js (Turbopack) 11.045s 11.663s 0.618s 11 14.73x
💻 Local Nitro 11.349s (+9.9% 🔺) 12.029s (+10.0% 🔺) 0.681s 10 15.13x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 7.097s (+2.5%) 9.183s (+4.1%) 2.086s 15 1.00x
▲ Vercel Nitro 7.621s (+12.4% 🔺) 9.328s (+8.3% 🔺) 1.707s 13 1.07x
▲ Vercel Next.js (Turbopack) ⚠️ missing - - - -

🔍 Observability: Express | Nitro

Stream Benchmarks (includes TTFB metrics)
workflow with stream

💻 Local Development

World Framework Workflow Time TTFB Slurp Wall Time Overhead Samples vs Fastest
💻 Local 🥇 Express 0.143s (+1.1%) 1.004s (~) 0.010s (+3.2%) 1.016s (~) 0.873s 10 1.00x
💻 Local Next.js (Turbopack) 0.174s 1.003s 0.013s 1.019s 0.845s 10 1.22x
🐘 Postgres Next.js (Turbopack) 0.190s 1.000s 0.001s 1.009s 0.819s 10 1.33x
🐘 Postgres Express 0.192s (-10.9% 🟢) 0.999s (~) 0.001s (-31.3% 🟢) 1.009s (~) 0.817s 10 1.35x
🐘 Postgres Nitro 0.204s (-4.6%) 0.994s (~) 0.001s (~) 1.010s (~) 0.806s 10 1.43x
💻 Local Nitro 0.205s (+44.9% 🔺) 1.004s (~) 0.012s (+18.0% 🔺) 1.018s (~) 0.813s 10 1.44x

▲ Production (Vercel)

World Framework Workflow Time TTFB Slurp Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 1.530s (-1.7%) 2.784s (-2.6%) 0.872s (-10.8% 🟢) 4.145s (-3.0%) 2.615s 10 1.00x
▲ Vercel Express 1.669s (+18.6% 🔺) 2.898s (+11.4% 🔺) 0.938s (-3.5%) 4.322s (+8.6% 🔺) 2.652s 10 1.09x
▲ Vercel Next.js (Turbopack) ⚠️ missing - - - - -

🔍 Observability: Nitro | Express

stream pipeline with 5 transform steps (1MB)

💻 Local Development

World Framework Workflow Time TTFB Slurp Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 0.603s (-2.5%) 1.005s (~) 0.004s (-4.7%) 1.022s (~) 0.419s 59 1.00x
🐘 Postgres Next.js (Turbopack) 0.607s 1.010s 0.005s 1.024s 0.417s 59 1.01x
💻 Local Express 0.675s (+1.2%) 1.013s (~) 0.009s (-4.5%) 1.116s (~) 0.441s 54 1.12x
🐘 Postgres Express 0.688s (+7.3% 🔺) 1.005s (~) 0.006s (+33.1% 🔺) 1.027s (~) 0.339s 59 1.14x
💻 Local Nitro 0.749s (+29.7% 🔺) 1.012s (~) 0.010s (+1.4%) 1.023s (~) 0.274s 59 1.24x
💻 Local Next.js (Turbopack) 0.765s 1.030s 0.010s 1.136s 0.371s 54 1.27x

▲ Production (Vercel)

World Framework Workflow Time TTFB Slurp Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 5.102s (+19.3% 🔺) 6.389s (+9.6% 🔺) 0.256s (-26.9% 🟢) 7.072s (+7.0% 🔺) 1.970s 9 1.00x
▲ Vercel Express 5.488s (+31.5% 🔺) 6.986s (+12.8% 🔺) 0.222s (-48.4% 🟢) 7.690s (+9.3% 🔺) 2.202s 9 1.08x
▲ Vercel Next.js (Turbopack) ⚠️ missing - - - - -

🔍 Observability: Nitro | Express

10 parallel streams (1MB each)

💻 Local Development

World Framework Workflow Time TTFB Slurp Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Next.js (Turbopack) 0.915s 1.090s 0.000s 1.097s 0.182s 56 1.00x
🐘 Postgres Nitro 0.956s (-2.4%) 1.215s (-4.7%) 0.000s (-54.0% 🟢) 1.228s (-6.1% 🟢) 0.272s 50 1.04x
🐘 Postgres Express 1.002s (+2.3%) 1.458s (+21.8% 🔺) 0.000s (+143.9% 🔺) 1.477s (+21.4% 🔺) 0.474s 41 1.10x
💻 Local Express 1.156s (-2.0%) 2.018s (~) 0.001s (+88.9% 🔺) 2.020s (~) 0.864s 30 1.26x
💻 Local Next.js (Turbopack) 1.256s 2.020s 0.000s 2.022s 0.767s 30 1.37x
💻 Local Nitro 1.442s (+22.1% 🔺) 2.021s (~) 0.000s (-25.0% 🟢) 2.202s (+8.9% 🔺) 0.760s 28 1.58x

▲ Production (Vercel)

World Framework Workflow Time TTFB Slurp Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 3.828s (+13.7% 🔺) 5.413s (+20.5% 🔺) 0.000s (-100.0% 🟢) 5.893s (+21.0% 🔺) 2.065s 11 1.00x
▲ Vercel Nitro 4.845s (+72.1% 🔺) 6.012s (+42.6% 🔺) 0.000s (+Infinity% 🔺) 6.497s (+40.1% 🔺) 1.652s 10 1.27x
▲ Vercel Next.js (Turbopack) ⚠️ missing - - - - -

🔍 Observability: Express | Nitro

fan-out fan-in 10 streams (1MB each)

💻 Local Development

World Framework Workflow Time TTFB Slurp Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Next.js (Turbopack) 1.810s 2.107s 0.000s 2.117s 0.307s 29 1.00x
🐘 Postgres Nitro 1.811s (+4.1%) 2.257s (+5.4% 🔺) 0.000s (-100.0% 🟢) 2.275s (+5.7% 🔺) 0.464s 27 1.00x
🐘 Postgres Express 1.865s (+5.6% 🔺) 2.177s (+1.8%) 0.000s (+55.4% 🔺) 2.190s (+1.9%) 0.325s 28 1.03x
💻 Local Express 3.364s (-4.1%) 3.971s (-1.5%) 0.000s (~) 3.974s (-1.5%) 0.609s 16 1.86x
💻 Local Next.js (Turbopack) 3.670s 4.097s 0.001s 4.101s 0.431s 15 2.03x
💻 Local Nitro 3.691s (-1.8%) 4.234s (+1.6%) 0.000s (-30.0% 🟢) 4.238s (+1.6%) 0.547s 15 2.04x

▲ Production (Vercel)

World Framework Workflow Time TTFB Slurp Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 4.308s (+8.4% 🔺) 5.793s (+11.9% 🔺) 0.000s (-100.0% 🟢) 6.364s (+12.8% 🔺) 2.056s 10 1.00x
▲ Vercel Nitro 4.382s (+3.3%) 5.617s (~) 0.000s (-100.0% 🟢) 6.111s (+1.2%) 1.729s 10 1.02x
▲ Vercel Next.js (Turbopack) ⚠️ missing - - - - -

🔍 Observability: Express | Nitro

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World 🥇 Fastest Framework Wins
💻 Local Express 20/21
🐘 Postgres Next.js (Turbopack) 15/21
▲ Vercel Nitro 12/21
Fastest World by Framework

Winner determined by most benchmark wins

Framework 🥇 Fastest World Wins
Express 🐘 Postgres 14/21
Next.js (Turbopack) 🐘 Postgres 17/21
Nitro 🐘 Postgres 19/21
Column Definitions
  • Workflow Time: Runtime reported by workflow (completedAt - createdAt) - primary metric
  • TTFB: Time to First Byte - time from workflow start until first stream byte received (stream benchmarks only)
  • Slurp: Time from first byte to complete stream consumption (stream benchmarks only)
  • Wall Time: Total testbench time (trigger workflow + poll for result)
  • Overhead: Testbench overhead (Wall Time - Workflow Time)
  • Samples: Number of benchmark iterations run
  • vs Fastest: How much slower compared to the fastest configuration for this benchmark

Worlds:

  • 💻 Local: In-memory filesystem world (local development)
  • 🐘 Postgres: PostgreSQL database world (local development)
  • ▲ Vercel: Vercel production/preview deployment
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)

📋 View full workflow run


Some benchmark jobs failed:

  • Local: success
  • Postgres: success
  • Vercel: failure

Check the workflow run for details.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 16, 2026

🧪 E2E Test Results

Some tests failed

Summary

Passed Failed Skipped Total
✅ ▲ Vercel Production 923 0 67 990
✅ 💻 Local Development 994 0 86 1080
✅ 📦 Local Production 994 0 86 1080
✅ 🐘 Local Postgres 994 0 86 1080
✅ 🪟 Windows 90 0 0 90
❌ 🌍 Community Worlds 133 98 0 231
✅ 📋 Other 252 0 18 270
Total 4380 98 343 4821

❌ Failed Tests

🌍 Community Worlds (98 failed)

mongodb (15 failed):

  • readableStreamWorkflow | wrun_01KPAC329QVK683BFAE5M1RVPG
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KPAC3R6V5DV17HKBFNXQ2ZY1
  • webhookWorkflow | wrun_01KPAC412XZ1XDY1PAVYS60MQZ
  • outputStreamWorkflow no startIndex (reads all chunks)
  • outputStreamWorkflow positive startIndex (skips first chunk)
  • outputStreamWorkflow negative startIndex (reads from end)
  • outputStreamWorkflow - getTailIndex and getChunks getTailIndex returns correct index after stream completes
  • outputStreamWorkflow - getTailIndex and getChunks getTailIndex returns -1 before any chunks are written
  • outputStreamWorkflow - getTailIndex and getChunks getChunks returns same content as reading the stream
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions | wrun_01KPAC788X192V27R1P72RD44Q
  • fetchWorkflow | wrun_01KPAC7WDP8K4VCCQ8Z41CTYRT
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KPACC1JQWYJD1VY0XVE8DBBE
  • health check (queue-based) - workflow and step endpoints respond to health check messages
  • health check (CLI) - workflow health command reports healthy endpoints
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KPACJH2RXHNWN48S8X3ZN4M4

redis (15 failed):

  • readableStreamWorkflow | wrun_01KPAC329QVK683BFAE5M1RVPG
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KPAC3R6V5DV17HKBFNXQ2ZY1
  • webhookWorkflow | wrun_01KPAC412XZ1XDY1PAVYS60MQZ
  • outputStreamWorkflow no startIndex (reads all chunks)
  • outputStreamWorkflow positive startIndex (skips first chunk)
  • outputStreamWorkflow negative startIndex (reads from end)
  • outputStreamWorkflow - getTailIndex and getChunks getTailIndex returns correct index after stream completes
  • outputStreamWorkflow - getTailIndex and getChunks getTailIndex returns -1 before any chunks are written
  • outputStreamWorkflow - getTailIndex and getChunks getChunks returns same content as reading the stream
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions | wrun_01KPAC788X192V27R1P72RD44Q
  • fetchWorkflow | wrun_01KPAC7WDP8K4VCCQ8Z41CTYRT
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KPACC1JQWYJD1VY0XVE8DBBE
  • health check (queue-based) - workflow and step endpoints respond to health check messages
  • health check (CLI) - workflow health command reports healthy endpoints
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KPACJH2RXHNWN48S8X3ZN4M4

turso (68 failed):

  • addTenWorkflow | wrun_01KPAC2FXJSZ7RZB1M56QMCB2P
  • addTenWorkflow | wrun_01KPAC2FXJSZ7RZB1M56QMCB2P
  • wellKnownAgentWorkflow (.well-known/agent) | wrun_01KPAC31XF41E2YC2PVNAD2PV0
  • should work with react rendering in step
  • promiseAllWorkflow | wrun_01KPAC2QMY9YK0XE7FE2Z6XAHJ
  • promiseRaceWorkflow | wrun_01KPAC2X24Y9Y69XTN7HCTWV1V
  • promiseAnyWorkflow | wrun_01KPAC3097S8MW8539WFCG06YY
  • importedStepOnlyWorkflow | wrun_01KPAC3ENRRF43PWQ1CZXBJPQC
  • readableStreamWorkflow | wrun_01KPAC329QVK683BFAE5M1RVPG
  • hookWorkflow | wrun_01KPAC3C2M3RHE6PZQ032JJCPB
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KPAC3R6V5DV17HKBFNXQ2ZY1
  • webhookWorkflow | wrun_01KPAC412XZ1XDY1PAVYS60MQZ
  • sleepingWorkflow | wrun_01KPAC463Q4JYQCVGRM9AKJ9SP
  • parallelSleepWorkflow | wrun_01KPAC4J8WFEG22166TYECT2GQ
  • nullByteWorkflow | wrun_01KPAC4PEY1KMNSVN5V46F7WHC
  • workflowAndStepMetadataWorkflow | wrun_01KPAC4RJ6PGSY9TKGPYMJYSYF
  • outputStreamWorkflow no startIndex (reads all chunks)
  • outputStreamWorkflow positive startIndex (skips first chunk)
  • outputStreamWorkflow negative startIndex (reads from end)
  • outputStreamWorkflow - getTailIndex and getChunks getTailIndex returns correct index after stream completes
  • outputStreamWorkflow - getTailIndex and getChunks getTailIndex returns -1 before any chunks are written
  • outputStreamWorkflow - getTailIndex and getChunks getChunks returns same content as reading the stream
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions | wrun_01KPAC788X192V27R1P72RD44Q
  • fetchWorkflow | wrun_01KPAC7WDP8K4VCCQ8Z41CTYRT
  • promiseRaceStressTestWorkflow | wrun_01KPAC80216CWSGQPEWQQHH0CE
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • error handling not registered WorkflowNotRegisteredError fails the run when workflow does not exist
  • error handling not registered StepNotRegisteredError fails the step but workflow can catch it
  • error handling not registered StepNotRegisteredError fails the run when not caught in workflow
  • hookCleanupTestWorkflow - hook token reuse after workflow completion | wrun_01KPACBE8QBFN2CBP8NVJDZN31
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KPACC1JQWYJD1VY0XVE8DBBE
  • hookDisposeTestWorkflow - hook token reuse after explicit disposal while workflow still running | wrun_01KPACCNWSVRNQ7AKF9P04117E
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars) | wrun_01KPACD9XB8J04EK2XGHE40ZS3
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument | wrun_01KPACDJAMBXZRTKRKQHDH8H1F
  • closureVariableWorkflow - nested step functions with closure variables | wrun_01KPACDQC2RMP3XZ9FXFRXHYZS
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step | wrun_01KPACDSGYWH79980XVYQRBX20
  • runClassSerializationWorkflow - Run instances serialize across workflow/step boundaries | wrun_01KPACE4861JVEE0BV494K0320
  • health check (queue-based) - workflow and step endpoints respond to health check messages
  • health check (CLI) - workflow health command reports healthy endpoints
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly | wrun_01KPACEHKVZXNPC3D2F4VQ15TB
  • Calculator.calculate - static workflow method using static step methods from another class | wrun_01KPACEPW1VRG5VSP451YH62HH
  • AllInOneService.processNumber - static workflow method using sibling static step methods | wrun_01KPACEX05531DDVXFJW2VCWV1
  • ChainableService.processWithThis - static step methods using this to reference the class | wrun_01KPACF3K6GS4HNNA6SNP9CCYA
  • thisSerializationWorkflow - step function invoked with .call() and .apply() | wrun_01KPACF9N7C33JNYN6C7T1AEFE
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE | wrun_01KPACFFZMVR1DYMW62GD34YSB
  • instanceMethodStepWorkflow - instance methods with "use step" directive | wrun_01KPACFQ3QRHBBBQFBGQ1XPE08
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context | wrun_01KPACG19DEAZ609QG862CSZT8
  • stepFunctionAsStartArgWorkflow - step function reference passed as start() argument | wrun_01KPACGB78HKJBWB6ZV729Z84B
  • cancelRun - cancelling a running workflow | wrun_01KPACGHH5VDB49BYQM352757R
  • cancelRun via CLI - cancelling a running workflow | wrun_01KPACGTA9HF73K1JJ8FFTHWYK
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router
  • hookWithSleepWorkflow - hook payloads delivered correctly with concurrent sleep | wrun_01KPACH5NNCT7PR6S8MYXYP4QS
  • sleepInLoopWorkflow - sleep inside loop with steps actually delays each iteration | wrun_01KPACHS718QTT39E74F73XCK8
  • sleepWithSequentialStepsWorkflow - sequential steps work with concurrent sleep (control) | wrun_01KPACJ496WC0F18SBCYJ4M5G4
  • importMetaUrlWorkflow - import.meta.url is available in step bundles | wrun_01KPACJBSFTTVNQB63ASDN1J4V
  • metadataFromHelperWorkflow - getWorkflowMetadata/getStepMetadata work from module-level helper (#1577) | wrun_01KPACJDV1AEYCJR6Q0JMWDKM2
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KPACJH2RXHNWN48S8X3ZN4M4
  • getterStepWorkflow - getter functions with "use step" directive | wrun_01KPACJM8DWKMTDD0V7WDAB8WF

Details by Category

✅ ▲ Vercel Production
App Passed Failed Skipped
✅ astro 83 0 7
✅ example 83 0 7
✅ express 83 0 7
✅ fastify 83 0 7
✅ hono 83 0 7
✅ nextjs-turbopack 88 0 2
✅ nextjs-webpack 88 0 2
✅ nitro 83 0 7
✅ nuxt 83 0 7
✅ sveltekit 83 0 7
✅ vite 83 0 7
✅ 💻 Local Development
App Passed Failed Skipped
✅ astro-stable 84 0 6
✅ express-stable 84 0 6
✅ fastify-stable 84 0 6
✅ hono-stable 84 0 6
✅ nextjs-turbopack-canary 71 0 19
✅ nextjs-turbopack-stable 90 0 0
✅ nextjs-webpack-canary 71 0 19
✅ nextjs-webpack-stable 90 0 0
✅ nitro-stable 84 0 6
✅ nuxt-stable 84 0 6
✅ sveltekit-stable 84 0 6
✅ vite-stable 84 0 6
✅ 📦 Local Production
App Passed Failed Skipped
✅ astro-stable 84 0 6
✅ express-stable 84 0 6
✅ fastify-stable 84 0 6
✅ hono-stable 84 0 6
✅ nextjs-turbopack-canary 71 0 19
✅ nextjs-turbopack-stable 90 0 0
✅ nextjs-webpack-canary 71 0 19
✅ nextjs-webpack-stable 90 0 0
✅ nitro-stable 84 0 6
✅ nuxt-stable 84 0 6
✅ sveltekit-stable 84 0 6
✅ vite-stable 84 0 6
✅ 🐘 Local Postgres
App Passed Failed Skipped
✅ astro-stable 84 0 6
✅ express-stable 84 0 6
✅ fastify-stable 84 0 6
✅ hono-stable 84 0 6
✅ nextjs-turbopack-canary 71 0 19
✅ nextjs-turbopack-stable 90 0 0
✅ nextjs-webpack-canary 71 0 19
✅ nextjs-webpack-stable 90 0 0
✅ nitro-stable 84 0 6
✅ nuxt-stable 84 0 6
✅ sveltekit-stable 84 0 6
✅ vite-stable 84 0 6
✅ 🪟 Windows
App Passed Failed Skipped
✅ nextjs-turbopack 90 0 0
❌ 🌍 Community Worlds
App Passed Failed Skipped
✅ mongodb-dev 6 0 0
❌ mongodb 56 15 0
✅ redis-dev 6 0 0
❌ redis 56 15 0
✅ turso-dev 6 0 0
❌ turso 3 68 0
✅ 📋 Other
App Passed Failed Skipped
✅ e2e-local-dev-nest-stable 84 0 6
✅ e2e-local-postgres-nest-stable 84 0 6
✅ e2e-local-prod-nest-stable 84 0 6

📋 View full workflow run

Copy link
Copy Markdown
Member

@TooTallNate TooTallNate left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Straightforward fix. minify: false in the Vite build config is the correct approach — it only affects the client bundle (SSR is already unminified by default). The trade-off (tarball ~1.6 to 2.1 MB, ~35% larger gzip) is negligible for a self-hosted observability tool, and it eliminates false-positive supply chain alerts for downstream consumers.

Comment in the config clearly explains the reasoning. Changeset correctly scoped to @workflow/web patch.

One housekeeping note: the branch has 82 merge commits from repeatedly merging main. Consider squash-merging to keep the history clean.

@karthikscale3 karthikscale3 merged commit bcf818c into main Apr 16, 2026
103 of 106 checks passed
@karthikscale3 karthikscale3 deleted the karthik/reduce-socket-score branch April 16, 2026 12:53
@VaguelySerious VaguelySerious added the backport-stable Cherry-pick this PR to the stable branch when merged label Apr 16, 2026
@workflow-devkit-release-bot
Copy link
Copy Markdown
Contributor

Cherry-pick to stable had conflicts that were resolved by AI. Please review the backport PR: #1776

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-stable Cherry-pick this PR to the stable branch when merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants