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

@idleflowgames/capacitor-in-app-review

v0.2.0

Published

Capacitor 8 plugin for native in-app review prompts: Google Play In-App Review on Android, StoreKit on iOS.

Readme

@idleflowgames/capacitor-in-app-review

Capacitor 8 plugin for native in-app review prompts. Wraps Google Play In-App Review (Play Core) on Android and StoreKit on iOS, with a safe no-op fallback on web.

The OS owns the prompt: both platforms heavily throttle how often the dialog can appear and never report whether the user actually saw it. This plugin asks the platform to show the prompt and tells you whether the request reached native. The eligibility policy (minimum sessions, days since install, cooldown between asks) is yours to implement in app code.

Install

npm install @idleflowgames/capacitor-in-app-review
npx cap sync

Supported platforms

| Platform | Backing API | Notes | | -------- | -------------------------------------- | ------------------------------------------------ | | Android | Google Play In-App Review (Play Core) | Requires the app installed from Google Play. | | iOS | StoreKit (iOS 15+) | System-throttled to a few prompts per 365 days. | | Web | none | Resolves { shown: false, reason: "web" }. |

Usage

import { InAppReview } from "@idleflowgames/capacitor-in-app-review";

const { shown, reason } = await InAppReview.requestReview();
if (!shown) {
  // Benign: quota reached, no foreground activity/scene, or running on web.
  console.debug("review prompt not requested:", reason);
}

requestReview() resolves { shown: true } once the request reached the platform. Treat that as "requested", not "seen": the OS may suppress the dialog silently and does not report back.

API

requestReview()

requestReview() => Promise<RequestReviewResult>

Ask the operating system to display its native in-app review prompt.

  • Android: Google Play In-App Review (Play Core).
  • iOS: AppStore.requestReview(in:) (iOS 16+), with a legacy fallback on iOS 15.
  • Web: resolves { shown: false, reason: "web" }, so the call is safe from any environment without a platform check.

Both native APIs are fire-and-forget and heavily throttled by the OS, so a resolved { shown: true } means the request reached the platform, not that the user saw (or will see) the dialog. Implement your own eligibility/cooldown policy in app code.

Returns: Promise<RequestReviewResult>

Since: 0.1.0


Interfaces

RequestReviewResult

| Prop | Type | Description | | ------------- | -------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | shown | boolean | Whether the JS-to-native bridge completed a request to the platform review API. This does NOT indicate the user actually saw the dialog: the underlying OS review APIs silently no-op when their (undocumented) frequency quota is exceeded and do not report back. | | reason | string | Failure or no-op reason when shown is false (e.g. "request_failed", "launch_failed", "no_activity", "no_window_scene", "web"). | | code | number | Android Play @ReviewErrorCode (or the GMS statusCode) when a request or launch flow failed with a ReviewException / ApiException. Absent for benign quota no-ops and on iOS. | | message | string | Underlying failure message when shown is false, for diagnostics. |

Development

Use Node 26 and the pnpm version pinned in package.json. Native builds need Xcode 26+, Capacitor 8.5.1+, and Android Gradle Plugin 9.4 / Gradle 9.6+ with Java 21.

pnpm install
pnpm verify      # TypeScript lint + typecheck + build + package tests + pack check
brew install swiftlint  # macOS, once
pnpm lint:swift

The TypeScript bridge is built to dist/ (ESM + CJS + types). The native sources under android/ and ios/ ship in the package and are wired up by npx cap sync.

License

MIT © Idle Flow Games