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 🙏

© 2024 – Pkg Stats / Ryan Hefner

icourt-burry-point

v1.0.3

Published

产品研究院埋点系统

Downloads

174

Readme

// ├── src
// │ ├── lib
// │ │ ├── analytics.js # 埋点核心逻辑
// │ │ └── utils.js # 工具函数
// │ ├── plugins
// │ │ ├── click.js # 点击事件插件
// │ │ ├── view.js # 页面访问事件插件
// │ │ └── ...
// │ ├── index.js # SDK 入口文件
// │ ├── config.js # 配置文件
// │ └── ...
// ├── dist # 打包输出目录
// ├── test # 测试代码目录
// └── ...

src 文件夹包含了 SDK 的源代码。

lib 文件夹存放了埋点 SDK 的核心逻辑,例如发送数据到服务器、事件监听等。

analytics.js 是埋点的核心逻辑代码,负责收集和发送埋点数据。

utils.js 包含了一些工具函数,用于辅助埋点功能的实现。

plugins 文件夹存放了埋点的插件代码,不同的插件用于捕获不同类型的事件。

click.js 是一个点击事件插件,用于捕获用户的点击行为。

view.js 是一个页面访问事件插件,用于捕获用户的浏览行为。

其他插件文件,根据具体需求可以有不同的插件类型。

index.js 是 SDK 的入口文件,负责初始化和配置埋点功能。

config.js 是 SDK 的配置文件,包含一些全局的配置项,例如服务器地址、采样率等。

其他文件和文件夹用于支持 SDK 的功能和扩展。

dist 文件夹是打包输出目录,存放了经过打包处理后的埋点 SDK 代码。

test 文件夹包含了测试代码,用于测试 SDK 的功能和正确性。