Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đang mở
#304 3 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@anurag2787 đang làm issue này rồi.

Từ ngày 28/10/2026.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

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.

Ngôn ngữ chính
TypeScript
Star
8
Fork
4
Merge trung bình
7 giờ 52 phút
Pull request đã merge (30 ngày)
130

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của codercops/ogcops

Tất cả issue của codercops/ogcops

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.