{"id":50725124,"url":"https://github.com/flanker/xichuang","last_synced_at":"2026-06-10T03:30:30.322Z","repository":{"id":361505745,"uuid":"1254713544","full_name":"flanker/xichuang","owner":"flanker","description":"西窗 · 唐诗宋词，竖排右读。xichuang.ink","archived":false,"fork":false,"pushed_at":"2026-05-30T23:19:45.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-05-31T01:11:51.706Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://xichuang.ink/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/flanker.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-30T23:12:42.000Z","updated_at":"2026-05-30T23:28:30.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/flanker/xichuang","commit_stats":null,"previous_names":["flanker/xichuang"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/flanker/xichuang","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flanker%2Fxichuang","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flanker%2Fxichuang/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flanker%2Fxichuang/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flanker%2Fxichuang/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flanker","download_url":"https://codeload.github.com/flanker/xichuang/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flanker%2Fxichuang/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34136112,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-10T02:00:07.152Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-06-10T03:30:28.363Z","updated_at":"2026-06-10T03:30:30.317Z","avatar_url":"https://github.com/flanker.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 西窗 · xichuang.ink\n\n灯下读诗，与古人夜话。\n\n\u003e 何当共剪西窗烛，却话巴山夜雨时。 —— 李商隐《夜雨寄北》\n\n一个极简、重美感的中文古诗词站：唐诗 · 宋词。纯静态，无构建步骤。\n\n## 特点\n\n- **昼夜双主题**：宣纸暖白 ⇄ 夜窗烛光（右上角 ☾/☼ 切换，记忆偏好）\n- 思源宋体 + 印章红，逐句/整片排布，诗与词分别处理\n- 入场渐显，`prefers-reduced-motion` 友好\n- 数据驱动，加诗只改一处\n\n## 添加一首诗\n\n编辑 `assets/poems.js`，往数组末尾追加：\n\n```js\n{\n  id: \"unique-id\",\n  dynasty: \"唐\",          // 朝代\n  author: \"王维\",\n  form: \"诗\",             // '诗' | '词'\n  tune: \"\",              // 词牌（词专用）\n  title: \"相思\",          // 诗题 / 词副题\n  preface: \"\",           // 小序（词，可省）\n  lines: [\"红豆生南国，\", \"春来发几枝。\"]  // 诗:每句一元素 / 词:每片一元素\n}\n```\n\n## 本地预览\n\n直接用浏览器打开 `index.html` 即可；或起个静态服务：\n\n```sh\npython3 -m http.server 8000   # 然后访问 http://localhost:8000\n```\n\n## 部署\n\n纯静态，挂到 Cloudflare Pages / GitHub Pages，绑定 `xichuang.ink` 即可。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflanker%2Fxichuang","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflanker%2Fxichuang","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflanker%2Fxichuang/lists"}