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

xy-log

v1.0.0

Published

## 项目目标

Readme

mvt

项目目标

  • 收集页面真实用户性能信息,提供两秒率分析

  • 支持mvt渠道的统计,cvr,shopper,visit(4小时),pv,uv,事件,order(maybe),通过率(maybe)

  • 浏览器和系统维度

client脚本使用

  • 网站使用 修改 vt=4
  • H5使用 保留 vt=2

使用方法

tjClient.setData({a:1});//web参数

server部署

svn

http://svn.elong.cn/svn/Code/onlineweb/MobileH5/Trunk/mvtlog

打包

http://hudson.corp.elong.com:8080/job/mvttj/

上线

http://vela.corp.elong.com/vela/module/897

数据模型

参数 | 哪端提供 | 说明 | 类型 | 描述 ------------ | ------------- | ------------ | ------------- | ------------- dt | 前 | 硬件设备端 | number | 用户的设备分类 | | | | 1—Iphone | | | | 2—Ipad | | | | 3—Android | | | | 5—Winphone | | affiliate - 第三方平台,联盟设备无法获取 | | 6—Affiliate | | | | 7—PC | | | | 8—androidpad | | | | 9—windowspad | | | | 99—Unkown at | | "激活id,h5-cookieid app-deviceid" | | md | 前 | 品牌,eg:华为/三星... | string | 机型,如果有 os | 前 | 系统版本 | string | 系统版本 ct | 前 | 页面容器(浏览器or微信or第三方app...) | string | 容器类型 nt | 前 | 网络类型 | number | 网络类型(可选) | | | | 0—unknown | | | | 1-ethernet | | | | 2-wifi | | | | 3-2g | | | | 4-3g | | | | 5-4g tsp | 后 | 运营商 | string | "运营商 日志收集时不用传" cip | 后 | 用户ip | string | 用户ip vt | 后 | "业务分类 (网站/h5/app/联盟…)" | number | 该设备的分类来源 | | "问题: 1. 跨端的串联" | | 1—App | | | | 2—Html5 | | | | 3—Affiliate | | | | 4—PC | | | | 99—Unkown v | 后 | "系统当前线上版本 eg:hotel1.1" | string | 系统当前线上版本 lg | 后 | 语言类型 | number | 语言 http://www.rzfanyi.com/ArticleShow.asp?ArtID=969 ch | 后 | 提供统一标准,eg:酒店-hotel/机票/myelong... | string | 频道名(小写) pt | 后 | 页面名称 | string | "页面名(小写) app已有一套,参考统一使用 参考http://svn.elong.cn/svn/Code/onlineweb/Web_Hotel/Trunk/src/Com.Elong.Files/Config/Web/NoEnv/Hotel/ChannelPageConfig.config 框架定义页面的meta配置,统一维护" rf | ? | 页面来源(上一跳) | string | 页面来源 id | 后 | 日志pk | string | guid pid | 后 | 上一跳日志id | string | 跨端上一跳日志id of | 后 | orderfrom-用户来源,eg:大众点评/投放/baidu... | string | orderfrom值,用于统计 chid | 后 | chnnelID多个chid对应一个orderfrom | string | orderfrom细分二级分类 bs | 前 | | string | 设备分辨率 sid | 后from cookie | "shopper 当前cvr = 订单/shopper,cvr需要统一,shopper需要统一" | string | sessionid of elong cid | 后from cookie | uv | string | cookieid of elong st | 后 | web服务器接收访问时间,打给stj | timestamp | 开始时间戳(connectStart) fst | 前 | 首屏时间(执行到tj代码前的时间) | timestamp | 执行到tj代码前的时间 drt | 前 | 端渲染完成时间 | timestamp | domready时间(domContentLoadedEventEnd) olt | 前 | 端加载完成时间(包括img) | timestamp | onload时间(loadEventEnd) kt | 待定 | 页面停留时间(选) | timestamp | 停留时间 opens | 前(APP) | 打开方式(后台/唤起...) | number | mvtN | 前 | mvt | number | 1,2,3...(可选)