Library / SDK
airbnb/DeepLinkDispatch avatar
airbnb/DeepLinkDispatch

DeepLinkDispatch reads your @DeepLink annotations and routes the URI to an Activity or handler

A simple, annotation-based library for making deep link handling better on Android

4,412 stars414 forksKotlinLicense varies

At a glance

What is it?
Airbnb's Android library turns @DeepLink annotations into generated manifest entries and typed dispatch. It suits teams with many URI variants across library modules, and less well those with one or two fixed links.
Who is it for?
Adopt DeepLinkDispatch if your links live in Android library modules, need many host and path variants, and your handlers want typed arguments without an Intent. Skip it if you have a single static link in one app module, or if the compile-time coupling to every placeholder is a cost you would rather not pay.
Can I use it commercially?
Not without permission. GitHub finds no licence file in the repository, and without a licence all rights are reserved by default: you may read the code but not reuse it. Check the README, or ask the authors, before using it.
Is it still maintained?
Yes. The repository last received commits 18 days ago.
What is it written in?
Mainly Kotlin, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on November 22, 2026, and from our analysis. They are not legal advice.

From daily snapshots

Star history

  • airbnb/DeepLinkDispatch4,412 ★ · -3
Star history
Repository2026-09-232026-11-22
airbnb/DeepLinkDispatch4.4k4.4k

-3 Stars in the last 60 days, measured from the daily GitHub snapshot. Compare with other projects

Editorial analysis

The problem is not opening a URI, it is keeping the manifest in step with it

Android already opens a URI into an Activity if you write the intent filter yourself. The cost lands later, when a product team adds a campaign link, a regional host or a new screen and nobody remembers the three places the URI now has to agree on. DeepLinkDispatch takes the URI off that list: you annotate the Activity with `@DeepLink` and a template, and the library handles the rest.

The audience is Android engineers with a large surface of inbound links, which in practice means apps that support share sheets, emails, ads and QR codes pointing at the same install. A developer working on one app module with two fixed links gets very little from an annotation processor. The library is written in Kotlin and ships several Gradle modules, including `deeplinkdispatch-processor` and `deeplinkdispatch-gradle-plugin`, which tells you the target audience is build tooling aware.

The template syntax looks like a URI with named holes in it, and holes are how the rest of the system works.

Placeholders are matched on scheme, host and path only

An Activity declares its links like this, with `{id}` standing in for the value that arrives:

java
@DeepLink("example://example.com/deepLink/{id}")
public class SampleActivity extends Activity {
  @Override protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    Intent intent = getIntent();
    if (intent.getBooleanExtra(DeepLink.IS_DEEP_LINK, false)) {
      Bundle parameters = intent.getExtras();
      String idString = parameters.getString("id");
      // Do something with idString
    }
  }
}

Read the note carefully, because it is the detail a skim misses: only the scheme, host and path elements are used to match the incoming link to code. Query parameters take no part in matching, even though they are carried through and end up in the deep link metadata. So a handler annotation with `?query1={queryParameter}` in it matches on the path alone, and two links that differ only in their query string resolve to the same code path.

`DeepLink.IS_DEEP_LINK` is the boolean extra every target checks first. Without that check an Activity cannot tell a dispatched link from an ordinary launch.

Handler objects skip the Intent and give you typed arguments

The second dispatch target is a Kotlin `object` extending `com.airbnb.deeplinkdispatch.handler.DeepLinkHandler`. Its arguments arrive as a data class instance, with path and query values already converted:

kotlin
@DeepLink("foo://example.com/handlerDeepLink/{param1}?query1={queryParameter}")
object ProjectDeepLinkHandler : DeepLinkHandler<ProjectDeepLinkHandlerArgs>() {
    override fun handleDeepLink(parameters: ProjectDeepLinkHandlerArgs) {
        /**
         * From here any internal/3rd party navigation framework can be called the provided args.
         */
    }
}

Built-in conversion covers `Boolean`, `Int`, `Long`, `Short`, `Byte`, `Double`, `Float` and `String`, nullable and non-nullable, plus the Java equivalents. For other types the README points to its Type conversion section.

The constraint worth knowing is the symmetry check. All placeholders and query parameters specified in the template must be present in the arguments class. That failure is a build error rather than a crash at click time, which is the main argument for the library. One asymmetry remains: values annotated `DeepLinkParamType.Query` can still be null, because a query parameter is allowed to be absent from the matched URL.

Manifest generation only runs under KSP and outside app modules

The whole point of the library is that the manifest stops being a manual artefact, but that promise has three preconditions. Three conditions decide whether generation runs at all: KSP for the processor, a library module instead of an application module, and a fully qualified activity class name spelled out as `activityClassFqn` on the annotation. A link declared inside the application module generates nothing, and a project still on kapt gets no manifest entries either. `sample-ksb-library` shows the working arrangement.

Because generated entries land in a library module, a Gradle plugin has to merge them into the build, and that plugin must be applied after the kotlin and android plugins:

groovy
apply plugin: 'com.airbnb.deeplinkdispatch.manifest-generation'

The default entries are minimal:

xml
<action android:name="android.intent.action.VIEW" />

along with the `DEFAULT` and `BROWSABLE` categories. You can override them through the `actions` and `categories` values on `@DeepLink`. The ordering constraint is not a suggestion, and applying the plugin earlier, or on the application module, is the failure mode that wastes an afternoon.

Where the approach breaks down

The regex-like alternation in the manifest example (`http{scheme(|s)}://example.{domain(com|de|ro)}/deepLink/{id}`) shows how much of the variation budget you have to enumerate by hand in the annotation itself. That enumeration is the real maintenance surface, and it lives in Kotlin source rather than in a link dashboard.

Second, App Links verification needs care: the README notes that Android verifies every host in a filter using android:autoVerify="true", and on Android 11 and lower one failing host fails them all, so hosts that can never pass verification belong in unverifiedPrefix on a @DeepLinkSpec.

Hand-written intent filters and plain AndroidX Navigation take different routes

The realistic alternative is a hand-maintained `intent-filter` plus your own parsing of the incoming data URI. That approach inverts the trade: no build step and no processor, and every link written twice, once in the manifest and once in code. DeepLinkDispatch's argument is that the annotation is the single copy and the manifest entry is generated from it.

The other alternative is AndroidX Navigation, which dispatches to destinations rather than to Activities, and takes its URI patterns as explicit arguments rather than reading them off annotations. DeepLinkDispatch targets the older Activity model: it launches an Activity or calls a handler object, and the README's handler example notes that any internal or third party navigation framework can be called from inside `handleDeepLink`. If your app already routes everything through Navigation destinations, the library duplicates a layer you have.

The last push on the repository was on 2026-10-09, and the recent tags are 7.3.0 on 2026-10-09, 7.2.2 on 2026-01-29 and 7.2.1 on 2026-01-14.

Adopt it for link-heavy library modules, skip it for a single link

Two specific checks decide this. First, look at where your `@DeepLink` annotations can legally live. If they sit in library modules and you already run KSP, the manifest generation removes a real class of bug. If every link is declared in the application module, requirement two is violated and the generation path never applies, leaving you with annotation-based dispatch but no generated manifest entries.

Second, count how many host and path variants you must support. DeepLinkDispatch makes each declared variant cheap and each undeclared variant a silent miss. Teams that launch regional campaigns with per-market hosts already write those templates; the library helps. Teams that control every inbound URI do not.

Verify the generated `AndroidManifest.xml` merge in a build before you migrate a single link. That one artefact tells you whether the plugin ordering works in your project, and nothing else in the documentation will tell you as quickly.

Editorial conclusion

Adopt DeepLinkDispatch if your links live in Android library modules, need many host and path variants, and your handlers want typed arguments without an Intent. Skip it if you have a single static link in one app module, or if the compile-time coupling to every placeholder is a cost you would rather not pay. Before adopting, run KSP once on a real library module and read the generated manifest entries, because the plugin must be applied after the kotlin and android plugins and cannot be applied to an android application module.

Frequently asked questions

What is DeepLinkDispatch used for?

It is Airbnb's Android library for declaring deep links as @DeepLink annotations instead of hand-written intent filters. It parses an incoming URI and dispatches it to the matching Activity, or calls a DeepLinkHandler object with typed arguments.

Is DeepLinkDispatch safe to use in production apps?

The README covers App Links verification for generated intent filters, including unverifiedPrefix for hosts that can never pass verification. Match logic uses only the scheme, host and path of the URI, so validate any parameters your handlers receive before acting on them.

Does DeepLinkDispatch require kapt or ksp?

Manifest generation requires ksp, and the deep links must sit in a module that is not an application module. You must also give activityClassFqn on @DeepLink or @DeepLinkSpec, and apply the manifest generation plugin after the kotlin and android plugins.

Official sources

  1. airbnb/DeepLinkDispatch on GitHub
  2. Issues
  3. Project website
  4. README
  5. Releases
Add this badge to your README

If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.

Add this badge to your README

markdown
[![Hysen Labs](https://hysenlabs.com/badge/airbnb-deeplinkdispatch.svg)](https://hysenlabs.com/projects/airbnb-deeplinkdispatch)

Star history chart for your README

markdown
[![Star history](https://hysenlabs.com/chart/airbnb-deeplinkdispatch.svg)](https://hysenlabs.com/projects/airbnb-deeplinkdispatch)

Was this useful?