
Company News
Socket Joins New OpenJS Program to Fund Node.js Security Work
Socket is joining the OpenJS Security Stewardship Program to fund Node.js vulnerability research, maintainer remediation, and security releases.
openpanel-miniprogram
Advanced tools
OpenPanel SDK for WeChat Mini Programs.
npm install openpanel-miniprogram
// app.ts
import { OpenPanel, installAutoTracking } from 'openpanel-miniprogram';
const op = new OpenPanel({
clientId: 'YOUR_CLIENT_ID',
apiUrl: 'https://your-instance.com', // default: https://api.openpanel.dev
});
// Optional: auto-track page_view on every Page.onShow
installAutoTracking(op);
App({
onLaunch() {
// identify user when ready
op.identify({ profileId: 'user-123' });
},
});
// pages/index/index.ts
import { OpenPanel } from 'openpanel-miniprogram';
const op = new OpenPanel({ clientId: 'YOUR_CLIENT_ID' });
Page({
onTap() {
op.track('button_click', { button: 'buy_now' });
},
});
interface MiniprogramOpenPanelOptions {
clientId: string; // Required
clientSecret?: string; // Only for server-side events
apiUrl?: string; // Default: https://api.openpanel.dev
requestAdapter?: WxRequestAdapter; // Default: wx
storageAdapter?: StorageAdapter; // Default: wx.getStorageSync/setStorageSync
autoTrackPageView?: boolean; // Default: true (via installAutoTracking)
debug?: boolean;
filter?: (payload) => boolean;
disabled?: boolean;
}
All methods from @openpanel/sdk are available:
op.track(name, properties?)
op.identify({ profileId, firstName?, lastName?, email?, properties? })
op.setGroup(groupId)
op.setGroups(groupIds)
op.upsertGroup({ id, type, name, properties? })
op.increment({ profileId, property, value? })
op.decrement({ profileId, property, value? })
op.revenue(amount, properties?)
op.setGlobalProperties(properties)
op.clear()
op.screenView(pagePath, properties?) // miniprogram-specific
op.destroy() // cleanup listeners
Events are automatically queued when the device is offline and flushed when connectivity returns. The queue is persisted to wx.storage so events survive app restarts.
@openpanel/sdk core classwx.requestwx.storage__platform, __os, __model, __system, __screen, __wxVersion, __sdkVersionMIT
FAQs
OpenPanel SDK for WeChat Mini Programs
The npm package openpanel-miniprogram receives a total of 15 weekly downloads. As such, openpanel-miniprogram popularity was classified as not popular.
We found that openpanel-miniprogram demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Company News
Socket is joining the OpenJS Security Stewardship Program to fund Node.js vulnerability research, maintainer remediation, and security releases.

Security News
Two compromised GitHub Actions were re-enabled with malicious tags intact, exposing thousands of downstream repositories to Mini Shai-Hulud.

Research
/Security News
A malicious Firefox extension fetches its payload after installation to evade detection, steal Google session cookies, and automate account takeover.