{"id":13817697,"url":"https://github.com/mamal72/react-github","last_synced_at":"2025-05-07T22:40:30.734Z","repository":{"id":74988401,"uuid":"43952420","full_name":"mamal72/react-github","owner":"mamal72","description":":octocat: A set of useful Github components for React","archived":false,"fork":false,"pushed_at":"2016-06-12T19:17:07.000Z","size":480,"stargazers_count":35,"open_issues_count":1,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-29T03:50:10.312Z","etag":null,"topics":["github","github-api","react","react-component"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mamal72.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2015-10-09T11:52:00.000Z","updated_at":"2024-10-30T12:43:12.000Z","dependencies_parsed_at":"2024-01-13T15:37:44.248Z","dependency_job_id":"7f308aec-1934-4cf3-8d1f-c75908fe3eae","html_url":"https://github.com/mamal72/react-github","commit_stats":{"total_commits":31,"total_committers":2,"mean_commits":15.5,"dds":0.06451612903225812,"last_synced_commit":"4252b79c8804c7b0aa66e049946b201271742278"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mamal72%2Freact-github","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mamal72%2Freact-github/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mamal72%2Freact-github/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mamal72%2Freact-github/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mamal72","download_url":"https://codeload.github.com/mamal72/react-github/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252967969,"owners_count":21833242,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["github","github-api","react","react-component"],"created_at":"2024-08-04T06:00:53.901Z","updated_at":"2025-05-07T22:40:30.712Z","avatar_url":"https://github.com/mamal72.png","language":"JavaScript","readme":"[![Build Status](https://travis-ci.org/mamal72/react-github.svg?branch=master)](https://travis-ci.org/mamal72/react-github)\n[![npm version](https://badge.fury.io/js/react-github.svg)](https://badge.fury.io/js/react-github)\n# react-github\n**react-github** is a set of react components for Github written by ES6 and ES7. It's a WIP and more components will be added.\n\n\n# Installation\n\nYou can install this package via `npm`:\n\n```bash\nnpm install react-github --save\n```\n\n\n# Components\n## GithubProfile\n\nRenders a simple Github user profile box with some useful info about the user.\n\n\u003cp align='center'\u003e\n    \u003cimg alt='profile' src='https://github.com/mamal72/react-github/raw/v2/screenshots/GithubProfile.png' /\u003e\n\u003c/p\u003e\n\n```js\nimport React, { Component } from 'react';\nimport { GithubProfile } from 'react-github';\n\nclass Test extends Component {\n  render() {\n    return (\n      \u003cdiv\u003e\n        \u003cGithubProfile username=\"mamal72\" /\u003e\n      \u003c/div\u003e\n    );\n  }\n}\n```\n\n### Properties\n* **username**: Github username\n* **className**: custom-additional CSS class for root element of rendered component\n\n\n## GithubRepository\n\nRenders a repository info box with some details of it.\n\n\u003cp align='center'\u003e\n    \u003cimg alt='repository' src='https://github.com/mamal72/react-github/raw/v2/screenshots/GithubRepository.png' /\u003e\n\u003c/p\u003e\n\n```js\nimport React, { Component } from 'react';\nimport { GithubRepository } from 'react-github';\n\nclass Test extends Component {\n  render() {\n    return (\n      \u003cdiv\u003e\n        \u003cGithubRepository username=\"mamal72\" repository=\"react-github\" /\u003e\n        \u003cGithubRepository showDescription={false} username=\"mamal72\" repository=\"react-github\" /\u003e\n        \u003cGithubRepository showName={false} username=\"mamal72\" repository=\"react-github\" /\u003e\n        \u003cGithubRepository showUsername={false} username=\"mamal72\" repository=\"react-github\" /\u003e\n        \u003cGithubRepository className=\"my-profile\" username=\"mamal72\" repository=\"react-github\" /\u003e\n      \u003c/div\u003e\n    );\n  }\n}\n```\n\n### Properties\n* **username**: Github username\n* **repository**: Github repository name\n* **showName** (default: *true*): render repository name\n* **showUsername** (default: *true*): render username\n* **showDescription** (default: *true*): render repository description\n* **className**: custom-additional CSS class for root element of rendered component\n\n# Ideas?\nJust fill an issue and describe it. I'll check it ASAP. :)\n\n# Contribution\n\nYou can fork the repository and send the pull requests.\n\nRemember to lint your code before sending pull requests. Run the following command and fix the errors if you get any.\n```bash\nnpm run lint\n```\n","funding_links":[],"categories":["React"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmamal72%2Freact-github","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmamal72%2Freact-github","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmamal72%2Freact-github/lists"}