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

capacitor-3rddigital-appupdate

v1.0.18

Published

Auto OTA update handler for Capacitor + React apps

Downloads

95

Readme

capacitor-3rddigital-appupdate

A Capacitor + React library for seamless Over-The-Air (OTA) updates with:

  • 🔄 Automatic version checks
  • 📥 Bundle download & installation (iOS & Android)
  • ⚡ Configurable user prompts (dialogs)
  • 🛠️ CLI tool for building & uploading bundles to your update server

🚀 Installation

npm install capacitor-3rddigital-appupdate
# or
yarn add capacitor-3rddigital-appupdate

This package has peer dependencies that also need to be installed:

npm install @capacitor/app @capacitor/core @capacitor/device @capgo/capacitor-updater

After installation, build your app and sync Capacitor:

npm run build
npx cap sync

📦 Usage in Your App

  • Use the useCapacitorUpdater hook to check for updates and handle modal UI:
import React from "react";
import { UpdaterModal, useCapacitorUpdater } from "capacitor-3rddigital-appupdate";

const App = () => {
  const { isUpdateModalVisible, updateInfo, handleUpdate, setUpdateModalVisible } = useCapacitorUpdater({
    baseUrl: 'https://your-api-url.com',
    iosPackage: "com.example.ios",
    androidPackage: "com.example.android",
    apiKey: "example-key",
    showProgress: true,
    onProgress: (p) => console.log(`Progress: ${p}%`),
  });

  return (
    <div>
      {/* Your app content */}
      {isUpdateModalVisible && updateInfo && (
        <UpdaterModal
          visible={isUpdateModalVisible}
          updateInfo={updateInfo}
          onConfirm={() => handleUpdate()}
          onCancel={() => setUpdateModalVisible(false)}
        />
      )}
    </div>
  );
};

export default App;

⚙️ API Reference

🔹 useCapacitorUpdater(options?: { baseUrl: string; iosPackage?: string; androidPackage?: string; apiKey: string; showProgress?: boolean; onProgress?: (percent: number) => void })

  • Checks the server for available updates and manages the modal prompt.

Returns:

| Key | Type | Description | | ----------------------- | ---------------- | ----------------------------------- | | updateInfo | UpdateInfo | Metadata about the available update | | isUpdateModalVisible | boolean | Whether the update modal is visible | | setUpdateModalVisible | (bool) => void | Show/hide modal manually | | handleUpdate | () => void | Downloads and installs the update | | progress | number | Download progress |

🔹 UpdaterModal

  • Global modal component for prompting users to update.

Props:

| Key | Type | Default | Description | | ------------- | ---------- | -------------------- | ----------------------------------- | | visible | boolean | ❌ | Show/hide modal | | updateInfo | UpdateInfo | ❌ | Update metadata | | onConfirm | function | ❌ | Callback when user confirms update | | onCancel | function | ❌ | Callback when user cancels update | | customUI | function | ❌ | Custom render for the modal UI | | title | string | "Update Available" | Modal title | | message | string | undefined | Modal message | | confirmText | string | "Update" | Confirm button text | | cancelText | string | "Cancel" | Cancel button text | | styles | object | {} | Style overrides for modal & buttons |

🖥️ CLI Tool – appupdate

  • This package provides a CLI for building & uploading OTA bundles.

Build & Upload

npx appupdate android
npx appupdate ios
npx appupdate all

You will be prompted for:

  • API Token
  • Project ID
  • Environment (development / production)
  • Android flavor, when productFlavors are present
  • iOS target, when multiple app targets are present
  • Version
  • Bundle zip file, when multiple generated bundles are available
  • Force Update (true/false)

What it does

  • Builds your React web app
  • Creates Capgo zip bundle
  • Uploads bundle + metadata to your update server