尚未检测到更新。GitHub 发布版本后会显示在这里。
个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
在项目文件夹中运行 /nomorevibe verify,即可验证所有权并自行管理介绍。
一分钟完成验证A themed art gallery curated for today's date — Next.js, Met Museum API, Wikidata/Wikipedia, zero paid dependencies
翻译准备中
取自仓库 README
正在加载完整 README。
查看完整 README ↗A single-page app that curates a small themed art gallery based on today's date — holidays, seasons, or artist birth/death anniversaries — pulling artworks from the Met Museum's Open Access API and a short Wikipedia-sourced biography for each artist shown.
src/components/ArtworkCarousel.tsx).src/components/ReadAloudButton.tsx)./feed.xml (src/app/feed.xml/route.ts), auto-discoverable from the page <head>
and linked in the footer. Deliberately a single, daily-changing item — consistent with the rest of
the app, there's no archive of past days.src/lib/met.ts).src/lib/wikipedia.ts), one short bio per unique artist
shown that day.src/lib/calendar.ts, ~30 entries (holidays + artist anniversaries).src/lib/wikidata.ts)
finds painters born/died that day and cross-checks them against the Met, before finally falling back
to a seasonal theme. See "Gallery resolution order" below.No database, no user accounts, no archive browsing, and no paid API dependency — the whole app is one page that reflects "today," built entirely on free data sources.
For any given date, src/lib/gallery.ts resolves today's theme in this order:
src/lib/calendar.ts.src/lib/calendar-stash.json (see below).Any of these that comes up thin on Met results backfills the remainder from the season's query.
npm install
npm run dev
Open http://localhost:3000. No environment variables or API keys needed.
Add entries to the CALENDAR array in src/lib/calendar.ts:
{ id: "some-id", month: 3, day: 14, title: "Pi Day", blurb: "...", metQuery: "geometric pattern" }
metQuery is passed to the Met's /search endpoint. Set artistOrCulture: true to restrict the
search to the artist/culture field (better precision for artist names).scripts/backfill-calendar.ts is a standalone maintenance script — not run by the website — that
you run yourself whenever you feel like it, independent of what day it actually is:
npm run backfill-calendar # all 365 days, skips already-curated/stashed ones
npm run backfill-calendar -- --start=1 --end=31 # just January
npm run backfill-calendar -- --force # recheck days already in the stash
It loops over days of the year, looks each one up on Wikidata, and checks candidates against the Met.
Good matches are written to src/lib/calendar-stash.json immediately (so an interrupted run loses no
progress). Periodically review that file and promote the entries you like into the CALENDAR array in
src/lib/calendar.ts for a permanent, reviewed match.
The page is revalidated at most every 6 hours (export const revalidate in src/app/page.tsx), so a
burst of visitors doesn't hammer the Met/Wikidata/Wikipedia APIs — the gallery for the day is generated
once and served from cache until the next revalidation window.
vercel
No environment variables required.