[{"data":1,"prerenderedAt":159},["ShallowReactive",2],{"repo-wangziming-dev-focusguard-en":3,"i18n-wangziming-dev-focusguard-en":156},{"mirrorPool":4,"detail":13,"relatedProjects":56},[5,9],{"key":6,"label":7,"base":8,"type":6},"github","mirror.github","https:\u002F\u002Fgithub.com\u002F",{"key":10,"label":11,"base":12,"type":10},"auto-proxy","mirror.autoProxy","https:\u002F\u002Fgh-proxy.com\u002F",{"owner":14,"repo":15,"repoId":16,"repoUrl":17,"starCount":18,"language":19,"description":20,"languages":21,"screenshots":27,"homepage":28,"pushedAt":29,"ownerAvatar":30,"ownerName":28,"ownerBio":28,"lastSyncTime":31,"lastReleaseTime":32,"tags":33,"license":34,"category":35,"subgroup":36,"releases":37},"WangZiming-dev","FocusGuard",1476255524,"https:\u002F\u002Fgithub.com\u002FWangZiming-dev\u002FFocusGuard",1,"JavaScript","端坐小管家 FocusGuard — 纯本地运行的坐姿与专注状态监测桌面应用。Electron + MediaPipe + 本地可训练 MLP，运行时零联网，数据只存本机。由我的 WorkBuddy AI Agent 小码同学💻自主制作。",{"JavaScript":22,"HTML":23,"CSS":24,"Python":25,"Shell":26},71.6,14.5,11.7,1.6,0.7,[],"","2026-12-05","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F242745820?v=4","2026-12-05T10:42:29.108107+00:00","2026-11-29T08:17:06Z",[],"MIT","tools","番茄钟\u002F专注工具",[38],{"tag":39,"publishAt":32,"semVer":40,"prerelease":42,"assets":43},"1.0.1",[18,41,18],0,false,[44,50],{"fileName":45,"sizeMb":46,"sha256":47,"downloadCount":48,"originUrl":49},"FocusGuard-1.0.1-arm64-mac.zip",114.9,"25f527f2503baae0693fc82282d070385141424a9816dcb90f0aa1473c370e5d",5,"https:\u002F\u002Fgithub.com\u002FWangZiming-dev\u002FFocusGuard\u002Freleases\u002Fdownload\u002F1.0.1\u002FFocusGuard-1.0.1-arm64-mac.zip",{"fileName":51,"sizeMb":52,"sha256":53,"downloadCount":54,"originUrl":55},"FocusGuard-1.0.1-x64-mac.zip",119.8,"8aa31d5878cacf46b681ba59f306335c5269e60695228c2db5342d532856cb76",4,"https:\u002F\u002Fgithub.com\u002FWangZiming-dev\u002FFocusGuard\u002Freleases\u002Fdownload\u002F1.0.1\u002FFocusGuard-1.0.1-x64-mac.zip",[57,78,98,112,130,141],{"owner":58,"repo":59,"repoId":60,"category":61,"subgroup":36,"language":62,"tags":63,"starCount":70,"ownerUid":71,"latestTag":72,"platforms":73,"lastReleaseTime":75,"downloadCount":76,"description":77},"G07cha","pomodoro",43559489,"productivity","Rust",[64,59,65,66,67,68,69],"macos","rust","tauri","timer","typescript","windows",473,6943514,"v3.6.1",[69,74],"mac","2025-06-08T16:32:50Z",2719,"A simple terminal-based Pomodoro timer for improving productivity.",{"owner":79,"repo":80,"repoId":81,"category":61,"subgroup":36,"language":62,"tags":82,"starCount":91,"ownerUid":92,"latestTag":93,"platforms":94,"lastReleaseTime":95,"downloadCount":96,"description":97},"vdnight89","tomato-supermarket",1424189951,[83,84,85,86,87,65,88,89,66,80,90,69],"audiobook","comic-reader","desktop-app","fanqie","novel-reader","short-drama","single-executable","webview2",93,291329933,"v1.0.0",[69],"2026-10-19T09:25:56Z",2553,"Tomato Supermarket is the Windows desktop client for Fanqie novels, an 11.4 MB single-file Tauri v2 exe bundling novels, audiobooks, short dramas, animated dramas, and comics, ready on double-click.",{"owner":99,"repo":100,"repoId":101,"category":35,"subgroup":36,"language":102,"tags":103,"starCount":104,"ownerUid":105,"latestTag":106,"platforms":107,"lastReleaseTime":109,"downloadCount":110,"description":111},"wuqiao309","clear-tomato",1383703453,"Kotlin",[],14,29456722,"v1.1.1",[108],"android","2026-10-29T19:36:37Z",8,"clear-tomato is an LSPosed module that removes unwanted main tabs, sub-tabs, floating balls, and feed sections from Fanqie Free Novel and Hongguo Free Short Drama, keeping only what you actually use.",{"owner":113,"repo":114,"repoId":115,"category":35,"subgroup":36,"language":116,"tags":117,"starCount":18,"ownerUid":125,"latestTag":126,"platforms":127,"lastReleaseTime":128,"downloadCount":48,"description":129},"WT667","MyTomato",1396757553,"Java",[108,118,86,119,120,121,122,123,124],"debloat","hook","java","lsposed","tomato","xposed","xposed-module",186468433,"v1.3.0",[108],"2026-11-29T03:48:27Z","MyTomato is an LSPosed module for rooted Android devices that unlocks VIP perks and strips ads and clutter from Fanqie Listen, Fanqie Novel, and Hongguo Short Drama.",{"owner":131,"repo":132,"repoId":133,"category":35,"subgroup":36,"language":134,"tags":135,"starCount":18,"ownerUid":136,"latestTag":137,"platforms":138,"lastReleaseTime":139,"downloadCount":41,"description":140},"zrb6666","lx-music-focus",1387535422,"TypeScript",[],135193172,"v0.1.0",[69],"2026-09-25T13:21:31Z","LX Focus is a Windows desktop focus tool forked from LX Music, combining a focus lock with music playback to keep you from getting distracted.",{"owner":142,"repo":143,"repoId":144,"category":61,"subgroup":36,"language":145,"tags":146,"starCount":41,"ownerUid":149,"latestTag":150,"platforms":151,"lastReleaseTime":153,"downloadCount":154,"description":155},"Dante9k","tommi",1380790494,"C#",[59,147,148],"windows-desktop","wpf",36197026,"v1.1.23",[69,152],"other","2026-10-13T06:05:11Z",3,"Tommi is a desktop Pomodoro timer for Windows and macOS with a rounded clay-style tomato, inertial time wheels, and a full-screen throwing reminder.",{"description":157,"readmeHtml":158},"FocusGuard is a desktop app for Windows, macOS and Linux that watches posture and focus through the camera and a local MLP, sending alerts while staying fully offline.","\u003Ch2 id=\"project-overview\">Project Overview\u003C\u002Fh2>\u003Cp>When you sit at a desk for hours writing code or reading documents and want something to watch your posture, FocusGuard keeps every decision on your own machine: Electron provides the window, MediaPipe runs face and pose landmarks inside the renderer, and a state that passes its threshold triggers an alert. Camera frames only pass through memory as numeric features, never as stored images, and nothing is uploaded. The main process owns windows and persistence, the renderer owns detection, training and charts, and the two talk over channels exposed by \u003Ccode>preload.js\u003C\u002Fcode>.\u003C\u002Fp>\n\u003Ctable>\n\u003Cthead>\n\u003Ctr>\n\u003Cth>Item\u003C\u002Fth>\n\u003Cth>Value\u003C\u002Fth>\n\u003C\u002Ftr>\n\u003C\u002Fthead>\n\u003Ctbody>\u003Ctr>\n\u003Ctd>Stack\u003C\u002Ftd>\n\u003Ctd>Electron 28 with plain JavaScript\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>Vision models\u003C\u002Ftd>\n\u003Ctd>MediaPipe Tasks Vision 0.10.22, one task model each for face and pose\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>Classifier\u003C\u002Ftd>\n\u003Ctd>Self-trained MLP, 14 inputs, 24 hidden units, 8 outputs\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>Packages\u003C\u002Ftd>\n\u003Ctd>macOS dmg \u002F zip, Windows nsis \u002F zip, Linux AppImage\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>License\u003C\u002Ftd>\n\u003Ctd>MIT\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003C\u002Ftbody>\u003C\u002Ftable>\n\u003Cblockquote>\n\u003Cp>Frames never leave the machine, the model trains locally, and unplugging the network changes nothing.\u003C\u002Fp>\n\u003C\u002Fblockquote>\n\u003Ch2 id=\"key-features\">Key Features\u003C\u002Fh2>\u003Cul>\n\u003Cli>\u003Cstrong>Eight states\u003C\u002Fstrong>: good posture, hunched back, leaning in, tilting, away, head down, off screen and distracted, each with its own colour, description and advice\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Two decision paths\u003C\u002Fstrong>: rule mode judges by thresholds by default, or you collect and label samples on the training page and let a two-layer network take over\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Baseline calibration\u003C\u002Fstrong>: after starting monitoring, sit up straight and press Calibrate baseline so later comparisons use that pose\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Tunable thresholds\u003C\u002Fstrong>: sliders with limits for hunched back, leaning, tilt, off screen, head down and distraction, plus separate durations for away and inattention\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Alert control\u003C\u002Fstrong>: desktop popups, locally synthesised chimes and system notifications can be combined, with a 20-second cooldown, 20 alerts per hour and a 5-minute snooze\u003C\u002Fli>\n\u003Cli>\u003Cstrong>History and stats\u003C\u002Fstrong>: daily records with snapshot thumbnails, and a stats page showing today&#39;s focus score, alert count, hour and type distribution, a 7-day trend and CSV export\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Window habits\u003C\u002Fstrong>: optional start minimised, close to tray and launch at login\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Ch2 id=\"states-and-default-thresholds\">States and Default Thresholds\u003C\u002Fh2>\u003Ctable>\n\u003Cthead>\n\u003Ctr>\n\u003Cth>State\u003C\u002Fth>\n\u003Cth>Condition\u003C\u002Fth>\n\u003Cth>Default\u003C\u002Fth>\n\u003C\u002Ftr>\n\u003C\u002Fthead>\n\u003Ctbody>\u003Ctr>\n\u003Ctd>Hunched back\u003C\u002Ftd>\n\u003Ctd>Head-to-shoulder distance drops by this ratio\u003C\u002Ftd>\n\u003Ctd>22%\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>Leaning in\u003C\u002Ftd>\n\u003Ctd>Face area grows by this ratio\u003C\u002Ftd>\n\u003Ctd>24%\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>Tilting\u003C\u002Ftd>\n\u003Ctd>Head tilt exceeds this angle\u003C\u002Ftd>\n\u003Ctd>12°\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>Off screen\u003C\u002Ftd>\n\u003Ctd>Offset from screen centre exceeds this ratio\u003C\u002Ftd>\n\u003Ctd>28%\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>Head down\u003C\u002Ftd>\n\u003Ctd>Downward gaze index deviates by this value\u003C\u002Ftd>\n\u003Ctd>20\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>Distracted\u003C\u002Ftd>\n\u003Ctd>Side gaze index deviates by this value\u003C\u002Ftd>\n\u003Ctd>16\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>Away\u003C\u002Ftd>\n\u003Ctd>No person detected for this many seconds\u003C\u002Ftd>\n\u003Ctd>5 s\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>Inattentive\u003C\u002Ftd>\n\u003Ctd>Gaze off screen for this many seconds\u003C\u002Ftd>\n\u003Ctd>10 s\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003C\u002Ftbody>\u003C\u002Ftable>\n\u003Ch2 id=\"interface-and-operation\">Interface and Operation\u003C\u002Fh2>\u003Cul>\n\u003Cli>Six pages in the left navigation: Monitor, Training, History, Stats, Settings and Help\u003C\u002Fli>\n\u003Cli>The monitor page shows the camera preview, landmark overlay and a colour block for the current state, with landmarks toggleable\u003C\u002Fli>\n\u003Cli>The training page collects and labels samples for the eight states, then shows a confusion matrix and lets you switch the active model\u003C\u002Fli>\n\u003Cli>The camera defaults to 640x480 at 15 fps with a mirrored image; device and resolution are configurable\u003C\u002Fli>\n\u003Cli>A state must agree across at least 5 consecutive frames before it switches, which keeps jitter from raising false alerts\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Ch2 id=\"quick-start\">Quick Start\u003C\u002Fh2>\u003Col>\n\u003Cli>Download the package for your platform from Releases; on macOS take \u003Ccode>FocusGuard-1.0.1-arm64-mac.zip\u003C\u002Fcode> or \u003Ccode>FocusGuard-1.0.1-x64-mac.zip\u003C\u002Fcode>\u003C\u002Fli>\n\u003Cli>Allow camera access on first launch; once the monitor page shows a picture, the MediaPipe models are ready\u003C\u002Fli>\n\u003Cli>Sit up straight, press Calibrate baseline, then run a day on the default thresholds before fine-tuning sensitivity\u003C\u002Fli>\n\u003Cli>For a self-trained model, label a few dozen frames per state on the training page and switch models under Settings → Model\u003C\u002Fli>\n\u003Cli>From source run \u003Ccode>npm install\u003C\u002Fcode> (the script prepares WASM and downloads both landmark models, about 9 MB) and then \u003Ccode>npm start\u003C\u002Fcode>; \u003Ccode>npm run check\u003C\u002Fcode> runs the syntax check\u003C\u002Fli>\n\u003C\u002Fol>\n\u003Ch2 id=\"target-audience\">Target Audience\u003C\u002Fh2>\u003Cul>\n\u003Cli>Office workers who sit for long stretches and feel it in the neck and shoulders\u003C\u002Fli>\n\u003Cli>Parents who want to nudge a child&#39;s posture\u003C\u002Fli>\n\u003Cli>Freelancers tracking how long they actually stay focused\u003C\u002Fli>\n\u003Cli>Developers exploring on-device pose estimation\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Ch2 id=\"system-requirements\">System Requirements\u003C\u002Fh2>\u003Ctable>\n\u003Cthead>\n\u003Ctr>\n\u003Cth>Item\u003C\u002Fth>\n\u003Cth>Requirement\u003C\u002Fth>\n\u003C\u002Ftr>\n\u003C\u002Fthead>\n\u003Ctbody>\u003Ctr>\n\u003Ctd>OS\u003C\u002Ftd>\n\u003Ctd>Windows, macOS, Linux\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>Runtime\u003C\u002Ftd>\n\u003Ctd>Electron 28, bundled with the installer\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>Running from source\u003C\u002Ftd>\n\u003Ctd>Node.js 18 and above\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>Hardware\u003C\u002Ftd>\n\u003Ctd>A working camera; MediaPipe prefers the GPU delegate and falls back to CPU\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003C\u002Ftbody>\u003C\u002Ftable>\n\u003Ch2 id=\"notes\">Notes\u003C\u002Fh2>\u003Cul>\n\u003Cli>\u003Cstrong>Not a medical assessment\u003C\u002Fstrong>: thresholds come from pixel ratios and angles in the camera view, so recalibrate after changing chair or monitor height\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Camera placement matters\u003C\u002Fstrong>: if the camera and the screen are not on the same plane, leaning and off-screen readings skew, so keep it centred above the display\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Rules and MLP disagree\u003C\u002Fstrong>: a self-trained model depends on sample quality, and too few samples are less stable than the default thresholds\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Models need one online setup\u003C\u002Fstrong>: the asset script fetches them from Google Storage, so on a blocked network copy both \u003Ccode>.task\u003C\u002Fcode> files into \u003Ccode>assets\u002Fmodels\u002F\u003C\u002Fcode> by hand\u003C\u002Fli>\n\u003Cli>\u003Cstrong>CPU fallback costs accuracy\u003C\u002Fstrong>: when the GPU delegate fails, frame rate and detection responsiveness both drop\u003C\u002Fli>\n\u003C\u002Ful>\n",1796528283847]