Repository navigation
Move CardCap capture and sign-in email to Cloudflare - #6
Merged
Merged
Conversation
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using high effort and found 2 potential issues.
❌ 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

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.runand OpenAI/Resend secrets are removed from config and docs.Adds paste-or-website contact capture: new
POST /api/contact-draftsbuilds a reviewable draft (with stored source text/URL), shares the daily extraction quota viacapture_usage, andcontact_sourcespersistence 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(ormocklocally); sign-in links usePUBLIC_ORIGINand 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.