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

supermartian

v1.0.11

Published

`channelPv`

Readme

项目

 `渠道推广统计`
 

项目部署

1.拉取git
git clone ssh://[email protected]:16868/root/channelPv.git

2.初始化项目
cd /channelPv

##登录npm 账号    
npm login  看前端部署文档有账号

##初始化
npm init  

##运行调试
gulp dev

## 修改代码
。。。。。

## 打包代码-测试服
gulp test

## 打包代码-正式服服
gulp prod

## 每次更新都要更新版本号 
package.json 31行  :  "version": "1.0.6",

## 推送代码到npm 
npm publish

# 推送到npmjs后,可以登录后台看下。

# 然后 使用CDN域名  https://unpkg.com/ 可以访问项目里面的文件
# 格式
	https://unpkg.com/包名/具体js文件
	
	
### 代码记得同步git	 

项目使用

在各个站点增加下面js 代码

<!-- 正式服服-->
<!-- channelPv -->
<script>
	var _hmt = _hmt || [];
	(function() {
	  var hm = document.createElement("script");
	  hm.src = "https://unpkg.com/supermartian/dist/static/js/main.js";
	  var s = document.getElementsByTagName("script")[0]; 
	  s.parentNode.insertBefore(hm, s);
	})();
</script>

<!-- 测试服-->
<!-- channelPv -->
<script>
	var _hmt = _hmt || [];
	(function() {
	  var hm = document.createElement("script");
	  hm.src = "https://unpkg.com/supermartian/test/static/js/main.js";
	  var s = document.getElementsByTagName("script")[0]; 
	  s.parentNode.insertBefore(hm, s);
	})();
</script>

充值和注册统计+推广分享

获取浏览器储存里的下面2个参数 ,提交到充值和注册的api
渠道编码: channelPromotionStatisticsKey_channelcode
来源域名:channelPromotionStatisticsKey_sourceDomain
推广人id:promotionAndSharingKey_muReferrerId
localStorage.getItem('channelPromotionStatisticsKey_channelcode')
localStorage.getItem('channelPromotionStatisticsKey_sourceDomain')
localStorage.getItem('promotionAndSharingKey_muReferrerId')