npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

app-intent-launcher

v2.2.0

Published

allows opening other apps with app intent on tv os (android focus)

Readme

app-intent-launcher

allows opening other apps with app intent on tv os (android focus)

Install

npm install app-intent-launcher
npx cap sync

API

echo(...)

echo(options: { value: string; }) => Promise<{ value: string; }>

| Param | Type | | ------------- | ------------------------------- | | options | { value: string; } |

Returns: Promise<{ value: string; }>


launchApp(...)

launchApp(options: LaunchAppOptions) => Promise<LaunchAppResult>

Launches an app by package name (Android).

  • packageName: required package id (eg. "com.netflix.ninja")
  • component: optional component (package/class) to launch
  • extras: optional intent extras sent as key/value strings
  • flags: optional integer bitflags for the intent

Returns { success: true } on a fired intent, or { success: false, message } on error.

| Param | Type | | ------------- | ------------------------------------------------------------- | | options | LaunchAppOptions |

Returns: Promise<LaunchAppResult>


getInstalledPackages()

getInstalledPackages() => Promise<GetPackagesResult>

Returns: Promise<GetPackagesResult>


searchPackages(...)

searchPackages(options: SearchPackagesOptions) => Promise<GetPackagesResult>

| Param | Type | | ------------- | ----------------------------------------------------------------------- | | options | SearchPackagesOptions |

Returns: Promise<GetPackagesResult>


launchSelf()

launchSelf() => Promise<LaunchAppResult>

Returns: Promise<LaunchAppResult>


launchAppWithUri(...)

launchAppWithUri(options: LaunchAppWithUriOptions) => Promise<LaunchAppResult>

Launches an app via ACTION_VIEW with a data URI instead of the default LAUNCHER activity. Use for apps like YouTube TV where the standard launcher triggers an OS account picker. Falls back through: explicit component → package-scoped URI → standard launch.

| Param | Type | | ------------- | --------------------------------------------------------------------------- | | options | LaunchAppWithUriOptions |

Returns: Promise<LaunchAppResult>


launchVideoApp(...)

launchVideoApp(options: LaunchVideoAppOptions) => Promise<LaunchAppResult>

Launches a video app (YouTube TV, YouTube on ATV) into a guaranteed-clean Android task.

Resolves the intent via getLeanbackLaunchIntentForPackage first, then getLaunchIntentForPackage as fallback. Applies FLAG_ACTIVITY_CLEAR_TASK so any leftover poisoned task (e.g. a crashed GMS account picker) is torn down before the app starts — the device always lands on the app's own QR / cast-code sign-in.

Does NOT use ACTION_VIEW with a data URI. That path routes through GMS account resolution and unconditionally triggers the picker on managed devices.

Rejects with "App not installed: <packageName>" if neither resolver finds a launcher activity.

Use the exported PKG_YOUTUBE_TV / PKG_YOUTUBE_ATV constants for the package names.

| Param | Type | | ------------- | ----------------------------------------------------------------------- | | options | LaunchVideoAppOptions |

Returns: Promise<LaunchAppResult>


displayToast(...)

displayToast(options: DisplayToastOptions) => Promise<void>

Displays an Android Toast message.

| Param | Type | | ------------- | ------------------------------------------------------------------- | | options | DisplayToastOptions |


Interfaces

LaunchAppResult

| Prop | Type | | -------------- | -------------------- | | success | boolean | | returned | boolean |

LaunchAppOptions

| Prop | Type | | ----------------- | ------------------------------------------------------------------------------------ | | packageName | string | | appName | string | | action | string | | data | string | | extras | Record<string, string | number | boolean> |

GetPackagesResult

| Prop | Type | | -------------- | --------------------- | | packages | string[] |

SearchPackagesOptions

| Prop | Type | | ----------- | ------------------- | | query | string |

LaunchAppWithUriOptions

| Prop | Type | Description | | ------------------- | ------------------- | ---------------------------------------------------------------------------------------------------------------------------- | | packageName | string | | | dataUri | string | | | activityClass | string | Optional fully-qualified activity class name. If provided, targets that activity directly (strongest account-picker bypass). |

LaunchVideoAppOptions

| Prop | Type | Description | | ----------------- | ------------------- | ------------------------------------------------------------------------------------------------------ | | packageName | string | Package name of the video app to launch. Use the PKG_YOUTUBE_TV or PKG_YOUTUBE_ATV exported constants. |

DisplayToastOptions

| Prop | Type | | -------------- | ------------------------------ | | msg | string | | duration | 'short' | 'long' |

Type Aliases

Record

Construct a type with a set of properties K of type T

{ [P in K]: T; }