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

@xylink/xy-toolkit

v1.0.1

Published

## 项目简介 toolkit 是一个实用工具集合,提供了一系列常用的功能和组件,帮助开发者提高开发效率。

Readme

toolkit

项目简介

toolkit 是一个实用工具集合,提供了一系列常用的功能和组件,帮助开发者提高开发效率。

安装和使用

安装

使用 npm 安装:

npm install @xylink/xy-toolkit --save

或使用 yarn 安装:

yarn add @xylink/xy-toolkit

使用示例

// 导入 XYDetector
import { XYDetector } from '@xylink/xy-toolkit';

// 使用 XYDetector
const browser = XYDetector.browser;

主要功能

toolkit 提供了以下核心功能模块:

| 类别 | 模块 | 描述 | | ---- | ---- | ---- | | 检测与环境 | XYDetector | 环境检测工具,可检测浏览器、设备、WebRTC支持情况等 | | | XYBrowserDetector | 浏览器信息检测,识别浏览器类型、版本等 | | | XYStreamDetector | 媒体流能力检测 | | 数据与存储 | XYStore | 缓存存储管理 | | | XYList/XYMap | 高效数据结构实现 | | | XYJson | 安全的JSON解析和序列化 | | 事件处理 | XYEmitter | 事件发布/订阅机制 | | | XYResize | 屏幕大小变化监听 | | 多媒体处理 | XYSnapshot | 截图模块 | | | XYDevicePressure | 设备压力测试模块 | | | XYFullScreen | 全屏控制模块 | | | XYZoom | DOM元素缩放和拖拽控制 | | 通信与交互 | XYFrameBridge | IFrame跨窗口通信库 | | | XYAsyncQueue | 异步队列管理 | | | XYSyncQueue | 同步队列管理 | | 通用工具函数 | XYDebounce/XYThrottle | 防抖与节流函数 | | | XYNoSleep | 防止设备进入休眠模式 | | | XYValidator | 参数校验 | | 时间工具 | XYTime | 时间处理工具 |

版本历史

请查看 CHANGELOG.md 了解详细的版本更新历史。