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

tauri-plugin-pliap

v1.0.6

Published

Tauri plugin for in-app purchases and subscriptions

Readme

Tauri Plugin PLIAP (DEPRECATE, NO LONGER MAINTAINED AND DEVELOPMENT)

Crates.io Crates.io License

A Tauri plugin for handling in-app purchases and subscriptions across desktop and mobile platforms.

Features

  • Cross-platform support: Desktop (Windows, macOS, Linux) and Mobile (Android, iOS)
  • In-app purchases: One-time purchases with Google Play Billing and App Store
  • Subscriptions: Recurring subscriptions with multiple base plans
  • Product management: Query product information and pricing
  • Purchase tracking: Get all user purchases and consumption status
  • TypeScript support: Full type definitions for the JavaScript API

Platform Support

| Platform | Status | Notes | | -------- | ------- | ---------------------- | | Android | ✅ Full | Google Play Billing v6 |

ℹ️ Hiện tại plugin chỉ hỗ trợ Android. Hỗ trợ iOS và Desktop sẽ được cập nhật trong tương lai.

Installation

Rust (Cargo.toml)

[dependencies]
tauri-plugin-pliap = "1.0.6"

JavaScript/TypeScript

npm install tauri-plugin-pliap
# or
yarn add tauri-plugin-pliap
# or
pnpm add tauri-plugin-pliap

Quick Start

1. Register the plugin

// src-tauri/src/main.rs
fn main() {
    tauri::Builder::default()
        .plugin(tauri_plugin_pliap::init())
        .run(tauri::generate_context!())
        .expect("error while running tauri application");
}

2. Configure permissions

// src-tauri/capabilities/default.json
{
  "permissions": [
    "core:default",
    "pliap:allow-ping",
    "pliap:allow-create-purchase",
    "pliap:allow-create-purchase-subscription",
    "pliap:allow-consume",
    "pliap:allow-get-product",
    "pliap:allow-get-all-purchases",
    "pliap:allow-get-subscription",
    "pliap:allow-get-list-subscription"
  ]
}

3. Use in your app

import { createPurchase, getProduct } from "tauri-plugin-pliap";

// Create a purchase
const success = await createPurchase("product_id_123");

// Get product info
const product = await getProduct("product_id_123");
console.log("Product:", product.title, "Price:", product.price);

API Reference

Core Functions

  • ping(value: string) - Test plugin connection
  • createPurchase(productId: string) - Create one-time purchase
  • createPurchaseSubscription(options) - Create subscription
  • consume(purchaseToken: string) - Consume a purchase
  • getProduct(productId: string) - Get product information
  • getAllPurchases() - Get all user purchases
  • getSubscription(productId: string) - Get subscription info
  • getListSubscription(productIds: string[]) - Get multiple subscriptions

Key Types

interface BillingProduct {
  productId: string;
  title: string;
  description: string;
  price: string;
  productType: string;
}

interface SubscriptionPurchaseResponse {
  success: boolean;
  purchaseToken?: string;
  orderId?: string;
  isAutoRenewing?: boolean;
}

Platform Setup

Android

Add to AndroidManifest.xml:

<uses-permission android:name="com.android.vending.BILLING" />
<uses-permission android:name="android.permission.INTERNET" />

iOS

Ensure your app has:

  • Valid App Store Connect configuration
  • Product IDs configured in App Store Connect
  • Proper code signing and provisioning profiles

Examples

See the examples/tauri-app directory for a complete working example.

Contributing

Contributions are welcome! Please read our Contributing Guide before submitting a pull request.

License

MIT License - see LICENSE file for details.

Support

Publish

cargo login

Publish test, not upload: cargo publish --dry-run

cargo publish