{"id":15509664,"url":"https://github.com/willin/up.js.cool","last_synced_at":"2025-10-14T16:06:25.871Z","repository":{"id":18429829,"uuid":"83387957","full_name":"willin/up.js.cool","owner":"willin","description":"A monitor system powered by wresuetime","archived":false,"fork":false,"pushed_at":"2023-07-11T23:21:44.000Z","size":1054,"stargazers_count":16,"open_issues_count":4,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-09-16T00:37:12.278Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://up.js.cool","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/willin.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},"funding":{"github":"willin","custom":"https://afdian.net/@willin"}},"created_at":"2017-02-28T04:05:19.000Z","updated_at":"2023-08-22T09:06:12.000Z","dependencies_parsed_at":"2023-01-11T20:29:00.956Z","dependency_job_id":null,"html_url":"https://github.com/willin/up.js.cool","commit_stats":{"total_commits":37,"total_committers":3,"mean_commits":"12.333333333333334","dds":"0.43243243243243246","last_synced_commit":"3a7f44d799846b47454251ede605588cfcab39a9"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/willin/up.js.cool","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willin%2Fup.js.cool","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willin%2Fup.js.cool/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willin%2Fup.js.cool/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willin%2Fup.js.cool/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/willin","download_url":"https://codeload.github.com/willin/up.js.cool/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willin%2Fup.js.cool/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279013635,"owners_count":26085298,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-12T02:00:06.719Z","response_time":53,"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":"2024-10-02T09:43:27.285Z","updated_at":"2025-10-14T16:06:25.856Z","avatar_url":"https://github.com/willin.png","language":"JavaScript","funding_links":["https://github.com/sponsors/willin","https://afdian.net/@willin"],"categories":[],"sub_categories":[],"readme":"# up.js.cool\n\nNode.js 版本要求： ***\u003e= 7.6.0***\n\n[![github](https://img.shields.io/github/followers/willin.svg?style=social\u0026label=Followers)](https://github.com/willin) [![codebeat badge](https://codebeat.co/badges/e057a1c3-49a1-44af-8cca-13aca31de5eb)](https://codebeat.co/projects/github-com-willin-up-js-cool-master)\n\n## 安装\n\n`config` 目录下的 `*.dev.*` 为配置文件范例，新建对应的 `*.prod.*` 配置文件。\n\n新建 `MySQL` 表：\n\n```sql\nCREATE TABLE `data` (\n  `user` char(16) NOT NULL DEFAULT '' COMMENT '用户',\n  `active` int(3) unsigned NOT NULL COMMENT '活跃时间（秒）',\n  `efficiency` decimal(5,2) NOT NULL COMMENT '效率（%）',\n  `date` int(10) unsigned NOT NULL COMMENT '数据时间（转时间戳）',\n  KEY `whereorder` (`user`,`date`),\n  KEY `date` (`date`)\n) ENGINE=MyISAM DEFAULT CHARSET=utf8;\n```\n\n注意将 `Nginx` 的配置文件加入到服务中。\n\nCertBot 签发 SSL 证书教程： \u003c\u003e\n\n```bash\nyarn\n# 或\nnpm i\n```\n\n## 运行\n\n* Redis 服务\n* MySQL 服务\n* Nginx 服务\\*\n\n## 命令\n\n本地测试：\n\n```bash\n# 启动Web服务\nnpm run dev:server\n# 启动计划任务\nnpm run dev:crontab\n# 启动静态文件存储\nnpm run dev:cdn\n```\n\n## 定时任务\n\n1. 每周一凌晨两点更新 SSL 证书\n2. 每天凌晨1点清空30天之前历史数据\n3. 每天凌晨0点清除采集计时器\n4. 间隔50-70秒（随机）采集每个用户的数据\n\n## TODO List\n\n* 图表优化\n* 加入联系方式\n* 部署教程\n\n## 相关项目推荐\n\n- 阿里云SDK： https://github.com/willin/waliyun\n- 腾讯云SDK： https://github.com/willin/wqcloud\n- 网易云音乐SDK： https://github.com/willin/wnm\n- Rescuetime SDK： https://github.com/willin/wrescuetime\n\n## License\n\nApache 2.0\n\n\u003cimg width=\"483\" alt=\"donate\" src=\"https://user-images.githubusercontent.com/1890238/59274374-cd594300-8c8c-11e9-8ee8-fe9be4b49cdb.png\"\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillin%2Fup.js.cool","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwillin%2Fup.js.cool","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillin%2Fup.js.cool/lists"}