GitHub trending repositories (daily)
v1PublishedGitHub's daily trending repositories — rank, repo, description, language, stars.
Output & API
Preview the latest data, download it, or call this collector as an API.
| repos |
|---|
Marketplace
Publish this collector so others can deploy it — you keep ownership.
5 runs in 14d · published 5d ago
Versions
Every build and self-heal appends a version. Pin one to lock runs to it.
v1importedapprovedcurrent5d ago
How this script collects data
import Firecrawl from "@mendable/firecrawl-js";
const apiKey = process.env.FIRECRAWL_API_KEY;
if (!apiKey) { console.error("FIRECRAWL_API_KEY is not set"); process.exit(1); }
const firecrawl = new Firecrawl({ apiKey });
async function main() {
const schema = {
type: "object",
properties: {
repos: {
type: "array",
items: {
type: "object",
properties: {
rank: { type: "number" }, repo: { type: "string" }, description: { type: "string" },
language: { type: "string" }, stars: { type: "number" },
},
required: ["rank", "repo"],
},
},
},
required: ["repos"],
};
const result = await firecrawl.scrape("https://github.com/trending?since=daily", {
formats: [{ type: "json", prompt: "Extract the trending repositories in order, with owner/name as repo.", schema }],
});
const data = (result as { json?: { repos?: unknown[] } }).json ?? { repos: [] };
const out = { repos: (data.repos ?? []).slice(0, 25) };
process.stdout.write(JSON.stringify(out));
}
main().catch((err) => { console.error(err); process.exit(1); });
Deploy this collector to unlock schedules, the API endpoint, and destinations.