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

pc-demo-ai-realize

v0.0.0

Published

根据 Figma 设计 [PC 3 | 体验优化 - 图片基建](https://www.figma.com/design/A5j9IzIvvLDI8mxZZWIt19/?node-id=26280-32693) 实现的 PDF/图片文档查看器界面。

Downloads

98

Readme

PC 图片文档 - 体验优化 Demo

根据 Figma 设计 PC 3 | 体验优化 - 图片基建 实现的 PDF/图片文档查看器界面。

技术栈

  • React 18 + Vite
  • CSS 变量(与 Figma 设计 token 对齐:--pc-background--brand-primary 等)
  • 无 Tailwind,便于与现有设计体系对接

运行

npm install
npm run dev

在浏览器打开终端显示的本地地址(如 http://localhost:5173)。

实现范围

  • 顶部应用栏:首页 / 个人信用报告 / 当前文档 Tab(含关闭)
  • 文档头部:CS 品牌 + 面包屑 + 标签(工作、+5)+ 操作 Tab(阅读、图片处理、批注、页面、格式转换)+ 打印/下载/分享/保存
  • 工具栏:选择、手型、连续视图/单页/双页/演示模式、搜索
  • 左侧边栏:第 1 页 / 第 2 页缩略图、「将文档拖到这里 或点击上传」上传区
  • 主内容区:PDF 预览区 + 示例文案与表格(与设计稿一致)
  • 底部栏:页码(1/9)、上一页/下一页、视图切换、缩放(100%)、全屏

图标与缩略图使用 Figma MCP 返回的资源 URL;若在浏览器中无法加载,可将资源下载到 public/ 并替换 src/App.jsx 中的 assets 路径。

设计规范

详见 docs/PC设计交互规范.md