Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/galargh/github-insights
https://github.com/galargh/github-insights
Last synced: 17 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/galargh/github-insights
- Owner: galargh
- Created: 2022-10-28T18:52:16.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-10-28T19:23:05.000Z (about 2 years ago)
- Last Synced: 2024-12-20T03:11:19.447Z (23 days ago)
- Language: JavaScript
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Unofficial GitHub Insights API on AWS Lambda
This is a simple AWS Lambda function that provides a REST API for GitHub Insights data which is not available via the GitHub API.
## Supported endpoints
### /:owner/:repo/network/dependents
Returns the numbers of repositories and packages that depend on each package in the given repository.
#### Example
```json
{
"packages": [
{
"name": "github.com.cnpmjs.org/ipfs/go-ipfs.git",
"id": "UGFja2FnZS0yMjkyMTQ0OTA1",
"repositories": "0",
"packages": "0"
}
]
}
```## Usage
### Deploying to AWS Lambda
1. Create a new AWS Lambda function
- Runtime: `Node.js 16.x`
- Architecture: `x86_64`
- Memory: `1024 MB`
- Timeout: `3 sec`
- Enable function URL: `true`
1. Deploy the function
- Run: `npm run deploy`