Skip to content

Open tel:/sms: links with smshub (/handle + inbox ?compose=) - #173

Merged
ralyodio merged 1 commit into
masterfrom
feat/tel-sms-handler
Nov 30, 2026
Merged

ralyodio merged 1 commit into
masterfrom
feat/tel-sms-handler

Conversation

@ralyodio

Copy link
Copy Markdown
Contributor

What: smshub.dev becomes the default handler for phone links.

  • /handle?uri=%s takes tel:/sms: (also sms://, smsto:, callto:). A signed-in user with a line, on an sms: link, goes straight to New Message prefilled. Otherwise it shows the number, Text from smshub (through login with next), Call/Text from this device, how to get a line, and a button that runs navigator.registerProtocolHandler for tel and sms.
  • /inbox?compose=+1…&body=… opens New Message prefilled (and survives the login redirect).
  • lib/phone-uri.ts + 10 tests. tsc clean, 430/430 tests.

Companion: TronBrowser forwards tel:/sms: clicks to /handle; footer 0.7.3 adds the Text link (profullstack/footer#43).

🤖 Generated with Claude Code

/handle?uri=<tel:|sms:...> is the protocol-handler target
(navigator.registerProtocolHandler, and TronBrowser forwards clicks). An
sms: link from a signed-in user with a line opens New Message prefilled
(/inbox?compose=+1...&body=...); everyone else sees the number, 'Text from
smshub' (via login), 'Call/Text from this device' (the original link,
marked data-tron-native so TronBrowser leaves it to the OS), how to get a
line, and a button that registers smshub.dev as the browser's tel/sms
handler. Parser in lib/phone-uri.ts (RFC 3966/5724, sms://, smsto:,
callto:) with tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

ThreatCrush Security Scan

1 finding(s) in the 7 file(s) this pull request changes.

MEDIUM: 1

Severity Rule Location
MEDIUM js-open-redirect src/components/inbox-client.tsx:35
14 pre-existing finding(s) elsewhere in the repository — **HIGH**: 2 | **MEDIUM**: 4 | **LOW**: 8

Not introduced by this pull request.

Severity Rule Location
HIGH sh-unquoted-expansion-destructive public/install.sh:67
HIGH sh-remote-script-execution public/install.sh:89
MEDIUM gha-ssh-key-secret .github/workflows/deploy-dev2.yml:39
MEDIUM sh-remote-script-execution public/install.sh:133
MEDIUM js-open-redirect src/app/numbers/page.tsx:180
MEDIUM js-unescaped-html-sink src/components/pit-footer.tsx:17
LOW secret-generic-credential src/lib/providers/__tests__/twilio.test.ts:24
LOW secret-generic-credential src/lib/providers/__tests__/twilio.test.ts:46
LOW secret-generic-credential src/lib/providers/__tests__/twilio.test.ts:60
LOW secret-generic-credential src/lib/providers/__tests__/twilio.test.ts:78
LOW secret-generic-credential src/lib/vault/__tests__/vault.test.ts:117
LOW secret-generic-credential src/lib/webhooks/__tests__/supabase-store.test.ts:11
LOW secret-generic-credential supabase/config.toml:287
LOW secret-generic-credential supabase/config.toml:319

Snippets are redacted; ThreatCrush never prints matched credential material.

@ralyodio
ralyodio merged commit 1e28e08 into master Nov 30, 2026
6 checks passed
@ralyodio
ralyodio deleted the feat/tel-sms-handler branch November 30, 2026 19:50
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