https://github.com/cdoremus/3rd-party-api
Demo of Deno third party api
https://github.com/cdoremus/3rd-party-api
deno deno-fresh typescript
Last synced: 2 months ago
JSON representation
Demo of Deno third party api
- Host: GitHub
- URL: https://github.com/cdoremus/3rd-party-api
- Owner: cdoremus
- Created: 2022-06-21T19:33:29.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2023-04-09T22:22:24.000Z (about 3 years ago)
- Last Synced: 2026-03-05T14:47:06.835Z (4 months ago)
- Topics: deno, deno-fresh, typescript
- Language: TypeScript
- Homepage: https://3rd-party-api.deno.dev
- Size: 46.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Deno Third-Party API Demo
This repo contains an app that exercises version 2 of the Deno third party module API that implements the [deno.land/x scoring proposal](https://github.com/denoland/dotland/issues/2133) demonstrated at the [MelbJS Meetup talk given by Deno team member Kitson Kelly](https://www.youtube.com/watch?v=G_2AgdgEbkI). The API is based at [apiland.deno.dev](https://apiland.deno.dev/).
The [Deno third party module page](https://deno.land/x) to displayed modules using the API was deployed in early October, 2022. The sorting on this page was based on a popularity score which is calculated from the number of requests done to each module over a 30 day period when the **https://deno.land/x/[module]** import url was called.
The third-party API was used in this app with an initial view showing modules ranked by popularity score. However, this app added data views sorted by Github stars and a ranking metric created by weighing popularity score at 75% and Github stars 25%. Each sorted data set can be displayed using the drop down on the top of the landing page.
This app is deployed on Deno Deploy at [3rd-party-api.deno.dev](https://3rd-party-api.deno.dev/). It was built using the [Fresh web framework](https://fresh.deno.dev/).
### Usage
This app assumes that [Deno](https://deno.land) is installed locally.
Start the project:
```
deno task start
```
This will watch the project directory and restart as necessary.