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 🙏

© 2025 – Pkg Stats / Ryan Hefner

ttracker

v1.0.3

Published

TTracker是一个前端日志系统,它将错误信息记录于本地localStorage中。无任何依赖、如入侵性。

Downloads

5

Readme

TTracker前端日志工具

概述

TTracker是一个前端日志系统,它将错误信息记录于本地localStorage中。无任何依赖、如入侵性。使用非常简单,很容易引入你的系统中,而且不会造成任何影响。 查看日志快捷键: Ctrl+6

特点

  • 丢上去不管,我们承诺永不入侵你的业务!
  • 兼容各种系统,不管你使用的是jQuery、angular1/2、React、Vue,都可以使用它
  • 完善的查错机制,截图预览、导出excel、直接上传到后台查看等
  • 文件超小,Gzip 5k对你几乎毫无影响

快速开始

1、html中直接引入

// 在html中插入js,丢上去不管
<script charset="utf-8" src="./ttracker.es.js"></script>

2、npm安装

npm i ttracker --save

3、使用

import TTracker from 'ttracker';

// 示例:自定义上报
new TTracker({
  feID: '', // 项目id,日志区分项目使用
  useBeacon: false,
  report: (lines) =>  {
    console.log('error lins', lines);
  },
});

// 如果你想自定义错误埋点
TTracker.probe("this is my custom error!");

// 如果你想主动上报
TTracker.report();

开发

// 本地开发
npm run start
// 发布环境
npm run build