Socket
Socket
Sign inDemoInstall

github-trending-api

Package Overview
Dependencies
188
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    github-trending-api

API for GitHub trending repositories


Version published
Weekly downloads
5
increased by66.67%
Maintainers
1
Install size
10.3 MB
Created
Weekly downloads
 

Readme

Source

Build Status Docker Image Size Docker Image Pulls Coverage Status


This module is an API for the github-trending NPM module. So it can be ran as an "ultra-micro-service". It has an in-memory cache for results; so mostly you can use it from another point of the application and not worry about anything else.

It exposes a standalone express app, which can be ran from the command-line with:

$ npm install github-trending-api
$ github-trending-api

And an express.Router instance, which is what require('github-trending-api') returns.

A write-up on its stack is pending.

Docker

This repository has automated image builds on hub.docker.com. So you can also run:

$ docker-machine start default
$ eval $(docker-machine env default)
$ docker run -it -p 3000:3000 yamadapc/github-trending-api
$ curl `docker-machine ip default`:3000/repositories

Endpoints

GET /repositories

Responds with a list of trending repositories; accepts an optional language QueryString parameter.

GET /languages

Responds with the list of valid languages.

License

This code is licensed under MIT license. See LICENSE.

Keywords

FAQs

Last updated on 10 Dec 2015

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc