A deploy-friendly static mental health self-check website with 14 standardized scales that generates visual reports and PNG report cards.

Stars

6

7-day growth

No data

Forks

0

Open issues

0

License

NOASSERTION

Last updated

2026-07-28

AI repository intelligence
FR-AI / ANALYSIS

Why it is worth attention

It offers a comprehensive, privacy-first mental health assessment tool combining 14 validated scales with detailed scoring, norms, and automated comparison, all in a zero-backend static site that is easy to deploy and use on any device.

Who it is for

  • Individuals curious about their mental health
  • Clinicians seeking a quick self-report screening aid
  • Researchers needing a no-backend data collection tool
  • Self-learners exploring psychological assessments

Use cases

  • Self-administered mental health check for depression, anxiety, ADHD, autism, etc.
  • Tracking changes in well-being over time with historical comparison
  • Educational demonstration of standardized psychological scales
  • Rapid anonymous screening in community or school settings

Strengths

  • 14 internationally standardized scales with published norms and psychometric data
  • Fully static and privacy-safe: no backend, no data upload, only local storage
  • Generates detailed visual reports with animated dashboards, graded interpretations, and personalized suggestions
  • Supports PNG export of report cards for easy saving and sharing

Considerations

  • Results are for self-screening only and cannot replace professional diagnosis
  • All interface and scales are in Chinese, limiting non-Chinese users
  • Only 14 specific scales are included; no custom question support

README quick start

观心自测(Guanxin Self-Check)

VibeCoding的小玩具

一个部署友好的纯静态心理健康自评网站,汇集 14 份国际通用的标准化自评量表,支持手机与电脑访问。测评结束生成信息完整的可视化报告,并可一键生成 PNG 报告卡保存到相册。

⚠️ 免责声明:本项目所有量表结果仅供自我筛查与参考,不能替代精神科医师或其他专业人士的诊断。若你正经历强烈痛苦或出现自伤念头,请立即拨打全国 24 小时心理援助热线 12356(免费、保密);紧急情况请拨打 110 / 120


功能特性

  • 14 份标准化量表(含 ADHD 与自闭特质等神经多样性筛查),按用途分类展示,支持单测或自由组合联评
  • 自选量表组合:勾选 1–14 份量表依次作答,实时显示题量与预计用时,每份量表间有介绍过渡页与进度步骤条
  • 信息完整的报告页(每份量表独立成块):
    • 动画环形仪表盘 + 分数滚动计数
    • 分级横条标尺(含位置标记与各界值区间)
    • 分级文字解读(含临床界值说明与量表来源)
    • 逐题回顾(反向计分题按实际计分显示强度条)
    • 权威数据与常模对照:每份量表附原始验证研究的灵敏度/特异度/AUC、信度系数;有常模的量表(SES、UCLA、PSS-10、AQ-50、RAADS-R、DASS-21 分量表)自动与你的得分对照
    • 按严重程度分层的个性化建议
    • 多量表时自动生成"总体概览",逐一点出越过关注线的维度
  • 报告 PNG 生成:Canvas 绘制竖版报告卡(1080px × 2x),手机调起系统分享可直接存相册,桌面自动下载
  • 历史记录:仅存本机浏览器(localStorage),复测自动与上次对比,可随时清空
  • 隐私安全:无任何后端与数据上传;PHQ-9 第 9 题阳性时在报告页与报告图中突出显示 12356 求助信息
  • 匿名统计:已接入 Umami(无 Cookie、不收集个人信息),部署时将 index.html 中的 data-website-id 替换为你的网站 ID 即可;仅额外统计"完成测评"次数事件,不携带任何分数
  • 体验细节:移动端优先响应式、键盘操作(数字键选项 / ← 回退)、防连点跳题、本地字体(无 CDN 依赖)、prefers-reduced-motion 降级

量表与计分

量表题数评估周期计分与界值
PHQ-9 抑郁筛查9过去两周0–27,分五档;≥ 10 达临床关注界值(灵敏度/特异度约 88%)
GAD-7 焦虑筛查7过去两周0–21,分四档;≥ 10 达临床关注界值(灵敏度约 89%、特异度约 82%)
DASS-2121过去一周抑郁/焦虑/压力三分量表各 7 题 ×2,Lovibond 分界:正常/轻度/中度/重度/极重度
K10 心理困扰10过去四周10–50,四档(10–19 / 20–24 / 25–29 / 30–50)
ASRS-6(ADHD 初筛)6平时前 3 题“有时”+、后 3 题“经常”+ 各记 1 项;≥ 4 项筛查阳性(特异度约 99.5%)
ASRS-18(ADHD 完整版)18平时按题阈值计症状数;注意缺陷/多动·冲动各 0–9,单维 ≥ 6 有临床意义,总数 ≥ 9 建议转介
AQ-10 自闭特质10平时二值化 0–10;≥ 6 建议完整诊断评估(Allison 2012)
AQ-50 自闭特质50平时二值化 0–50;≥ 26 筛查界值,≥ 32 临床界值(80% 确诊者 ≥ 32);含五维度
RAADS-R80现在与 16 岁前症状题 3/2/1/0,17 个常态题反向;总分 ≥ 65 为诊断界值(灵敏度 97%、特异度 100%)
PSS-10 知觉压力10过去一个月0–40;第 4、5、7、8 题反向计分;0–13 / 14–26 / 27–40
PSQI 睡眠质量18过去一个月七成分各 0–3、总分 0–21;> 5 提示睡眠质量差(Buysse 界值)
Rosenberg SES 自尊10平时10–40;第 2、5、6、8、9 题反向计分;无临床界值,按理论中点与常模解读
UCLA 孤独(第三版)20平时20–80;第 1、5、6、9、10、15、16、19、20 题反向计分;分级为常用参考区间
WHO-5 幸福感5过去两周0–25 ×4 折算百分制;60 → 0/1/2/3)+ 第 5a 题频率分,合计再映射 0–3
  • 成分 3 睡眠时间:实际睡眠小时(>7 / 6–7 / 5–6 / .pages.dev` 访问。

也支持 Git 连接自动部署与 wrangler pages deploy 命令行部署,详见仓库中的《Cloudflare部署指南》。

计分正确性验证

数据层与 UI 分离,可在 Node 中直接对计分函数做断言测试(反向计分、DASS-21 分量表 ×2、PSQI 七成分与睡眠效率、WHO-5 ×4 折算等均按原

Related repositories

Similar projects matched by category, topics, and programming language.

react
Featured
react GitHub avatar

react

React is a JavaScript library for building user interfaces with declarative, component-based, and cross-platform design.

Web DevelopmentFrontend Frameworks
246,741
tandpfun
Featured
tandpfun GitHub avatar

wardrobe

A GPT‑image powered app that extracts individual garment cutouts from photos, organizes them into a digital wardrobe, and generates modeled outfit previews.

JavaScript
1,570
mshumer
Featured
mshumer GitHub avatar

Claude-of-Duty

A browser-based first-person shooter built entirely with procedural generation and orchestrated AI agents, featuring 55k lines of Three.js/WebGL2 code and no art assets.

AI & Machine LearningAI Agents
1,234