https://github.com/okineadev/contributors-table-npm
👥 GitHub contributors table generator
https://github.com/okineadev/contributors-table-npm
contributors generator github image
Last synced: 11 months ago
JSON representation
👥 GitHub contributors table generator
- Host: GitHub
- URL: https://github.com/okineadev/contributors-table-npm
- Owner: okineadev
- License: mit
- Created: 2025-01-11T09:38:25.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-07-01T22:09:36.000Z (12 months ago)
- Last Synced: 2025-07-31T09:18:45.847Z (11 months ago)
- Topics: contributors, generator, github, image
- Language: TypeScript
- Homepage: https://npmjs.com/package/contributors-table
- Size: 411 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# contributors-table
[](https://npmjs.com/package/contributors-table) [](https://github.com/okineadev/contributors-table-npm/actions/workflows/test.yml) [](https://bun.sh) [](https://biomejs.dev/)
GitHub contributors table generator
> Powers the [contributors-table.vercel.app](https://contributors-table.vercel.app) 😎
## ✨ Features
- ⚙️ Flexible settings
- 🔗 Hyperlinks to contributors profiles
- 💡 Hints when hovering over an avatar
- 🎨 Customizable
- 🤝 Images supported by Markdown on GitHub and anywhere!
## 📦 Installation
```bash
npm install contributors-table
# If you are using Bun
bun install contributors-table
```
## 🚀 Usage
### Basic Usage
```ts
import { generateContributorsTable } from 'contributors-table'
import { Octokit } from '@octokit/core'
const octokit = new Octokit()
const contributorsList = await octokit.request(
'GET /repos/{owner}/{repo}/contributors',
{
owner: 'octocat',
repo: 'Hello-World'
}
)
const image = generateContributorsTable(contributorsList.data)
// ...
```
### 🏞️ An example of an image

### Advanced Usage
#### Use another image format
```ts
// Generate a PNG image
generateContributorsTable(..., { format: 'png' })
```
### Customize the table
```ts
generateContributorsTable(..., {
// The width of the avatars
width: 60,
// Gap between avatars
gap: 10,
// The number of avatars per row
columns: 10,
// Number of rows
rows: 7,
// The roundness of the avatars
roundness: 50,
// Stroke around avatars
strokeWith: 0.8,
// Whether to render avatars on the server side.
// If false - then the browser itself downloads images from GitHub
// If true - then the script takes care of downloading avatars and embedding them
// Always `true` if `format` != `'svg'`
ssr: true
})
```
## 🤝 Contributing
Thank you for considering contributing to contributors-table 😀!
Please read the [CONTRIBUTING.md](CONTRIBUTING.md) file for more information about how to contribute to this project.
## ❤️ Support
If you like this project, consider supporting it by starring ⭐ it on GitHub, sharing it with your friends, or [buying me a coffee ☕](https://github.com/okineadev/contributors-table-npm?sponsor=1)
## 📝 License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.