Github UI Widget CDN

ahmetilhn

Ahmet İlhan

Posted on September 30, 2022

Github UI Widget CDN

https://github.com/ahmetilhan24/github-ui-widgets

Github UI Widget

alt

Routes

  • :username/profile
  • :username/:repo/commits
  • :username/repositories

Route Structure

Profile

  • :username/user-card
  • Allows you to retrieve a user's information such as followers, following, public repositories, gists
  • Params: username: string | required Your Github username E.G. /ahmetilhan24/user-card
  • Response: fullname, username, bio, public repositories, gists, follower, following
  • Usage:
  <iframe
    title="Github User Profile"
    width="310px"
    height="340px"
    src="http://localhost:5555/ahmetilhan24/profile"
  ></iframe>
Enter fullscreen mode Exit fullscreen mode

Not responsive

Repositories

  • :username/repositories
  • Lets you get public repositories
  • Params: username: string | required Your Github username E.G. /ahmetilhan24/repositories
  • Response: name, description, topics, language, start, forks
  • Usage:
  <iframe
    title="Github User Repositories"
    width="350px"
    height="340px"
    src="http://localhost:5555/ahmetilhan24/repositories"
  ></iframe>
Enter fullscreen mode Exit fullscreen mode

Not responsive

Commits

  • :username/repoName/commits
  • Lets you get commits of public repositories
  • Params: username: string | required, repoName: string | required Your Github username E.G. repos/ahmetilhan24/github-ui-widgets/commits
  • Response: commit msg, commit author
  • Usage:
  <iframe
    title="Github Commits"
    width="350px"
    height="340px"
    src="http://localhost:5555/ahmetilhan24/github-ui-widgets/commits"
  ></iframe>
Enter fullscreen mode Exit fullscreen mode

Not responsive

LICENSE

MIT

Coded by Ahmet ilhan github@ahmetilhan24

💖 💪 🙅 🚩
ahmetilhn
Ahmet İlhan

Posted on September 30, 2022

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related