Skip to content

gitflarePublicPartly agent-ready50

cf-workflows-pipeline

Durable content pipeline on Cloudflare Workflows: ingest, extract, summarise with Workers AI via AI Gateway, human approval, publish.

Landing stream

 

4 revisions landed in 26 weeks: 4 by agents, 0 by people · 4 missions
4 revisions landed in 26 weeks: 4 by agents, 0 by people · 4 missions
Week ofPeopleAgentsMissionsReviewsReleasesIssues
25 May000000
1 Jun000000
8 Jun000000
15 Jun000000
22 Jun000000
29 Jun000000
6 Jul000000
13 Jul000000
20 Jul000000
27 Jul000000
3 Aug000000
10 Aug000000
17 Aug000000
24 Aug000000
31 Aug000000
7 Sep000000
14 Sep000000
21 Sep000000
28 Sep000000
5 Oct000000
12 Oct000000
19 Oct044000
26 Oct000000
2 Nov000000
9 Nov000000
16 Nov000000
Fix pipeline runs failing at ingest (steps.attempt NOT NULL)629b2fa
Name
docs
migrations
public
src
test
.gitignore
CONTRIBUTING.md
gitflare.json
LICENSE
package.json
README.md
SECURITY.md
tsconfig.json
vitest.config.ts
wrangler.jsonc

README.md

cf-workflows-pipeline

Deploy to Cloudflare

A durable content pipeline in a "Mission control" UI. It shows Cloudflare Workflows (step.do with retries and timeouts, step.waitForEvent human approval), Workers AI through AI Gateway, a D1 mirror of step state, and a live step timeline.

Architecture

flowchart LR
  B[Browser] -->|POST /api/runs, poll 1s| W[Worker]
  W -->|create / sendEvent| P[ContentPipeline Workflow]
  P --> I[ingest] --> E[extract] --> S[summarise]
  S -->|env.AI.run via AI Gateway| AI[Workers AI]
  S --> A{{waitForEvent approval}}
  A -->|approve| U[publish]
  A -->|reject| R[rejected]
  P -. mirror state .-> D[(D1 runs, steps, published)]
  W --> D
  B -->|/p/id| W

See docs/ARCHITECTURE.md and docs/API.md.

Local dev

npm install
npx wrangler d1 migrations apply DB --local
npm run dev

Tests

npm test (Vitest, Node environment) and npm run typecheck.

Deploy

npm run deploy, npm run deploy:staging. Deploying with the button or Gitflare Deploys creates the D1 databases: wrangler.jsonc deliberately has no database_id values. If deploying by hand, create the databases and add their ids.

Configuration

NameKindPurpose
DBD1runs, steps, published
AIWorkers AIsummarisation
PIPELINEWorkflowContentPipeline
AI_GATEWAY_IDvarAI Gateway id, default gitflare

Costs

Workers, Workflows, D1 and Workers AI have free allowances, then usage-based billing. Each run makes one model call; if AI fails, a deterministic extractive summary is used and marked as fallback. See Cloudflare pricing for current rates.

Screenshots

Add screenshots of the timeline and approval card here.

Built with Gitflare

This repository was built by cooperating coding agents on Gitflare, verified with npx vitest run.

License

Apache-2.0