Skip to content

Move CardCap capture and sign-in email to Cloudflare - #6

Merged
cody257 merged 3 commits into
mainfrom
codex/cardcap-cloudflare-capture
Nov 18, 2026
Merged

cody257 merged 3 commits into
mainfrom
codex/cardcap-cloudflare-capture

Conversation

@cody257

@cody257 cody257 commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

Card photos, pasted signatures and website contacts now use Cloudflare Workers AI. Website lookup uses Browser Run. New contacts retain the evidence and source date for review and CSV export. The additive D1 migration stores sources and capture usage. Sign-in links now use the verified Cloudflare Email Service sender, and requesting another link starts a fresh verification. The production Worker was deployed and the former provider secret bindings were removed. The Cloudflare vision model read the fictional test card correctly. Unit, integration and GitHub CI checks passed.


Note

High Risk
Touches authentication email delivery, AI extraction, and outbound browser fetches on user-supplied URLs/websites, plus schema and quota logic that affect production sign-in and contact data.

Overview
Replaces OpenAI/Resend with Cloudflare Workers AI (card vision), Browser Run (public site markdown), and EMAIL for magic links; production is pointed at cc.csi.run and OpenAI/Resend secrets are removed from config and docs.

Adds paste-or-website contact capture: new POST /api/contact-drafts builds a reviewable draft (with stored source text/URL), shares the daily extraction quota via capture_usage, and contact_sources persistence plus optional CSV source columns. The SPA gets a capture form, preview-before-save flow (name or company), duplicate hints, and a Source panel for non-card contacts.

Card extraction mode is cloudflare (or mock locally); sign-in links use PUBLIC_ORIGIN and stricter Turnstile gating before resend; exports/review rules treat company-only contacts as valid.

Reviewed by Cursor Bugbot for commit 70ec868. Bugbot is set up for automated code reviews on this repo. Configure here.

@cody257 cody257 changed the title Capture photo, pasted and website contacts with Cloudflare Move CardCap capture and sign-in email to Cloudflare Nov 18, 2026

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using high effort and found 2 potential issues.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit d11ead9. Configure here.

Comment thread src/worker/capture.ts Resolved
Comment thread src/shared/exporters.ts Resolved
@cody257
cody257 merged commit a577584 into main Nov 18, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant