- Início
- Plugins
- Integrações e acesso remoto
- dsh-stand-up-reminder
dsh-stand-up-reminder
xiaofufufu/dsh-stand-up-reminder
A sit-down countdown in the DSH interface that covers the app with a full-screen overlay when it is due, and unlocks only after you check in and finish the break timer.
Instalar
dsh plugin --profile web add github:xiaofufufu/dsh-stand-up-reminderREADME
dsh-stand-up-reminder
A sit-down countdown that actually makes you get up.
中文说明 · Install · Configuration · How the timer works · Honest limits
A DeepSeek Harness plugin. A small pill sits under the composer and counts down your sitting time. When it runs out, a full-screen overlay covers the app and will not let go until you click I'm up, then stand there for the whole break. It is built for someone with a moderate lumbar disc herniation, where the difference between "I'll get up in a minute" and actually getting up is the whole point.
No camera. No sensor. No network. Everything runs in the browser half of the plugin and the state lives in localStorage.
What it looks like
- Pill — under the composer, right-aligned:
Stand up in 12:34. Turns yellow inside the last minute. Green while a break is running (Moving 02:59). Click it to start a break immediately. - Overlay — when the timer hits zero the whole frame is covered: a large countdown and a suggested movement that rotates every minute (lean back, wall-assisted leg raise, walk in place, wall sit, cat-cow, glute bridge). The countdown does not move until you click I'm up — the overlay stays until you do. After that it counts your break down and disappears on its own.
- Settings — Settings → Plugins → Stand Up Reminder. Durations, switches, and three buttons: restore defaults, restart the sitting timer, or start a break right now. It also shows today's skip count, and a notification-permission button when the browser has not granted one yet.
Install
This package is not on npm — install it straight from GitHub:
dsh plugin add github:Xiaofufufu/dsh-stand-up-reminder
Or from a local checkout:
dsh plugin add /path/to/dsh-stand-up-reminder
Then restart DSH once. Requires DSH >=0.2.2-rc.1 (declared in engines.dsh).
Installing from the plugin market is the same thing: the market resolves a GitHub entry to github:owner/repo, so no registry publication is involved.
Configuration
| Setting | Default | What it does |
|---|---|---|
| Sitting time | 30 min | How long you sit before the overlay appears. Range 10–180. |
| Break length | 3 min | How long you must stay up. Range 1–30. |
| Advance warning | 60 s | The pill turns yellow this long before the deadline. Range 0–300. |
| Force full-screen overlay | on | Turn it off and you get only the pill — no blocking. |
| Allow emergency skip | off | Adds an Emergency skip button to the overlay. |
| Desktop notification | on | Also fires a system notification when the deadline hits. |
| Skip after screen lock | 5 min | Leaving the screen this long counts as having rested. Range 1–60. |
Where the defaults come from
For moderate lumbar disc herniation and lumbar muscle strain the published advice clusters around getting up every 30–40 minutes for 2–3 minutes; sources with sciatic symptoms tighten it to every 20–30 minutes. Sitting with a forward lean raises intradiscal pressure to 1.5× standing or more (about 2.5× at 70° of flexion), which is why the break is not optional. The defaults take the conservative end of that range: 30 minutes sitting, 3 minutes moving.
Sources:
None of this is medical advice. If your back is telling you something different from this table, change the table.
How the timer works
State is a timestamp, not a countdown: { phase, anchor, checkedIn, skips, autoSkips, awaySince, day }, written to localStorage on every change.
- Refresh, tab switch, sleep — the remaining time is recomputed from
Date.now() - anchor, so none of them reset your sitting time. - Overlay + refresh —
checkedInis stillfalse, so the overlay comes back. There is no way around it by reloading. - Away longer than sit + break + 30 minutes — treated as "not at the computer", sitting restarts. You are not ambushed by an overlay the moment you come back.
- Screen lock / lid close — the page going hidden starts a clock. If you come back after the Skip after screen lock threshold, that counts as a rest: sitting restarts from the moment you return, and if the break was still unacknowledged it is counted as an auto-skip. The settings page shows the daily auto-skip count.
- Daily counters — skips and auto-skips reset at midnight.
Honest limits
- Nothing checks whether you actually stood up. I'm up is an honour-system button. Making it real needs a camera, a wearable, or a system-level tool — none of which this plugin does.
- Screen-lock detection stops at page visibility. Locking the screen, closing the lid, or fully covering the window makes the page hidden, which is what the plugin watches. Locking only the display without locking the session may not fire. There is no native lock-screen API in the DSH host side to reach for.
- Everything is per-browser-profile. State lives in
localStorage, so it does not sync across machines and does not survive clearing site data. - No statistics, no reports, no streaks. Deliberately: a health reminder that nags you about your compliance record is a worse health reminder.
Development
node test/selftest.mjs # pure timer logic: clamping, due, check-in, unlock, away reset, clock skew
node test/smoke.mjs # runs client.js for real against stub React/DOM/ctx; asserts all three slots register
Both are plain Node scripts with node:assert — no test framework, no build step.
Client code is hot-reloaded by DSH's client HMR (the host stats client.js and swaps the module), so editing client.js does not need a restart. Changes to index.js, package.json, or cordis.patch.yml do.
Files
| File | Purpose |
|---|---|
client.js | All UI and timer logic. The pure functions between #region logic / #endregion logic are sliced out and run by the tests. |
index.js | Host half — intentionally empty. |
cordis.patch.yml | Inserts the stand-up-reminder row. |
locale/{zh,en}.json | Title and description shown in the plugin list. |
icon.svg | Plugin icon. |
License
MIT — see LICENSE.
中文
一个真的会让你站起来的久坐提醒。
DSH 界面常驻一个倒计时小条,到点弹出全屏遮罩把应用挡住,必须点「我已起身」并活动够时长才会解锁。为中度腰间盘突出写的:坐 30 分钟、活动 3 分钟,可调,支持锁屏超时自动跳过。
没有摄像头、没有传感器、不联网,全部逻辑在插件的浏览器半侧跑,状态存在 localStorage。
安装
这个包没有发布到 npm,直接从 GitHub 装:
dsh plugin add github:Xiaofufufu/dsh-stand-up-reminder
也可以从本地目录装:dsh plugin add /path/to/dsh-stand-up-reminder。
装完重启一次 DSH。要求 DSH >=0.2.2-rc.1。
用起来是什么样
- 小条:输入框下方右侧常驻「距离起身 12:34」,剩 60 秒内变黄,活动阶段变绿显示「活动中 02:59」。点一下可以直接开始一次活动。
- 遮罩:到点整屏盖住,中间大号倒计时。没点「我已起身」之前倒计时不动,遮罩也就一直挡着;点了才开始走,走完自动消失。遮罩里每分钟轮换一条适合腰突的动作。
- 设置页:设置 → 插件 → 久坐提醒。可调坐姿/活动时长、提前提醒秒数、强制遮罩、紧急跳过、系统通知、锁屏跳过阈值;另有三个按钮(恢复默认、重新开始计时、立即开始活动),以及今日跳过次数和通知授权按钮。
计时是诚实的
- 时间戳存
localStorage,刷新页面、切标签页、休眠回来都按真实经过时间重算,不会因为刷新把坐姿计时清零。 - 遮罩出现后刷新页面,遮罩照样弹回来——绕不过去。
- 离开超过「坐 + 活动 + 30 分钟」视为人不在电脑前,重新开始坐姿计时。
- 锁屏/合盖自动跳过:页面不可见超过设定时长(默认 5 分钟)回来,视为已经休息过,坐姿计时从回来这一刻重算。
诚实的边界
- 没有任何东西能验证你是不是真站起来了。「我已起身」是自觉按钮。要真锁死,得靠摄像头、外设或系统级工具。
- 锁屏检测只到浏览器页面可见性这一层:锁屏、合盖、窗口被完全遮住会触发;只关显示器不锁会话可能不触发。
- 状态在
localStorage,不跨机器同步,清站点数据就没了。 - 刻意不做统计报表和连续天数:一个天天追着你算合规率的健康提醒,是更差的健康提醒。
许可
MIT。
Plugins relacionados
dsh-purge
kingcharleslzy-ai/dsh-purge
dsh-web (dsh-ssh)
zhu1090093659/dsh-web
dsh-web (dsh-remote-web-ui)
zhu1090093659/dsh-web
dsh-web-ui (dsh-ssh)
zhu1090093659/dsh-web-ui