1
2
3
4
5
6
7
8
9
10
11
import { getGithubStars } from "https://esm.town/v/vtdocs/getGithubStars?v=2";
import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON";
// Github following
export let githubFollowing =
(await fetchJSON(
"https://api.github.com/users/stevekrouse/following",
)).map((f) => f.login).map((h) => ({
h,
stars: getGithubStars(h),
}));