Skip to content

Repository files navigation

Better GitHub API

Better GitHub API delivers basic information about a user and their pinned repositories to you. ✨

Programmed in TypeScript using ts-node and fetching content using axios it delivers content blazingly fast! πŸš€βœ¨

Usage

Route

GET /:username returns the user's profile and pinned repositories.

Response Schema

{
"login": string,
"id": number,
"node_id": string,
"avatar_url": string,
"gravatar_id": string,
"url": string,
"html_url": string,
"followers_url": string,
"following_url": string,
"gists_url": string,
"starred_url": string,
"subscriptions_url": string,
"organizations_url": string,
"repos_url": string,
"events_url": string,
"received_events_url": string,
"type": string,
"site_admin": boolean,
"name": string,
"company": string,
"blog": string,
"location": string,
"email": string,
"hireable": boolean,
"bio": string,
"twitter_username": string,
"public_repos": number,
"public_gists": number,
"followers": number,
"following": number,
"created_at": string,
"updated_at": string,
"pinned_repos": Array [
{ "owner": string,
"repo": string,
"internal_link": string,
"link": string,
"description": string,
"language": string,
"languageColor": string,
"stars": number,
"forks": number
}
...
],
"pinned_repos_total_stars": number
}

Possible errors

404 - User not found

{ "status": 404, "message": "User not found" }

Custom error schema

{ "status": "error.response.status", "message": "error.response.statusText" }

Installation

npm install
npm run start

A web server should be running on http://localhost:3000/.

About

A better GitHub API that delivers basic information about a user and their pinned repositories to you. πŸ’«

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Contributors

Languages