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

@hocgin/giboard

v1.0.3

Published

show github project with board

Readme

@hocgin/giboard

Use github project graphql api with Board
在线浏览 / Demo

npm

Screen

img.png

Usage

pnpm install @hocgin/giboard

需要创建一个只有read:project权限的Token。创建 Token
⚠️ 注意: 请不要将 Token 提交到公共仓库,否则 GitHub 会自动进行 Token 回收。

<GiBoard token={'ghp_wfheNxmh0HhsxCZi...'} login="hocgin" projectId="16"
         style={{height: 400}}/>

如果你已经有自己的看板接口,可以直接传入 api,组件会优先请求该接口,并要求它返回与当前方案一致的看板数据结构。

<GiBoard api="/api/board" token={'ghp_wfheNxmh0HhsxCZi...'} login="hocgin" projectId="16"
         style={{height: 400}}/>

如果你想手动覆盖标题下方的描述,可以传入 subtitle,它会优先于接口返回的 shortDescription

<GiBoard subtitle="自定义描述" token={'ghp_wfheNxmh0HhsxCZi...'} login="hocgin" projectId="16"
         style={{height: 400}}/>

如果你想把底部的说明单独覆盖掉,可以传入 readme,它会优先于接口返回的 readme 字段。

<GiBoard readme="自定义底部说明" token={'ghp_wfheNxmh0HhsxCZi...'} login="hocgin" projectId="16"
         style={{height: 400}}/>

如果项目里有多个仓库,可以传入 repositories,右上角会显示过滤选择器;如果只传一个仓库名,组件会自动过滤但不显示选择器。

<GiBoard repositories={['repo-a', 'repo-b']} token={'ghp_wfheNxmh0HhsxCZi...'} login="hocgin" projectId="16"
         style={{height: 400}}/>

| 字段 | 类型 | 描述 | |-------------|--------|--------------------------| | Title | String | 标题 | | Status | Enum | 枚举,Todo/In Progress/Done | | Priority | Number | 可选,优先级, Desc | | Description | String | 可选,描述 | | Complete | Number | 可选,完成度 | | Assignees | User | 可选,用户信息 |

Development

# install dependencies
$ pnpm install

# develop library by docs demo
$ pnpm start

# build library source code
$ pnpm run build

LICENSE

MIT