An open API service indexing awesome lists of open source software.

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

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": "..."
}


```