René's URL Explorer Experiment


Title: feat(sdk,cli,core): webhook() with typed provider sources, filters, and indexing by ericallam · Pull Request #4923 · triggerdotdev/trigger.dev · GitHub

Open Graph Title: feat(sdk,cli,core): webhook() with typed provider sources, filters, and indexing by ericallam · Pull Request #4923 · triggerdotdev/trigger.dev

X Title: feat(sdk,cli,core): webhook() with typed provider sources, filters, and indexing by ericallam · Pull Request #4923 · triggerdotdev/trigger.dev

Description: Summary The public SDK half of hosted webhooks, split out of #4537 so the webhook API can ship on its own. webhook() declares an endpoint that routes a verified, typed event to an onEvent handler, with provider presets (webhooks.stripe(), webhooks.github(), webhooks.svix(), and the rest of the config-table producers) or webhooks.custom(), plus an optional filter checked against the event type at author time. import { webhook, webhooks } from "@trigger.dev/sdk"; export const stripeWebhook = webhook({ id: "stripe-webhook", source: webhooks.stripe(), filter: "event.type == 'checkout.session.completed'", onEvent: async ({ event, headers, ctx }) => { // verified, typed Stripe event }, }); The CLI indexes declared webhooks into the worker manifest and fails indexing on duplicate webhook ids with a DuplicateWebhookIdsError. Docs add the Webhooks section: overview, sources, connecting a provider, deliveries, and filters. Stack This is the bottom of a two-PR stack. #4537 (chat.event, session routing, channels, human-in-the-loop, @trigger.dev/slack) is retargeted onto this branch and merges after it. The server half (#4344) is already on main behind a flag. Testing tsc --noEmit clean for @trigger.dev/sdk and trigger.dev (CLI). Full @trigger.dev/sdk vitest suite passes with the stacked branch applied on top. Every internal link in the new docs pages resolves to an existing page. Changelog Adds webhook() and webhooks.* provider sources to @trigger.dev/sdk, webhook indexing and duplicate-id detection to the CLI, and the webhooks docs section. One changeset bumps core, sdk, and the CLI together. 🤖 Generated with Claude Code https://claude.ai/code/session_016PPzBQgFgqD8aPQcEYZXty

Open Graph Description: Summary The public SDK half of hosted webhooks, split out of #4537 so the webhook API can ship on its own. webhook() declares an endpoint that routes a verified, typed event to an onEvent handler, ...

X Description: Summary The public SDK half of hosted webhooks, split out of #4537 so the webhook API can ship on its own. webhook() declares an endpoint that routes a verified, typed event to an onEvent handler, ...

Opengraph URL: https://github.com/triggerdotdev/trigger.dev/pull/4923

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:8fa89b8c-faa3-f361-cddc-92e794e410a4
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idCB94:371CF:7BF428:B743D1:6AFAF849
html-safe-nonce972f3123f8c316b88f2702ae374a590950a5d7c39f96847eac13001e2964d7bf
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQjk0OjM3MUNGOjdCRjQyODpCNzQzRDE6NkFGQUY4NDkiLCJ2aXNpdG9yX2lkIjoiMzk0MDExNjI3MDg3MDYyNDMyOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac525194ee5408c8447d2d0bfd6d8d6c2e4743710b71f6ed95e2a28e1c26cac733
hovercard-subject-tagpull_request:4508562069
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/triggerdotdev/trigger.dev/pull/4923/files
twitter:imagehttps://avatars.githubusercontent.com/u/534?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/534?s=400&v=4
og:image:altSummary The public SDK half of hosted webhooks, split out of #4537 so the webhook API can ship on its own. webhook() declares an endpoint that routes a verified, typed event to an onEvent handler, ...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None54f7a6886649661c85eee945cca0773566bfb4065370e0429b7c8f7204184650
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/triggerdotdev/trigger.dev git https://github.com/triggerdotdev/trigger.dev.git
octolytics-dimension-user_id95297378
octolytics-dimension-user_logintriggerdotdev
octolytics-dimension-repository_id572570113
octolytics-dimension-repository_nwotriggerdotdev/trigger.dev
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id572570113
octolytics-dimension-repository_network_root_nwotriggerdotdev/trigger.dev
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasecf8450eb633ec589502c42ff6f4072e40db65da3
ui-targetcanary-2
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/triggerdotdev/trigger.dev/pull/4923/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftriggerdotdev%2Ftrigger.dev%2Fpull%2F4923%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftriggerdotdev%2Ftrigger.dev%2Fpull%2F4923%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=triggerdotdev%2Ftrigger.dev
Reloadhttps://github.com/triggerdotdev/trigger.dev/pull/4923/files
Reloadhttps://github.com/triggerdotdev/trigger.dev/pull/4923/files
Reloadhttps://github.com/triggerdotdev/trigger.dev/pull/4923/files
triggerdotdevhttps://github.com/triggerdotdev
trigger.devhttps://github.com/triggerdotdev/trigger.dev
Codehttps://github.com/triggerdotdev/trigger.dev
Issues203 (203)https://github.com/triggerdotdev/trigger.dev/issues
Pull requests67 (67)https://github.com/triggerdotdev/trigger.dev/pulls
Discussionshttps://github.com/triggerdotdev/trigger.dev/discussions
Actionshttps://github.com/triggerdotdev/trigger.dev/actions
Projectshttps://github.com/triggerdotdev/trigger.dev/projects
Security and quality39 (39)https://github.com/triggerdotdev/trigger.dev/security
Insightshttps://github.com/triggerdotdev/trigger.dev/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Ftriggerdotdev%2Ftrigger.dev%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Ftriggerdotdev%2Ftrigger.dev%2Fissues%2Fnew%2Fchoose
ericallamhttps://github.com/ericallam
mainhttps://github.com/triggerdotdev/trigger.dev/tree/main
feat/hosted-webhooks-sdkhttps://github.com/triggerdotdev/trigger.dev/tree/feat/hosted-webhooks-sdk
Conversation 7 https://github.com/triggerdotdev/trigger.dev/pull/4923
Commits 1 https://github.com/triggerdotdev/trigger.dev/pull/4923/commits
Checks 75 https://github.com/triggerdotdev/trigger.dev/pull/4923/checks
Files changed https://github.com/triggerdotdev/trigger.dev/pull/4923/files
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4923/files
feat(sdk,cli,core): webhook() with typed provider sources, filters, and indexing https://github.com/triggerdotdev/trigger.dev/pull/4923/files#top
Show all changes 1 commit https://github.com/triggerdotdev/trigger.dev/pull/4923/files
a46f330 feat(sdk,cli,core): webhook() with typed provider sources, filters, a… ericallam Sep 11, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4923/commits/a46f3306c55a1c137dcd3df8f4d20dbee9b1a374
Clear filters https://github.com/triggerdotdev/trigger.dev/pull/4923/files
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4923/files
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4923/files
hosted-webhook-ingress.md https://github.com/triggerdotdev/trigger.dev/pull/4923/files#diff-6475d87805cc0eeddf2a30fb725f998161c9573a7e5d4dd99ecc8090f701cecf
docs.json https://github.com/triggerdotdev/trigger.dev/pull/4923/files#diff-873ce17c654718debe2fe308a2f2279bde8663686423c51f97fab2dd0722b8d9
connect.mdx https://github.com/triggerdotdev/trigger.dev/pull/4923/files#diff-9fdbdb0bba42babd010d6eabaa1d535c99959bad6e4958f605cc87d14a3f8b10
deliveries.mdx https://github.com/triggerdotdev/trigger.dev/pull/4923/files#diff-01c115e46a2ecf9d6d8bb7c82d7354ef9f75906ab3d22f5038e02443a4181db9
filters.mdx https://github.com/triggerdotdev/trigger.dev/pull/4923/files#diff-150f86a2f1ead355ce40e70781713c93608180829477bfa021f8b4932eff2da3
overview.mdx https://github.com/triggerdotdev/trigger.dev/pull/4923/files#diff-d4c78c3ad0a8fcde50eacd3aaa4a05f98756e1165e396ce7197bc8593e6dad0f
sources.mdx https://github.com/triggerdotdev/trigger.dev/pull/4923/files#diff-aec2ed6d0277e579348a8dbfdd943709c4a806e658a0ce6f886c2ac43318f344
devSupervisor.ts https://github.com/triggerdotdev/trigger.dev/pull/4923/files#diff-071ef3fb057647679a2bd68f4e5dbf642a873e637baaa657347b5a7bf1d701c3
dev-index-worker.ts https://github.com/triggerdotdev/trigger.dev/pull/4923/files#diff-ff73f4ab8d82f4665623986f80b8fb2c993a454e0c909c2c611af45d69904b69
managed-index-controller.ts https://github.com/triggerdotdev/trigger.dev/pull/4923/files#diff-f4f2abd53e05368538ad79309b08d7964bf928b11cb68ef4ac46ccedb3058dce
managed-index-worker.ts https://github.com/triggerdotdev/trigger.dev/pull/4923/files#diff-1e775e52b13cd001442d1e7c738b0bf548cc7b317193775b3d4c4b1ef6fcd83a
indexWorkerManifest.ts https://github.com/triggerdotdev/trigger.dev/pull/4923/files#diff-d51f7b63b605a0ee8248ca6c536e4176323137a648ebb9ac3bb1be59dfbcf62a
reportWebhookIdCollisions.ts https://github.com/triggerdotdev/trigger.dev/pull/4923/files#diff-b07c16ce3929f772f5148fc4f951bea328857298c5732b40542b0db4c489864d
errors.ts https://github.com/triggerdotdev/trigger.dev/pull/4923/files#diff-f85300d28424755d0824ae90458aed5cd9385be4b9276a4b6c3808b3d536fbfc
messages.ts https://github.com/triggerdotdev/trigger.dev/pull/4923/files#diff-d488a25578c71745c852d92c5394c765a7b0d2ef9c93fc5e4c3f65c680be72a4
webhooks.ts https://github.com/triggerdotdev/trigger.dev/pull/4923/files#diff-2b8f9a437ded7ca556d6ae345e499d3f6698c2762487c72afb755a2df1f9c750
.changeset/hosted-webhook-ingress.mdhttps://github.com/triggerdotdev/trigger.dev/pull/4923/files#diff-6475d87805cc0eeddf2a30fb725f998161c9573a7e5d4dd99ecc8090f701cecf
View file https://github.com/triggerdotdev/trigger.dev/blob/a46f3306c55a1c137dcd3df8f4d20dbee9b1a374/.changeset/hosted-webhook-ingress.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/4923/{{ revealButtonHref }}
docs/docs.jsonhttps://github.com/triggerdotdev/trigger.dev/pull/4923/files#diff-873ce17c654718debe2fe308a2f2279bde8663686423c51f97fab2dd0722b8d9
View file https://github.com/triggerdotdev/trigger.dev/blob/a46f3306c55a1c137dcd3df8f4d20dbee9b1a374/docs/docs.json
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/4923/{{ revealButtonHref }}
https://github.com/triggerdotdev/trigger.dev/pull/4923/files#diff-873ce17c654718debe2fe308a2f2279bde8663686423c51f97fab2dd0722b8d9
https://github.com/triggerdotdev/trigger.dev/pull/4923/files#diff-873ce17c654718debe2fe308a2f2279bde8663686423c51f97fab2dd0722b8d9
docs/webhooks/connect.mdxhttps://github.com/triggerdotdev/trigger.dev/pull/4923/files#diff-9fdbdb0bba42babd010d6eabaa1d535c99959bad6e4958f605cc87d14a3f8b10
View file https://github.com/triggerdotdev/trigger.dev/blob/a46f3306c55a1c137dcd3df8f4d20dbee9b1a374/docs/webhooks/connect.mdx
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/4923/{{ revealButtonHref }}
docs/webhooks/deliveries.mdxhttps://github.com/triggerdotdev/trigger.dev/pull/4923/files#diff-01c115e46a2ecf9d6d8bb7c82d7354ef9f75906ab3d22f5038e02443a4181db9
View file https://github.com/triggerdotdev/trigger.dev/blob/a46f3306c55a1c137dcd3df8f4d20dbee9b1a374/docs/webhooks/deliveries.mdx
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/4923/{{ revealButtonHref }}
coderabbitaihttps://github.com/apps/coderabbitai
Sep 11, 2026https://github.com/triggerdotdev/trigger.dev/pull/4923/files#r3992155885
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4923/files
docs/webhooks/filters.mdxhttps://github.com/triggerdotdev/trigger.dev/pull/4923/files#diff-150f86a2f1ead355ce40e70781713c93608180829477bfa021f8b4932eff2da3
View file https://github.com/triggerdotdev/trigger.dev/blob/a46f3306c55a1c137dcd3df8f4d20dbee9b1a374/docs/webhooks/filters.mdx
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/4923/{{ revealButtonHref }}
docs/webhooks/overview.mdxhttps://github.com/triggerdotdev/trigger.dev/pull/4923/files#diff-d4c78c3ad0a8fcde50eacd3aaa4a05f98756e1165e396ce7197bc8593e6dad0f
View file https://github.com/triggerdotdev/trigger.dev/blob/a46f3306c55a1c137dcd3df8f4d20dbee9b1a374/docs/webhooks/overview.mdx
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/4923/{{ revealButtonHref }}
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4923/files
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4923/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.