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

d0051sss

v1.0.0

Published

A web application for UNPKG distribution

Readme

UP - Web Application

这是一个准备发布到UNPKG的Web应用程序。

使用方法

通过UNPKG访问

<!-- 直接访问主页 -->
https://unpkg.com/d0051s@latest/

<!-- 或者引用特定文件 -->
https://unpkg.com/d0051s@latest/index.html

<!-- 访问静态资源 -->
https://unpkg.com/d0051s@latest/static/images/4-001.png
https://unpkg.com/d0051s@latest/static/css/base.css

本地开发

  1. 克隆或下载项目
  2. 使用任何HTTP服务器打开 index.html
  3. 或者直接在浏览器中打开 index.html

项目结构

up/
├── index.html          # 主入口文件
├── package.json        # NPM包配置
├── static/            # 静态资源
│   ├── css/           # 样式文件
│   ├── js/            # JavaScript文件
│   ├── images/        # 图片资源
│   └── fonts/         # 字体文件
├── assets/            # 其他资源文件
└── pages/             # 页面相关资源

路径修复机制

本项目包含了完整的UNPKG路径修复机制:

  1. 自动检测环境:检测是否在UNPKG环境下运行
  2. 动态base标签:自动设置正确的base URL
  3. 网络请求拦截:拦截XMLHttpRequest和fetch请求,修复错误路径
  4. DOM元素修复:自动修复图片src和背景图片URL
  5. 动态监听:使用MutationObserver监听DOM变化,实时修复新添加的元素

支持的路径格式

  • https://unpkg.com/[email protected]/static/images/1-001.png
  • static/images/1-001.png (相对路径)
  • /static/images/1-001.png (绝对路径)
  • ✅ 动态生成的路径也会被自动修复

版本历史

  • v1.0.0: 初始版本,适配UNPKG发布,包含完整的路径修复机制

许可证

MIT