JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 39
  • Score
    100M100P100Q63267F
  • License MIT

Turn user feedback into GitHub issues via a Cloudflare Worker queue, with a self-hosted mobile-first widget

Package Exports

  • feedback-gitops
  • feedback-gitops/public/.gitkeep
  • feedback-gitops/public/widget.js

Readme

@feedback-gitops/worker

Queue-backed Cloudflare Worker for agent change requests.

Endpoints

  • GET /widget.js: embeddable widget script
  • GET /health: health check
  • POST /api/issue: validate/authenticate + enqueue feedback
  • queue(): consumes queue messages and creates GitHub issues

Prerequisites

  • Cloudflare account with Workers + Queues
  • Wrangler authenticated (wrangler login)
  • Queue named feedback-queue

Setup

cd /home/andrey/src/feedback-gitops/packages/feedback-gitops
wrangler queues create feedback-queue

Set secrets:

wrangler secret put API_KEY --name feedback-gitops-thoughts
wrangler secret put ADMIN_TOKEN --name feedback-gitops-thoughts
wrangler secret put GITHUB_PAT --name feedback-gitops-thoughts
wrangler secret put GITHUB_REPO_OWNER --name feedback-gitops-thoughts
wrangler secret put GITHUB_REPO_NAME --name feedback-gitops-thoughts
wrangler secret put GITHUB_BASE_BRANCH --name feedback-gitops-thoughts

Run and deploy

From monorepo root:

cd /home/andrey/src/feedback-gitops
pnpm install
pnpm run dev
pnpm run typecheck
pnpm run deploy

thoughts integration

thoughts should call this worker via Cloudflare service binding FEEDBACK_GITOPS.

Fallback mode via public URL is still supported with:

AGENT_CHANGE_REQUEST_WORKER_URL=https://feedback-gitops-thoughts.andrei-kokoev.workers.dev