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

alogs

v0.1.5

Published

The front-end log collection module management

Downloads

514

Readme

alogs

=======

Build Status NPM version

概述

alogs 是一个可以并行多个统计模块的框架

使用

安装

$npm install alogs

或者

$bower install alogs

引用

<script>
void function(e,t,n,a,o,i,m){
  e.alogObjectName=o,e[o]=e[o]||function(){(e[o].q=e[o].q||[]).push(arguments)},e[o].l=e[o].l||+new Date,i=t.createElement(n),i.asyn=1,i.src=a,m=t.getElementsByTagName(n)[0],m.parentNode.insertBefore(i,m);
}(window,document,"script","../../alog.min.js","alog");
</script>

背景

我们会使用或开发各种不同的统计模块对产品的使用情况进行收集,以便衡量产品的健康状况和对产品发展方向进行决策

  • 随着前端交互越来越丰富,统计要分析的维度也越来越多样
  • 经常一个页面中就会并行着多个统计模块:有性能相关的、有点击相关的、有业务相关的
  • alogs 使用一些少量简单的 API 将这些复杂的统计模块统一组织起来

解决什么问题?

  • 减少统计模块加载对产品的影响

alogs 使用异步方式加载统计模块,不堵塞页面正常资源加载; 另外值得一提的是,alogs 的模块文件不依赖加载顺序、兼容同步和异步加载。

  • 并行多个统计模块

alogs 适合什么应用场景?

  • 简单统计

直接这页面中调用

  • 复杂统计

定义和业务紧密相关的复杂模块

代理统计

接入第三方统计模块