1
2
3
4
5
6
7
8
9
10
11
12
13
import { trendingRepositories } from "https://esm.town/v/pomdtr/trendingRepositories";
export async function sunbeamTrendingRepositories() {
const repositories = await trendingRepositories();
const items = repositories.map((repo) => ({
title: repo.name,
subtitle: repo.description || "",
accessories: [`${repo.stargazers_count} *`],
actions: [{ type: "open", target: repo.html_url }],
}));
return { type: "list", items };
}
Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
Comments
Nobody has commented on this val yet: be the first!
May 6, 2024