Hacktoberfest 2026: as issues que os mantenedores marcaram para outubro, abertas e boas para iniciantes. Ver issues do Hacktoberfest

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

Aberta
#304 3 comentários 0 reações 1 responsável Ver no GitHub

Mantenedores costumam responder em até 1 dia

@anurag2787 já está trabalhando nisso.

Desde 28/10/2026.

  • #312 de @anurag2787 — aberto

Avaliação

Esta issue ainda não foi avaliada.

Descrição

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.

Linguagem predominante
TypeScript
Estrelas
8
Forks
4
Merge médio
8h 19min
PRs com merge (30d)
129

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de codercops/ogcops

Todas as issues de codercops/ogcops

Issues semelhantes

Mais issues de TypeScript

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.