Skip to content
Source
Sign inSign up
TanStack/workflow

research

README.md

Research archive

Design notes captured at decision points. Not maintained as living docs β€” treat as historical context for why the engine is shaped the way it is, and a sketchpad for upcoming work.

If you want current docs, see /docs and packages/workflow-core/README.md. The current API and engine may differ from what's described here in places β€” these were exploratory snapshots, not specs.

Contents

FileWhat it coveredStatus of recommendations
RESEARCH.mdCompetitive landscape (Inngest, Trigger.dev, Temporal, DBOS, Hatchet, Cloudflare Workflows, Mastra, LangGraph.js, AI SDK), technical patterns, deployment architecture, market positioning, Lovable / AI-app-builder distribution play.Largely intact; informs how the project is framed and positioned.
COMPETITOR_GAP_ANALYSIS_2026-05-25.mdFollow-up competitor sweep with a direct TanStack Workflow product comparison plus long-lived workflow blind spots: schedule records, timer drivers, version drain, queues, redrive, observability, security, and deployment POC coverage.Current as of May 25, 2026. Use as the checklist for production-readiness docs and capability packages.
VERCEL_NETLIFY_NATIVE_PROVIDERS_2026-05-25.mdFocused investigation of Vercel and Netlify native primitives: Vercel Workflow, Vercel Queues, Cron, Netlify Async Workloads, Scheduled Functions, Netlify Database, and Blobs.Current as of May 25, 2026. Recommends Postgres-first provider-native demos plus side-by-side comparisons with provider workflow products.
WORKFLOW_STORE_RUNTIME_CONTRACT.mdRFC from the TanStack.com Intent sync dogfood attempt. Defines the durable execution store/runtime boundary, host adapter responsibilities, serverless wake-up model, and why Drizzle should be a friendly implementation rather than the conceptual foundation.Forward-looking. Recommends designing WorkflowExecutionStore and runtime types before building Drizzle/Postgres and Netlify adapters.
API_CANDIDATES.mdThree API designs evaluated: definition-object + ctx, builder-chain + middleware (Candidate 2), implicit-context hooks-style.Candidate 2 won. The shipping API is closure-based with ctx-as-arg and typed middleware.
PRIOR_ART_AI_ORCHESTRATION.mdInventory of Alem Tuzlak + Tom Beckenham's existing generator-based engine in @tanstack/ai-orchestration (TanStack/ai#542) β€” the parent we extracted from.Engine extracted. AI surface (agents, orchestrators, AG-UI events) stays in ai-orchestration.
SRC_SKEW_AND_RESUMPTION.mdAnalysis of fingerprint-based source-skew handling and its gaps (Prettier reformat / minifier drift / silent corruption in patch mode).Motivated the move to explicit versioning.
EXPLICIT_VERSIONING.mdAlternative design: explicit version + previousVersions registry + lint-time lock file, replacing runtime fingerprinting.Shipped. createWorkflow({ version }).previousVersions([...]) + version-routing engine. Lockfile + ESLint plugin still to come.
SCHEDULING.mdHow major workflow engines model cron / recurring execution; what a future @tanstack/workflow-cron would look like.Forward-looking. No package yet. Engine needs no changes; deferred until a durable storage adapter ships.
AI_ORCHESTRATION_INTEGRATION.mdWhat can be deleted from TanStack/ai#542 now that workflow-core@0.0.1 is live, and how the AI APIs there compose with the shipping engine.Forward-looking. Recommends refactoring ai-orchestration onto workflow-core (18 files deleted, ~6 kept). Engine changes: none required.

How these came to be

Generated during the design sprint that preceded the engine extraction. Some of the prose talks about "TanStack Run" β€” the project was briefly named that before reverting to "TanStack Workflow". Treat that as a footnote.