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

@umamichi-ui/giscus-theme

v0.1.2

Published

Giscus widget themes vendored from the giscus project for Umamichi UI sites.

Readme

@umamichi-ui/giscus-theme

npm version license: LGPL-3.0-or-later + MIT CSS

以下说明性正文由对话中的语言模型生成,未经过人工逐字核对;许可证与第三方归属以 LICENSETHIRD_PARTY_NOTICES.md 及上游仓库为准。

面向 Umamichi UI 站点的 giscus 评论组件主题包:内置从 giscus 上游 同步的 light / dark 样式(CSS 变量),便于与站点其余样式一同版本化,并在 iframe 中通过绝对 URL 加载。

安装

npm install @umamichi-ui/giscus-theme

本包将 @umamichi-ui/common-css 声明为 依赖,以便与站点公共 token 层对齐;当前发布的 CSS 文件内容仍与上游 giscus 一致,未额外 @import common-css(后续若做主题定制可在此层接入)。

在 React / Vite / Astro 中与 @giscus/react 使用

giscus 的 theme 属性可传入 样式表的绝对 URL。使用 Vite 的 ?url 查询参数得到打包后的资源地址,并按站点明暗切换选择对应文件:

import Giscus from "@giscus/react"
import giscusDarkUrl from "@umamichi-ui/giscus-theme/dark.css?url"
import giscusLightUrl from "@umamichi-ui/giscus-theme/light.css?url"

const giscusThemeUrls = { light: giscusLightUrl, dark: giscusDarkUrl } as const

// …根据站点主题解析出 "light" | "dark" 后:
<Giscus /* …其他 props */ theme={giscusThemeUrls[resolved]} />

导出

| 子路径 | 说明 | |--------|------| | @umamichi-ui/giscus-theme/light.css | 与 giscus 内置 light 对应 | | @umamichi-ui/giscus-theme/dark.css | 与 giscus 内置 dark 对应 |

许可证与归属

  • 本仓库整体:LGPL-3.0-or-later(见根目录 LICENSE);package.jsonlicense 字段为 (LGPL-3.0-or-later AND MIT),因 vendored 主题文件适用 MIT。
  • 上游主题与 giscus 项目:见 THIRD_PARTY_NOTICES.mdvendor/giscus/LICENSE

维护者:发布到 npm

  1. 在包目录执行 npm publish --access public(需已登录 npm 且对 @umamichi-ui scope 有发布权限)。
  2. 消费仓库将依赖设为 "@umamichi-ui/giscus-theme": "^0.1.0"(或当前主版本)后执行 npm install 以刷新 lockfile。
  3. 在包未发布前 联调可使用:npm install @umamichi-ui/giscus-theme@file:../umamichi-ui-giscus-theme(路径按本地布局调整)。