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

allo-miniapp-sdk

v2.51.3

Published

Allo Mini App SDK

Readme

allo-miniapp-sdk

JavaScript SDK for building Allo mini-apps — small web apps that run inside the Allo super-app on iOS and Android. The SDK exposes a typed API for the host capabilities a mini-app needs: identity, payments, media, storage, networking, lifecycle events, and navigation between mini-apps.

The same SDK powers production payment, marketplace, and OA mini-apps inside Allo. It works against the Allo iOS / Android shells, the Studio simulator, and the admin-panel sandbox.

Install

npm install allo-miniapp-sdk
# or
yarn add allo-miniapp-sdk

No peer dependencies. Works in any modern bundler (Vite, webpack, rollup, esbuild). Ships ESM + CJS + full TypeScript declarations.

Quick start

import {
  getSystemInfo,
  getUserInfo,
  createOrder,
  showToast,
  onAppShow,
} from 'allo-miniapp-sdk'

// Lifecycle
onAppShow(() => console.log('mini-app foregrounded'))

// Identity (requires user consent the first time)
const me = await getUserInfo()
console.log(me.nickname)

// Payment
const order = await createOrder({
  amount: 5000,          // santim (ETB ¢)
  currency: 'ETB',
  description: 'Premium plan — 1 month',
})

// UI
showToast({ title: `Order ${order.status}`, icon: 'success' })

What you get

| Area | APIs | |---|---| | Identity | getUserInfo, getPhoneNumber, login, getAccessToken, authorize | | Payments | createOrder, checkTransaction | | Device | getSystemInfo, getDeviceInfo, getDeviceId, vibrate, keepScreen | | Media | chooseImage, takePhoto, saveImageToGallery, createCameraContext | | Storage | getStorage, setStorage, removeStorage, clearStorage, getStorageInfo | | Networking | request, downloadFile, uploadFile, connectWifi | | Location | getLocation, chooseLocation | | Navigation | openMiniApp, openWebview, openOutApp, openDocument, openChat | | Scan / Share | scanQRCode, share, getShareableLink | | Marketplace | addRating, addFavorite | | Lifecycle | onAppShow, onAppHide, offAppShow, offAppHide (+ more) |

See the full API reference at the Developer Portal docs.

React hooks

The SDK ships a small React hooks layer under a separate subpath so React apps can subscribe to host state without managing listeners by hand:

import { useUserInfo, useNetworkStatus } from 'allo-miniapp-sdk/hooks'

function Header() {
  const user = useUserInfo()
  const net  = useNetworkStatus()
  return <span>{user?.nickname ?? 'Guest'} · {net?.isConnected ? '●' : '○'}</span>
}

TypeScript

Full type definitions ship in the package. No @types/allo-miniapp-sdk needed. Every API has documented return types and parameter shapes.

Targets

The SDK auto-detects the host environment at runtime and routes calls through whichever bridge is available:

  • Allo iOS / Android — native bridges
  • Allo Mini App Studio — desktop simulator bridge
  • Admin-panel sandbox — same-origin browser bridge (real APIs where possible; honest errors for native-only capabilities)

You don't have to do anything different in your code — the same call works across all of them.

Compatibility

  • Node tooling: any version supporting modern ES2018 output
  • Browsers: evergreen + Allo's embedded WebView (Android 7+, iOS 14+)
  • Bundlers: ESM-first, CJS fallback, no top-level await

License

MIT — see LICENSE.