Skip to content

yoshixmk/deno-x-ranking

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

deno-x-ranking

(Deno) gh-pages nest badge

Rating ranking Dinosaurus

πŸ¦• Deno Third Party Modules Ranking πŸ‘‘
https://deno.land/x/ranking

Ranking Page

https://yoshixmk.github.io/deno-x-ranking

Get Started

Github API Tokens

Prepare an access token for Github public access permission only from the following URL. When public access setting permissions, you can leave all check boxes cleared.
https://github.com/settings/tokens/new

Tsv / Csv output

$ deno run --allow-net --allow-write --allow-env https://deno.land/x/ranking/mod.ts -u <github username> -t <github token> -f <tsv | csv>

Console output

$ deno run --allow-net --allow-env https://deno.land/x/ranking/mod.ts -u <github username> -t <github token> -f table

Markdown output

$ deno run --allow-net --allow-write --allow-read --allow-env https://deno.land/x/ranking/mod.ts -u <github username> -t <github token> -f markdown

Help

$ deno run --allow-net --allow-write --allow-read --allow-env ./mod.ts --help

Testing

$ deno test --allow-read --allow-env --allow-net

Ranking Logic

After processing according to the ranking logic below, limit to only the necessary data for each output format, and output at the end.

  1. Ranking GitHub Star count.
  2. Sorted by GitHub Star.
  3. If same GitHub Star count, continue to check rank using forks count, watchers count, subscribers count.

Sample

Hosting using Markdown format

$ deno run --unstable --allow-read --allow-write --allow-net https://raw.githubusercontent.com/xcatliu/pagic/v1.4.0/mod.ts build --serve --watch

429 Too Many Requests ??

This module sends many requests to deno registry2 API and Github API.
Please be careful about continuous use.

Plan

  • "type": "github" support
  • "type": "npm" support not support. [deprecated] NPM backed deno.land/x entries are deprecated will be removed on August 1st 2020.
  • "type": "deno_std" support. The repository that uses deno_std is already included in the ranking by Deno himself
  • real-time ranking page update
  • Corresponds to the registry2. Change to not use the database.json.