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

expo-cafebazaar-intents

v1.0.1

Published

CafeBazaar intents for Expo (Android): open app page, rate/reviews page, developer page, CafeBazaar login page, and app update page.

Readme

expo-cafebazaar-intents

Cafe Bazaar intents for Expo (Android): app page, rate/reviews page, developer page, Bazaar login page, and app update page.

Use this in Expo/React Native apps that target the Cafe Bazaar (کافه‌بازار) store. Based on the Bazaar intent documentation.

Platform

  • Android: supported (opens Bazaar app or optional web fallback)
  • iOS / Web: no-op; isBazaarInstalled() returns false, open methods return false

Installation

npx expo install expo-cafebazaar-intents

To use your app’s package name automatically in the examples below, also install expo-application:

npx expo install expo-application

Or with npm / pnpm / yarn:

npm install expo-cafebazaar-intents
npm install expo-application   # optional, for getting package name automatically

Usage

Get your app’s package name (Android application ID) with expo-application, then pass it to the intent methods:

import * as Application from "expo-application";
import CafeBazaarIntents from "expo-cafebazaar-intents";

// Your app's package name (e.g. "com.mycompany.myapp") – use this for app/rate/update intents
const packageId = Application.applicationId ?? "com.your.package";

// Check if Bazaar is installed (e.g. to show "Rate on Bazaar" only when relevant)
const installed = CafeBazaarIntents?.isBazaarInstalled() ?? false;

// Open your app's page in Bazaar (view details)
await CafeBazaarIntents?.openAppPage(packageId);

// Open rate page so the user can rate your app
await CafeBazaarIntents?.openRatePage(packageId);

// If Bazaar is not installed, open the web page in browser
await CafeBazaarIntents?.openRatePage(packageId, {
  openInBrowserIfNotInstalled: true,
});

// Open developer/author page in Bazaar (get your developer ID from https://pishkhan.cafebazaar.ir/settings/developers-titles)
await CafeBazaarIntents?.openDeveloperPage("YOUR_DEVELOPER_ID", {
  openInBrowserIfNotInstalled: true,
});

// Open Bazaar login page
await CafeBazaarIntents?.openLoginPage({ openInBrowserIfNotInstalled: true });

// Open app page so user can update the app
await CafeBazaarIntents?.openAppUpdatePage(packageId, {
  openInBrowserIfNotInstalled: true,
});

On Android, Application.applicationId is your app’s package name (same as android.package in app.json). On iOS/Web it returns the bundle identifier or null, so the fallback 'com.your.package' is only used when applicationId is not available.

API

| Method | Description | | ------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | isBazaarInstalled() | Returns whether the Cafe Bazaar app is installed. | | openAppPage(packageId, options?) | Opens the app’s detail page in Bazaar (bazaar://details?id=...). | | openRatePage(packageId, options?) | Opens the app’s page in Bazaar in rate/edit mode. | | openDeveloperPage(developerId, options?) | Opens the developer page in Bazaar (bazaar://collection?slug=by_author&aid=...). Get your developer ID from Cafe Bazaar Developer Panel. | | openLoginPage(options?) | Opens the Bazaar login page (bazaar://inapplogin). | | openAppUpdatePage(packageId, options?) | Opens the app’s page in Bazaar so the user can update the app. |

Options (optional):

  • openInBrowserIfNotInstalled?: boolean – If true and Bazaar is not installed, opens the corresponding page on cafebazaar.ir in the browser. Default: false.

All open* methods return a Promise<boolean>: true if the Bazaar intent was started (or the fallback browser was opened when openInBrowserIfNotInstalled is set), false otherwise.

Android 11+ (API 30+)

The module declares a <queries> entry for com.farsitel.bazaar so the app can detect whether Bazaar is installed. No extra config plugin is required.

License

MIT