Skip to content
This repository has been archived by the owner on Dec 30, 2022. It is now read-only.
/ FlaggedRepoAPI Public archive

A simple API which informs consumers if a Sileo repo is flagged.

Notifications You must be signed in to change notification settings

Sileo/FlaggedRepoAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flagged Repo API

A simple API written in node to return if a Sileo repo is flagged. A production version of this API can be found at flagged-repo-api.getsileo.app.

Why is my repo flagged?

If you believe your repo is wrongly flagged, please contact @SileoSupport on Twitter. Please do not make a PR to this repo attempting to remove it, as the flagged repo list is not published.

Additionally, if you wish to report a dangerous repo, please contact @SileoSupport on Twitter where the claims will be investigated. Again, do not open a PR on this repo for that reason.

Installation

Flagged Repo "database"

  • For obvious reasons, we do not ship the JSON file containing flagged repos. Therefore, you will have to move config/flagged-repos.example.json to config/flagged-repos.json and add some sample repos for testing.
  • The API normalises the URL, stripping the protocol (http/https), removing any trailing slashes.

Setup

  1. yarn install
  2. Move config/flagged-repos.example.json to config/flagged-repos.json and add some sample repos for testing
  3. node index.js
  4. 🎉

Developers

Feel free to use our API. It has been optimised for speed, so your traffic should be fine. The two calls it supports are listed below.

GET /info

Returns information about the database that the API is currently using, such as when it was last updated and how many repos are flagged.

Example response:

{"version":1,"updated":"2018-12-27T14:36:35.828Z","flagged_count":44}

POST /flagged

Returns true if the repo is flagged, false if it's not.

Example request:

Content-Type: application/json

{"url": "https://pirates.com"}

About

A simple API which informs consumers if a Sileo repo is flagged.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published