The best way to control Claude Code, Codex and more from any computer or phone
| 1 | import * as Cloudflare from "@alchemy.run/cloudflare"; |
| 2 | |
| 3 | /** Background jobs: fetch a link's page and store its preview. */ |
| 4 | export const Jobs = Cloudflare.Queues.Queue("Jobs"); |
| 5 | |
| 6 | export interface UnfurlJob { |
| 7 | code: string; |
| 8 | url: string; |
| 9 | } |
| 10 | |
| 11 | /** Click events, recorded off the redirect's hot path. */ |
| 12 | export const Clicks = Cloudflare.Queues.Queue("Clicks"); |
| 13 | |
| 14 | export interface ClickEvent { |
| 15 | code: string; |
| 16 | at: number; |
| 17 | } |