canvas-website/worker
Jeff Emmett 5bad65eed6 feat: add server-side AI service proxies for fal.ai and RunPod
Add proxy endpoints to Cloudflare Worker for AI services, keeping
API credentials server-side for better security architecture.

Changes:
- Add fal.ai proxy endpoints (/api/fal/*) for image generation
- Add RunPod proxy endpoints (/api/runpod/*) for image, video, text, whisper
- Update client code to use proxy pattern:
  - useLiveImage.tsx (fal.ai live image generation)
  - VideoGenShapeUtil.tsx (video generation)
  - ImageGenShapeUtil.tsx (image generation)
  - runpodApi.ts (whisper transcription)
  - llmUtils.ts (LLM text generation)
- Add Environment types for AI service configuration
- Improve Automerge migration: compare shape counts between formats
  to prevent data loss during format conversion

To deploy, set secrets:
  wrangler secret put FAL_API_KEY
  wrangler secret put RUNPOD_API_KEY

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-25 20:26:04 -05:00
..
migrations feat: flip permissions model - everyone edits by default, protected boards opt-in 2025-12-15 12:43:14 -05:00
shapes pin object, fix fathom, and a bunch of other things 2025-11-11 22:32:36 -08:00
AutomergeDurableObject.ts feat: improve social network presence handling and cleanup 2025-12-15 00:01:28 -05:00
assetUploads.ts fix asset upload rendering errors 2025-03-19 18:30:15 -07:00
automerge-init.ts feat: implement binary Automerge CRDT sync and open-mapping module 2025-12-04 19:45:02 -08:00
automerge-r2-storage.ts feat: implement binary Automerge CRDT sync and open-mapping module 2025-12-04 19:45:02 -08:00
automerge-sync-manager.ts feat: add server-side AI service proxies for fal.ai and RunPod 2025-12-25 20:26:04 -05:00
boardPermissions.ts fix: use verified jeffemmett.com domain for admin request emails 2025-12-15 14:25:44 -05:00
cryptidAuth.ts feat: add user dropdown menu, fix auth tool visibility, improve network graph 2025-12-12 18:41:53 -05:00
networkingApi.ts feat: add canvas users to CryptID connections dropdown 2025-12-05 23:08:16 -08:00
schema.sql feat: flip permissions model - everyone edits by default, protected boards opt-in 2025-12-15 12:43:14 -05:00
types.ts feat: add server-side AI service proxies for fal.ai and RunPod 2025-12-25 20:26:04 -05:00
wasm.d.ts feat: implement binary Automerge CRDT sync and open-mapping module 2025-12-04 19:45:02 -08:00
worker.ts feat: add server-side AI service proxies for fal.ai and RunPod 2025-12-25 20:26:04 -05:00