Skip to content

Add save-vcards extension - #33584

Merged
raycastbot merged 7 commits into
raycast:mainfrom
thejulez:ext/save-vcards
Nov 27, 2026
Merged

raycastbot merged 7 commits into
raycast:mainfrom
thejulez:ext/save-vcards

Conversation

@thejulez

@thejulez thejulez commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Description

Save vCards turns contact details you come across into Apple Contacts entries: highlight an email signature, drag a screenshot around a business card or LinkedIn profile, or copy a photo of a business card (for example from your iPhone through Universal Clipboard).

Each command shows what was captured next to the contact it found: name with academic titles (Mag., Dr., MBA), job title, company, emails, labelled phone numbers, website and postal address. ↵ saves to Contacts, ⌘E opens a form to edit first. When the email or phone is already in Contacts, ⌘⇧↵ adds the new details to the existing card instead of creating a duplicate. Contacts can also be exported as a .vcf file or copied as vCard text.

Everything runs on the Mac. Text recognition and field detection use Apple's Vision, Data Detector and Natural Language frameworks through Swift (built from source with raycast/extensions-swift-tools). No AI service, no network requests, no account.

Commands:

  • Save vCard from Selection: highlighted text, or the clipboard when nothing is highlighted
  • Save vCard from Screenshot: interactive screen capture, read with Vision
  • Save vCard from Clipboard: copied text or a copied image (PNG, JPEG, HEIC)

Permissions (explained in the README): Contacts, and Screen Recording for the screenshot command.

Screencast

Business card photo to contact
Email signature to contact
Edit form and actions

All contacts in the screenshots are invented.

Checklist

Notes for review:

  • npm test runs 42 tests (parser corpus, and the Swift core through a small test CLI); they are not part of the build.
  • ray lint warns that "vCard" should be "VCard" in the titles. I kept "vCard", the format's own spelling, in the way the Apple Style Guide keeps "iOS". Happy to change it if you prefer.

@raycastbot raycastbot added new extension Label for PRs with new extensions platform: macOS labels Nov 16, 2026
@raycastbot

Copy link
Copy Markdown
Collaborator

Congratulations on your new Raycast extension! 🚀

We're currently experiencing a high volume of incoming requests. As a result, the initial review may take up to 15 business days.

Once the PR is approved and merged, the extension will be available on our Store.

@thejulez
thejulez marked this pull request as ready for review November 16, 2026 13:43
@greptile-apps

greptile-apps Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5 · No new issue requires action.RetriggerView in GreptileConfidence Score: 5/5

[High impact] No new issue requires action.

Summary

Adds Save vCards, which reads selected text, screenshots, and clipboard images on the Mac and saves contacts to Apple Contacts.

  • Text, screenshots, and clipboard images can all start a contact draft.
  • The parser turns detected text into names and contact fields.
  • People can review detected details and save or share a contact card.
  • The extension includes its own build setup and publishing files.

Reviews (6) · Last reviewed commit: "Update CHANGELOG.md and optimise images" · Reviewed by Greptile

- Phone matching for merges compares national and international forms correctly
- Quoted replies (On … wrote:, Am … schrieb:, > lines) are cut before reading a thread
- Saving keeps the view open until the contact is saved; no double save
- Selected account is kept; stale duplicate matches are not offered
- Country code for numbers without a trunk zero (+1, +34)
- showFailureToast, @raycast/utils data hooks, standard .prettierrc
- Invented names in test fixtures
thejulez

This comment was marked as outdated.

@0xdhrv 0xdhrv left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Hey @thejulez 👋

Thanks for the careful, local-only contact saver 🔥 Everything runs on the Mac with Apple's Vision and Data Detectors, and I like that adding to an existing contact only fills in what's missing, without overwriting what's already on the card.

Here's everything I found in this pass:

Blocking

  • Please remove dev/test material from the extension folder and keep it in your own repo. Store installs only need the extension itself plus README.md, CHANGELOG.md, media/ and metadata/.

    • test/ (test/corpus.test.ts, test/parse.test.ts, test/raycast-binary.test.ts, test/support.ts, test/fixtures/card-exif-rotated.jpg, test/fixtures/card.png, test/fixtures/make-card.swift, and test/swift/main.swift)
    • scripts/build-test-helper.sh
    • The "test" script, and the tsx devDependency it uses. After that, regenerate package-lock.json.

    As mentioned in our docs here ↗

Should fix

  • metadata/save-vcards-1.png and save-vcards-2.png show a back chevron on the root Save vCard from Clipboard command. That root command does not set a navigation title, so this looks like the results were captured as pushed views. Please retake those two from the root command with Window Capture and Save to Metadata ticked, so neither shows a back chevron. save-vcards-3.png is the edit form pushed from the results, so the chevron there is expected.

    As mentioned in our docs here ↗

When the blocking items are done, request another review 😊

Feel free to reach me here or on Slack if anything is unclear.

@0xdhrv
0xdhrv marked this pull request as draft November 19, 2026 05:14
@0xdhrv 0xdhrv self-assigned this Nov 19, 2026
@thejulez
thejulez marked this pull request as ready for review November 25, 2026 23:51
Per review: drop test/, scripts/build-test-helper.sh, the test script and
the tsx devDependency, and update package-lock.json. The tests stay in the
source repo.
Recolour the icon from blue to an amber-to-brown gradient and put the
existing screenshots on a blurred grey background, the same on all three.
Screenshot 1: the sample business card's accent goes from blue to brown.
Screenshots 1 and 2: remove the back chevron, as on the root command.
All three: remove the blue fringe the old background left at the window corners.
@thejulez

Copy link
Copy Markdown
Contributor Author

My bad, didn't see this review earlier, thanks for the thorough pass @0xdhrv ! 🙏

Blocking:

  • Removed test/ and scripts/build-test-helper.sh from the extension folder (the tests now live only in my own repo)
  • Dropped the "test" script and the tsx devDependency, and updated package-lock.json

Should fix:

  • Screenshots 1 and 2 no longer show the back chevron

I also gave the icon a warmer colour and put all three screenshots on one shared background. ray build and ray lint pass locally.

Ready for another look whenever you have time 😊

@thejulez
thejulez requested a review from 0xdhrv November 26, 2026 12:18

@0xdhrv 0xdhrv left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good to me, approved 🔥

@raycastbot
raycastbot merged commit 6425d7b into raycast:main Nov 27, 2026
1 check passed
@github-actions

Copy link
Copy Markdown
Contributor

@raycastbot

Copy link
Copy Markdown
Collaborator

🎉 🎉 🎉

Such a great contribution deserves a reward, but unfortunately we couldn't find your Raycast account based on your GitHub username (@thejulez).

Please link your GitHub account to your Raycast account to receive your credits and soon be able to exchange them for some swag.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new extension Label for PRs with new extensions platform: macOS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants