Skip to main content

@wendy/leaderboard

v2026.04.14.1

Fetch and parse the swamp.club leaderboard into structured JSON. Returns rank, username, score, and events count for 50 entries per page with support for pagination.

Labels

leaderboardswampcommunityanalytics

Contents

Install

$ swamp extension pull @wendy/leaderboard

@wendy/leaderboardv2026.04.14.1leaderboard.ts
fetchFetch leaderboard entries from swamp.club. Returns 50 entries per page by default.
ArgumentTypeDescription
pagenumberPage number to fetch (1-indexed)
fetchAllFetch all leaderboard entries across every page and store them as a single list.
fetchAllActiveFetch all leaderboard entries across every page, excluding users with 0 points and 0 events.

Resources

result(7d)— Leaderboard entries for a single fetched page
allResult(7d)— Complete leaderboard entries across all pages