Skip to content

Releases: akromicc/GithubEmbed

1.0

06 Oct 03:45

Choose a tag to compare

GithubEmbed v1.0

Description

GithubEmbed is a JavaScript class that allows you to easily fetch and display information about GitHub repositories. This version enables you to retrieve repository data such as contributors, stars, forks, and open issues, all presented in a visually appealing card format.

Features

  • Fetch Repository Data: Get detailed information about a GitHub repository using the GitHub API.
  • Contributors Information: Retrieve and display up to 8 contributors, highlighting the efforts of your project's collaborators.
  • Dynamic Rendering: Automatically updates the UI with fetched data and manages loading states effectively.
  • Error Handling: Comprehensive error messages to enhance user experience even in case of data fetching issues.

Usage

To use the GithubEmbed class, create an instance with the organization and repository name, and then call the render method. Here's an example:

const githubEmbed = new GithubEmbed('owner', 'repository-name');
githubEmbed.render();