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.
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.
- For obvious reasons, we do not ship the JSON file containing flagged repos. Therefore, you will have to move
config/flagged-repos.example.json
toconfig/flagged-repos.json
and add some sample repos for testing. - The API normalises the URL, stripping the protocol (http/https), removing any trailing slashes.
yarn install
- Move
config/flagged-repos.example.json
toconfig/flagged-repos.json
and add some sample repos for testing node index.js
- 🎉
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.
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}
Returns true
if the repo is flagged, false
if it's not.
Example request:
Content-Type: application/json
{"url": "https://pirates.com"}