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

@intlsdk/report

v1.5.2

Published

## Getting Started

Downloads

42

Readme

SDK 数据上报

Getting Started

import Report, { Channel } from '@intlsdk/report';

// 初始化(生成新session_id)
Report.init({
  env: 'sg', // 环境或后台域名,详见【env参数】
  gameId: 11, // INTL 分配的游戏 ID
  sigKey: 'xxx', // INTL一站式工作台分配的 SDK_KEY(与gameId匹配)
  channelId: Channel.Guest, // 登录渠道 ID
  appVersion: '1.2.3', // 业务应用版本号
  openId: 'clzhu', // 用户ID
});

// 扩展选项(不生成新session_id)
Report.extend({ openId: 'clzhu' });

// 上报kv数据(兼容数组方式批量上报,详见下方示例)
Report.reportEvents({
  eventName: 'xxx', // 自定义事件名称
  // 以下为其他自定义字段,详见tlog文档
});

// 批量上报kv数据
Report.reportEvents([
  {
    eventName: 'xxx', // 自定义事件名称
    // 以下为其他自定义字段,详见tlog文档
  },
  {
    srcId: 1000, // 数据源ID,默认为200表示自定义事件上报
    eventName: 'http', // 事件名称
    // 以下为其他自定义字段,详见tlog文档
  },
]);

env 参数

env参数兼容 2 种写法:区域标识简写完整url前缀,满足https://{env}-dr.intlgame.com格式的域名都可以使用区域标识简写方式

区域标识简写

  • sg 新加坡,与https://sg-dr.intlgame.com(完整 url 前缀)等效,下同
  • na 北美(azure)
  • mos 俄罗斯
  • jp 日本
  • eu 欧洲
  • aws-na 北美
  • sa 南美
  • lonelyfish lonelyfish 现网独立集群
  • us 硅谷(腾讯云)
  • in 印度

完整 url 前缀

任意 url 域名前缀,必须含https://,示例:https://sg-dr.intlgame.com,与sg(区域标识简写)等效