https://github.com/roebi/astro-github-api-plugin
in Astro - as a plugin - get the github api
https://github.com/roebi/astro-github-api-plugin
astro astro-component astro-plugin github github-api github-meta
Last synced: 18 days ago
JSON representation
in Astro - as a plugin - get the github api
- Host: GitHub
- URL: https://github.com/roebi/astro-github-api-plugin
- Owner: roebi
- License: mit
- Created: 2023-08-20T21:23:16.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2026-04-28T05:32:56.000Z (21 days ago)
- Last Synced: 2026-04-28T07:28:33.720Z (21 days ago)
- Topics: astro, astro-component, astro-plugin, github, github-api, github-meta
- Language: Astro
- Homepage:
- Size: 1.02 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## astro-github-api-plugin
in Astro - as a plugin - get the github api
- (MUST HAVE) for a project
- (NICE TO HAVE) for a user
## Install
```git bash
npm install astro-github-api-plugin
```
## Usage
```astro
---
import AstroGithubApiPlugin from 'astro-github-api-plugin';
// if you need a part of the project information
// AstroGithubApiPlugin.project.topics
// if you need a part of the user information
// AstroGithubApiPlugin.user.avatar_url
---
renderexample
```
## Example
```html
Github Meta Data from project '01-01-vanilla-HTML5-starter-page' of user 'roebi'
01-01-vanilla-HTML5-starter-page
{
"name": "01-01-vanilla-HTML5-starter-page",
...
"owner": {
"login": "roebi",
...
},
"description": "vanilla HTML 5 starter page - Have you ever heard of this HTML 5 tags ?",
...
"topics": [
"html5",
"html5-template",
"roebi",
"starter"
],
...
}
Github Meta Data of user 'roebi'
roebi
{
"login": "roebi",
...
"avatar_url": "...",
...
"location": "Switzerland",
...
"bio": "..."
}
```