Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Add the Package Card GitHub template (`github-package-card`)

未关闭
#304 3 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

维护者通常 1 天内回复

@anurag2787 已经在做这个了。

开始于 2026年10月28日。

评估

这个 Issue 还没有评估数据。

描述

good first issue hacktoberfest templates

Part of #5. For announcing or sharing a published package (npm, PyPI, crates.io and so on).

Idea
A small "npm package" label in the accent color at the top (the registry name comes from a field), the package name large under it ("@acme/csv-stream") with its version in a small pill next to it ("v2.4.1"), and a one-line pitch ("A streaming CSV parser for Node"). Then the weekly downloads and the license side by side ("182k weekly downloads", "MIT"), the install command in a monospace box with a $ prompt ("npm i @acme/csv-stream"), and the site name at the bottom.

Template details

  • File: src/templates/github/package-card.ts, id github-package-card
  • Fields: commonFields.title (the package name), commonFields.description (the pitch, optional), registry (text, optional, default "npm"), version (text, optional, default "v2.4.1"), downloads (text, optional, default "182k weekly downloads"), license (text, optional, default "MIT"), install (text, optional, default "npm i @acme/csv-stream"), commonFields.siteName, commonFields.bgColor, commonFields.accentColor, commonFields.textColor

Where to look

  • Closest reference: src/templates/github/repo-card.ts (a repository with its stats), src/templates/github/terminal-style.ts (a command in a monospace box)

Acceptance criteria

  • A long package name and pitch shrink with autoFontSize() and then truncate, a long install command truncates inside its box, and an empty pitch, registry, version, downloads, license, install or site name (or only spaces) hides cleanly with no leftover gap
  • The label, the version pill and any accent text stay readable on a light background
  • Re-exported in src/templates/github/index.ts and registered in the GitHub block of src/templates/registry.ts
  • Meets the shared template checklist in #5

One template per contributor at a time, so more people get a chance.


Want to work on this? Comment below and I'll assign it to you. Please take one issue at a time, branch off dev, and open your PR against dev with Closes #304 in the description.

主要语言
TypeScript
星标
8
派生
4
平均合并
7 小时 52 分钟
30 天内合并 PR
130

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

codercops/ogcops 的其他 Issue

查看 codercops/ogcops 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。