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

@bytetechjsc/pangocdp-zmalog-sdk

v0.0.5

Published

To make it easy for you to integrate with PangoCDP ZMA Event Log.

Readme

[Beta] Pango Zalo Mini App Log SDK

To make it easy for you to integrate with PangoCDP ZMA Event Log.

Prerequisites

Variables that need to be provided by PangoCDP Team

  • orgId
  • cdpAppId
  • publicKey

🛠️ Install Dependencies

npm

npm install @bytetechjsc/pangocdp-zmalog-sdk

yarn

yarn add @bytetechjsc/pangocdp-zmalog-sdk

🧐 Features

  • Init SDK
  • Follow OA
  • Ingest log to PangoCDP
  • Get User Info (name, avatar, phone number, location)

🧐 Init SDK Variables

| Name| Type| Description | Sample | -------- | -------- | -------- | -------- | | env | string | The environment of log (development, production) | development | | orgId | string | Organization ID | 8e23f11bae7e38478c3d0f99f467bb58 | | cdpAppId | string | PangoCDP App ID | d3dbe129c8259cea103660edcf4d6217-1730875326238 | | publicKey | string | Public key of PangoCDP App ID | MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMII.... |

🧑🏻‍💻 Usage

Create new file instrument.ts

  • Auto event generation: open-app
import * as PangoSDK from '@bytetechjsc/pangocdp-zmalog-sdk';

PangoSDK.init({
    env: "development",
    orgId: "8e23f11bae7e38478c3d0f99f467bb58",
    cdpAppId: "d3dbe129c8259cea103660edcf4d6217-1730875326238",
    publicKey: "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQE..."
})

Include the initialization file as the first import statement

import "./instrument";
import App from "./App";
import { createRoot } from "react-dom/client";

const container = document.getElementById(“app”);
const root = createRoot(container);
root.render(<App />);

Follow Offical Account

  • Auto event generation when follow oa: follow-oa
import * as PangoSDK from '@bytetechjsc/pangocdp-zmalog-sdk';
const data = await PangoSDK.follow()

Ingest event log | Name| Type| Description | -------- | -------- | -------- | | unique | string | Set this event is unique in one session open app | | eventName| string | Name of the event | | eventData | object| Add more data to event |

import * as PangoSDK from '@bytetechjsc/pangocdp-zmalog-sdk';
PangoSDK.ingest({
    unique: true,
    eventName: "sdk-test",
    eventData: { test: 'hihi' }
})

Get User Info

  • Auto event generation when share phone: allow-phone
  • Auto event generation when share location: share-location
  • Auto event generation when not share: reject-zalo-permission
import * as PangoSDK from '@bytetechjsc/pangocdp-zmalog-sdk';
const data = await PangoSDK.getInfo(["scope.userLocation", 'scope.userPhonenumber'])
// {success: true, error: "", number: "0123456789", latitude: "10.709926", longitude: "106.709282"}

🙇 Author

[email protected]