当前赛季页面直接读取 Sleeper 公开 API,展示实时对阵、排名、阵容、交易与弃权
fantasy-football-website-with-history — Svelte 博客模板
作者 garrett-pdx
一个面向 Sleeper 梦幻橄榄球联盟的 SvelteKit 网站模板,展示当前赛季与历史赛季的排名、对阵、纪录、宿敌、联盟传说,并支持由 AI 每周撰写的博客。
看看你的网站会是什么样
浏览真实页面截图,比较内容排版与手机效果。点击下方缩略图切换,放大查看整页细节。
全部页面与视图 3
截图用于了解视觉与布局,交互效果请以实际项目为准。
值得关注的模板亮点
从已有项目资料中,快速了解它的特点。
离线 Python 管线拉取并交叉核对每个赛季数据,生成从首个赛季至今的历史页面
Stat Lab 支持对历史比赛排序与图表化,视图状态保存在链接中便于分享
AI 代理可每周撰写周一回顾与周中前瞻,发布前经过事实核查,文章为 Markdown 文件
从两种颜色生成联盟配色、印章、字标与图标,并包含自动编号的章程页面
支持 redraft、keeper、dynasty 等多种 Sleeper 联盟格式与季后赛结构
模板详细介绍
该模板用于为 Sleeper 梦幻橄榄球联盟搭建一个包含完整历史的网站。当前赛季部分直接读取 Sleeper 公开 API,展示实时比分对阵、排名(含分区、平局与中位数比赛)、实力排行、阵容、交易与弃权,以及按深度图位置搜索自由球员。历史部分由离线 Python 管线生成数据集:从 Sleeper 拉取每个赛季的数据,并在写入前与 Sleeper 记录交叉核对,覆盖首个赛季至今的赛季页、最终积分榜、对阵表、冠军之路、选秀与保留球员、交易以及最佳与最差周。
网站还包含纪录与 Stat Lab(可排序、可图表化的历史比赛实验室,视图状态保存在链接中)、名人堂与档案事实构成的 Trophy Room、头对头宿敌网格、经理生涯页,以及从联盟历史生成的数百条事实性“传说”。博客由 AI 代理每周撰写周一回顾与周中前瞻,发布前经过事实核查,文章以 Markdown 文件形式存在。视觉上支持从两种颜色生成联盟配色、印章、字标与图标,并有一个按规则自动编号的章程页面。
模板声称支持任意 Sleeper 联盟格式:redraft、keeper 或 dynasty,superflex、IDP、踢球手与防守组,任意球队数与季后赛规模,轮空、两周回合、安慰赛与马桶碗,中位数比赛、分区、孤儿球队,以及处于首个赛季的联盟。配置集中在 league/ 目录,引擎代码无需为单个联盟修改,可通过脚本更新引擎。站点基于 SvelteKit,部署在 Vercel,并可由 GitHub Action 每周运行两次数据管线。仓库中的 league/ 是一个使用中性内容的真实 Sleeper 联盟演示。项目始于对 League Page 的 fork,采用 MIT 许可,与 Sleeper 无隶属关系。
适合你的项目吗?
适用场景
- 为现有的 Sleeper 梦幻橄榄球联盟搭建带完整历史记录的官网
- 把联盟的排名、对阵、纪录、宿敌与传说集中展示给联盟成员
- 用 AI 每周自动生成联盟回顾与前瞻博客,减少手动写作
- 在 Stat Lab 中查询和可视化联盟历史比赛数据,并分享链接到群聊
适合人群
- 拥有 Sleeper 梦幻橄榄球联盟并希望展示其历史的联盟成员或管理员
- 熟悉 SvelteKit 或愿意按文档与代理技能完成配置的开发者
- 需要为联盟博客提供 Markdown 内容与 AI 写作流程的维护者
上手与定制指南
结合仓库当前版本的说明,按下面的资料检查内容、配置与运行要求。
- 1
推荐使用编码代理:点击 Use this template 后在 Claude Code 中提供 Sleeper 联盟链接,由 league-setup 技能完成检查、提问、构建数据与部署引导
- 2
手动设置需运行 npm install,并用 scripts/try-league.sh 验证引擎是否支持目标联盟
- 3
在 league/ 中替换演示配置,仅保留联盟 ID 与名称,然后运行 python3 scripts/pull-league-history.py、npm run derive-site-data 与 npm run derive-narratives
- 4
运行 python3 scripts/sync-managers.py --photos 同步经理照片,再执行 npm run brand 与 npm run smui-theme-light 生成品牌资源
- 5
详细步骤见 docs/setup.md;引擎可通过 python3 scripts/update-engine.py 更新,不会与 league/ 内容冲突
授权与来源资料
使用条件与限制
免费使用 · 保留许可声明本次收录的是公开仓库中采用 MIT 许可的免费版本;免费范围为该版本代码,不代表外部服务或第三方素材免费。
使用时需要遵守
- 允许免费使用、修改、商用和分发该版本代码。
- 分发代码副本或实质性部分时,保留原作者版权声明和完整 MIT 许可声明。
- 代码按现状提供;担保与责任限制以原许可证及适用法律为准。
额外费用与待核对事项
- 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
- 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
- 实时页面依赖 Sleeper 公开 API 获取数据,需要目标联盟存在于 Sleeper 平台;若 API 不可用或联盟非 Sleeper 联盟,实时功能无法工作。
- 历史页面数据需通过离线 Python 管线从 Sleeper 拉取并构建,不能仅靠模板开箱即用,必须运行数据抓取脚本。
- 推荐设置流程依赖 Claude Code 的 league-setup 技能,并引导部署到 Vercel,涉及外部编码代理与 Vercel 平台。
- 数据管线可借助 GitHub Action 每周运行两次,意味着自动更新依赖 GitHub Actions 服务。
- 项目与 Sleeper 无隶属关系,使用 Sleeper 名称与 API 时需自行注意相关平台条款。
查看原文依据
Permission is hereby granted, free of charge
许可证原文
Live pages read Sleeper's public API directly.
README 原文
History pages read a dataset built offline by a small Python pipeline (standard library only) that pulls every season from Sleeper
README 原文
The `league-setup` skill checks your league, asks you one round of questions, builds the data, writes your league's pages, generates your colours and logo, previews everything and walks you through deploying on Vercel.
README 原文
A GitHub Action can run it twice a week.
README 原文
https://github.com/garrett-pdx/fantasy-football-website-with-history/blob/main/LICENSEhttps://github.com/garrett-pdx/fantasy-football-website-with-history/blob/main/README.mdNot affiliated with Sleeper.
README 原文
DeepSeek 根据仓库许可证和 README 整理 ·2026-10-05。结果仅覆盖已读取资料,依赖、图片、字体及后续条款变更以各自原文为准。
项目核对记录与介绍依据
模板资料
- 来源平台
- GitHub
- 资料与维护参考分
- 资料较完整 · 80 / 100
- 技术栈
- Svelte
- 网站类型
- 博客
这个分数如何计算
本站按许可资料(最高30分)、演示链接(12分)、预览图(10分)、Star数(15分)、记录的维护时间(15分)、描述完整度(8分)、功能记录(5分)和分类资料(5分)计算。它不是代码、安全或性能测试,也不是 Google 评分;有链接不代表已实测可用。
这个项目需要核对什么
- 记录的仓库更新时间
- 2026-10-05
- 截图检查日期
- 2026-10-05
已收录演示链接。请用你的内容与屏幕尺寸检查;有演示不代表表单、认证或支付已经可用。
目录记录的主要技术栈是 Svelte。请通过依赖清单和锁文件核对实际版本与托管要求。这些说明基于收录资料,不代表代码审计或部署实测。
查看具体选型方法 →介绍的制作与核对状态
介绍由 AI 辅助整理目录与仓库资料。仓库作者不等于这篇介绍的审核者。
审核声明: [email protected] · 2026-10-06
查看当时使用的来源资料
SHA-256: ddb318884cc3fa4b60d39fac25c0f529a12bf61403741afe383859dd05e56964
2026-10-05T23:36:11.483Z
来源文件 / 仓库<div align="center"> <img alt="Fantasy Football Website with History" src="static/brand/wordmark.svg" width="320px" /> # Fantasy Football Website with History **A website for your Sleeper fantasy football league, with its whole history in it.** Live standings, matchups and rosters, plus every past season, the records, the rivalries, the lore and a weekly blog — in your league's colours, set up from a league ID. Live example: **[muddleague.site](https://muddleague.site)** </div> --- ## What your league gets - **This week:** matchups with live scores, standings (divisions, ties and median games when your league has them), power rankings, rosters, trades and waivers, and a free-agent search by depth-chart slot. - **Every season, back to the first:** a page per season with the final table, the bracket, the champion's run, the draft and keepers, the trades, and the best and worst weeks — including seasons played before Sleeper. - **Records and Stat Lab:** highs, lows, close calls and rankings, and a sortable, chartable lab over every game ever played, with the view kept in the link so it can go in the group chat. - **A Trophy Room** with a Hall of Fame and facts from the archive; **rivalries** with a head-to-head grid; **manager pages** with career records and finishes. - **Lore:** a few hundred verified facts about your league, generated from its history, for bios, posts and trash talk. - **A blog** that an AI agent can write every week — a Monday recap and a midweek preview — from your league's own numbers, fact-checked before it publishes. Posts are just Markdown files. - **Your league's look:** colours, a seal, a wordmark and icons generated from two colours. - **A constitution** page built from your rules, numbered automatically. It handles any Sleeper league format: redraft, keeper or dynasty; superflex, IDP, kickers and defenses; any team count and playoff size, byes, two-week rounds, consolation brackets and toilet bowls; median games; divisions; orphaned teams; and a league in its very first season. ## Set it up **With a coding agent (recommended).** Click "Use this template", open your copy in [Claude Code](https://claude.com/claude-code), and say: > Set up a site for my Sleeper league: https://sleeper.com/leagues/<your league id> The `league-setup` skill checks your league, asks you one round of questions, builds the data, writes your league's pages, generates your colours and logo, previews everything and walks you through deploying on Vercel. Other agents can follow the same playbooks in [`.claude/skills/`](.claude/skills/) (see [AGENTS.md](AGENTS.md)). **By hand.** [docs/setup.md](docs/setup.md) walks through every step. The short version: ```bash npm install scripts/try-league.sh <league id> # does the engine handle your league? # replace the demo in league/: a league.json with just your ID and name (docs/setup.md), then: python3 scripts/pull-league-history.py && npm run derive-site-data && npm run derive-narratives python3 scripts/sync-managers.py --photos npm run brand && npm run smui-theme-light npm run dev ``` ## How it works Everything about one league lives in [`league/`](league/): a config file (documented field by field in [`schema/league.schema.json`](schema/league.schema.json)), Markdown for the home page, the constitution and the blog's voice, manager photos, and posts. Everything else is the engine, which you never edit for your league — so updating to a new release (`python3 scripts/update-engine.py`) never conflicts with your content. Live pages read Sleeper's public API directly. History pages read a dataset built offline by a small Python pipeline (standard library only) that pulls every season from Sleeper, then checks its own work against Sleeper's records before writing anything. A GitHub Action can run it twice a week. The site is SvelteKit, deployed on Vercel. This repository's own `league/` holds a demo league: a real Sleeper league with neutral content. ## Credits Built on [League Page](https://github.com/nmelhado/league-page) by Nicholas Melhado and its contributors, which this project began as a fork of. MIT licensed; see [LICENSE](LICENSE). Not affiliated with Sleeper.
看看同类模板
对比同技术栈与用途的模板,找到更适合的视觉与内容结构。

CMSaasStarter
A modern SaaS template/boilerplate built with SvelteKit, Tailwind, and Supabase. Includes marketing page, blog…
Svelte · 后台

sveltepress
Sveltepress 是一个建立在 SvelteKit 之上的文档与博客静态站点生成工具,思路接近 VitePress,但保留了完整的 SvelteKit 能力面(SSR、适配器、服务端路由、hooks)。
Svelte · 工具站

sveltekit-blog-template
A SvelteKit blog template
Svelte · 博客

sveltekit-mdsvex-blog
A minimalistic blog template built with SvelteKit and MDsveX
Svelte · 博客

tablog-svelte
Tablog reimagined in Svelte/SvelteKit, a lightweight blogging setup powered entirely by Markdown.
Svelte · 博客

sveltekit-mdsvex-blog-template
MDsveX blog starter template built with Sveltekit & Tailwind
Svelte · 作品集
