{"id":50324940,"url":"https://github.com/xuyui/time-whisper","last_synced_at":"2026-05-29T05:04:27.157Z","repository":{"id":357824117,"uuid":"1238698925","full_name":"XuYui/time-whisper","owner":"XuYui","description":"A warm intergenerational Q\u0026A and sticky-note message board built with Node.js and SQLite.","archived":false,"fork":false,"pushed_at":"2026-05-14T11:24:26.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-14T13:33:26.366Z","etag":null,"topics":["full-stack","message-board","nodejs","sqlite","vanilla-js"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/XuYui.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-14T11:15:35.000Z","updated_at":"2026-05-14T11:24:30.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/XuYui/time-whisper","commit_stats":null,"previous_names":["xuyui/time-whisper"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/XuYui/time-whisper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XuYui%2Ftime-whisper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XuYui%2Ftime-whisper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XuYui%2Ftime-whisper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XuYui%2Ftime-whisper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/XuYui","download_url":"https://codeload.github.com/XuYui/time-whisper/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XuYui%2Ftime-whisper/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33637490,"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-05-29T02:00:06.066Z","response_time":107,"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":["full-stack","message-board","nodejs","sqlite","vanilla-js"],"created_at":"2026-05-29T05:04:06.343Z","updated_at":"2026-05-29T05:04:27.139Z","avatar_url":"https://github.com/XuYui.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Time Whisper 时光悄悄话\n\n该项目服务于南京某校的某一次志愿活动\n\nTime Whisper 是一个面向代际交流场景的小型全栈 Web 应用。工作人员可以录入儿童提出的问题和长辈的回答，访客也可以在共享留言板上留下祝福便签。\n\n项目强调轻量、可运行和完整闭环：前端使用原生 HTML/CSS/JavaScript，后端使用 Node.js 提供静态资源服务和 REST API，并通过 SQLite 持久化问答与留言数据。\n\n## 项目亮点\n\n- 使用 Node.js 原生能力搭建无框架全栈应用，包含静态资源服务、REST API 和 SQLite 数据持久化。\n- 实现问答录入与展示、访客留言、便签删除、桌面端拖拽定位等完整交互流程。\n- 通过 `localStorage` 保存访客本地身份，用于控制本人便签的删除和位置更新权限。\n- 将公开静态资源与后端源码分离，运行时数据库文件不进入 Git 历史，便于公开展示和部署。\n- 使用响应式 CSS 适配桌面端和移动端，无需前端构建工具即可运行。\n\n## 技术栈\n\n- Node.js 24+\n- `node:sqlite`\n- HTML / CSS / Vanilla JavaScript\n- REST-style JSON API\n\n## 项目结构\n\n```text\n.\n|-- public/\n|   |-- index.html\n|   |-- app.js\n|   `-- styles.css\n|-- server.js\n|-- package.json\n`-- README.md\n```\n\n默认情况下，SQLite 数据库会在运行时创建到 `data/time-whisper.db`，该目录已加入 `.gitignore`。\n\n## 本地运行\n\n```bash\nnpm start\n```\n\n启动后访问：\n\n```text\nhttp://localhost:3000\n```\n\n开发时可以使用自动重启模式：\n\n```bash\nnpm run dev\n```\n\n## 代码检查\n\n```bash\nnpm run check\n```\n\n## API 说明\n\n- `GET /api/qa`：获取问答列表。\n- `POST /api/qa`：新增问答内容。\n- `GET /api/notes`：获取便签列表。\n- `POST /api/notes`：新增便签。\n- `PATCH /api/notes/:id`：更新本人便签的位置。\n- `DELETE /api/notes/:id?author=...`：删除本人便签。\n\n## 可配置项\n\n- `PORT`：指定服务端口，默认值为 `3000`。\n- `DB_PATH`：指定 SQLite 数据库文件路径，默认值为 `data/time-whisper.db`。\n\n## 简历描述参考\n\n\u003e Time Whisper：基于 Node.js、SQLite 和原生 JavaScript 构建的代际问答与留言板 Web 应用，实现 REST API、SQLite 持久化、本地访客身份、便签发布/删除/拖拽定位以及响应式界面设计。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxuyui%2Ftime-whisper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxuyui%2Ftime-whisper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxuyui%2Ftime-whisper/lists"}