https://github.com/abraham/github-repository
GitHub Repository Web Component
https://github.com/abraham/github-repository
github github-repository web-components
Last synced: 3 months ago
JSON representation
GitHub Repository Web Component
- Host: GitHub
- URL: https://github.com/abraham/github-repository
- Owner: abraham
- License: mit
- Created: 2018-01-29T19:37:13.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2023-07-26T08:21:38.000Z (over 2 years ago)
- Last Synced: 2025-04-07T14:06:45.203Z (10 months ago)
- Topics: github, github-repository, web-components
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/github-repository
- Size: 410 KB
- Stars: 16
- Watchers: 4
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
<github-repository>
====
[](https://npmjs.com/package/github-repository)
[](https://circleci.com/gh/abraham/github-repository)
[](https://travis-ci.org/abraham/github-repository)
[](https://ci.appveyor.com/project/abraham/github-repository)
[](https://david-dm.org/abraham/github-repository)
[](https://bundlephobia.com/result?p=github-repository)
Install
----
Polyfill tags if you need them. This will include ShadowDOM and Custom Elements support.
```
```
Loading this component. It would be a good idea to use a specific version instead of `latest`.
```
```
Example
----
[Live demo](https://codepen.io/abraham/pen/PQoeqV)
Usage
----
Set the `owner-repo` attribute to the `username/repository` of a GitHub repository.
```
```

For more advanced usage you can include:
- `
` to include a preview image
- A number of `
` to include status badges
```

```

GitHub API Rate limit
----
This Web Component makes unauthenticated requests to the GitHub API. Since the GitHub API has a fairly restrictive 60 requests/hour per IP address, API responses are cached in `localStorage`.
License
----
GithubRepository is released under an MIT license.
Built, tested, and published with [Nutmeg](https://nutmeg.tools).