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

@mobtechi/ads

v1.2.0

Published

Industrial-grade Monetization SDK for the MobTechi ecosystem. Pluggable Ad and Revenue components for React, React Native, and Capacitor.

Readme

@mobtechi/monetization

Unified Monetization SDK for the MobTechi ecosystem. Provides a single interface for Ads, Subscriptions, and Revenue tracking across React (Web), React Native (Expo), and Capacitor.

Features

  • 📱 Cross-Platform: Seamlessly handles AdMob for mobile and Web-based ads for browser environments.
  • 💰 Subscription Management: Integrated status checks and checkout flows for premium features.
  • 🛡️ Type-Safe: Written in TypeScript with full type definitions for all ad components and hooks.
  • 🧩 Pluggable: Works with Expo, Capacitor, and pure React.

Installation

npm install @mobtechi/monetization

Expo Integration (Zero-Config)

If you are using Expo (CNG), you don't need to configure react-native-google-mobile-ads manually. Just add @mobtechi/monetization to your plugins in app.json:

{
  "expo": {
    "plugins": [
      [
        "@mobtechi/monetization",
        {
          "androidAppId": "your-android-app-id",
          "iosAppId": "your-ios-app-id"
        }
      ]
    ]
  }
}

Peer Dependencies

For Capacitor support:

npm install @capacitor-community/admob @capacitor/core

Usage

1. Initialize the Provider

Wrap your application root with the MobTechiMonetizationProvider.

import { MobTechiMonetizationProvider } from '@mobtechi/monetization';

function App() {
  return (
    <MobTechiMonetizationProvider 
      orgId="your-org-id" 
      appKey="your-app-key"
      isPremium={false}
    >
      <MainLayout />
    </MobTechiMonetizationProvider>
  );
}

2. Display a Banner Ad

import { MobTechiBanner } from '@mobtechi/monetization';

function Component() {
  return (
    <View>
      <MobTechiBanner />
    </View>
  );
}

3. Check Premium Status

import { useMobTechiMonetization } from '@mobtechi/monetization';

function Component() {
  const { isPremium, loading, startCheckout } = useMobTechiMonetization();

  if (loading) return <Spinner />;

  return (
    <View>
      {isPremium ? (
        <Text>Welcome Premium User!</Text>
      ) : (
        <Button title="Upgrade" onPress={() => startCheckout('PLAN_ID')} />
      )}
    </View>
  );
}

4. Rewarded Ads

Use MobTechiRewarded to provide user incentives. Note that baseUrl is required for reward verification and claiming.

import { MobTechiRewarded } from '@mobtechi/monetization';

function RewardButton() {
  return (
    <MobTechiRewarded 
      label="Watch to Earn 50 XP"
      baseUrl="https://your-api.com/api"
      onSuccess={(reward) => {
        console.log('Reward claimed:', reward);
      }}
    />
  );
}

License

MIT © MobTechi