{"id":23459844,"url":"https://github.com/trylife/atk","last_synced_at":"2025-08-02T03:10:22.054Z","repository":{"id":88734101,"uuid":"381875900","full_name":"trylife/atk","owner":"trylife","description":"access token keeper, central access token, wechat access token ","archived":false,"fork":false,"pushed_at":"2021-07-04T02:45:32.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-19T01:22:38.139Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/trylife.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2021-07-01T01:30:24.000Z","updated_at":"2025-02-21T17:44:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"59a9c118-4d81-46ed-99e6-d453126945d8","html_url":"https://github.com/trylife/atk","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/trylife/atk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trylife%2Fatk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trylife%2Fatk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trylife%2Fatk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trylife%2Fatk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/trylife","download_url":"https://codeload.github.com/trylife/atk/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trylife%2Fatk/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268330914,"owners_count":24233152,"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-08-02T02:00:12.353Z","response_time":74,"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-12-24T06:18:37.965Z","updated_at":"2025-08-02T03:10:22.002Z","avatar_url":"https://github.com/trylife.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# atk (Access Token Keeper)\n\n- [x] common api.\n- [x] auto refresh access token.\n- [ ] auto check.\n\n# App types\n\n| type   | des                  |\n| ------ | -------------------- |\n| `wxmp` | wechat mini program  |\n\n# api\n\n`/app/:appType/:appId/token?refresh=false`\n\n`/pong`\n\n# References\n\n- https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/access-token/auth.getAccessToken.html\n- https://developers.weixin.qq.com/doc/offiaccount/Message_Management/API_Call_Limits.html\n\n\n```bash\nab -c100 -n10000 http://127.0.0.1:8080/app/wxmp/xxx/token\nThis is ApacheBench, Version 2.3 \u003c$Revision: 1879490 $\u003e\nCopyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/\nLicensed to The Apache Software Foundation, http://www.apache.org/\n\nBenchmarking 127.0.0.1 (be patient)\nCompleted 1000 requests\nCompleted 2000 requests\nCompleted 3000 requests\nCompleted 4000 requests\nCompleted 5000 requests\nCompleted 6000 requests\nCompleted 7000 requests\nCompleted 8000 requests\nCompleted 9000 requests\nCompleted 10000 requests\nFinished 10000 requests\n\n\nServer Software:        \nServer Hostname:        127.0.0.1\nServer Port:            8080\n\nDocument Path:          /app/wxmp/xxx/token\nDocument Length:        265 bytes\n\nConcurrency Level:      100\nTime taken for tests:   2.304 seconds\nComplete requests:      10000\nFailed requests:        0\nTotal transferred:      3890000 bytes\nHTML transferred:       2650000 bytes\nRequests per second:    4341.18 [#/sec] (mean)\nTime per request:       23.035 [ms] (mean)\nTime per request:       0.230 [ms] (mean, across all concurrent requests)\nTransfer rate:          1649.14 [Kbytes/sec] received\n\nConnection Times (ms)\n              min  mean[+/-sd] median   max\nConnect:        0    1   2.5      1      71\nProcessing:     4   22  50.7     14     516\nWaiting:        2   22  50.7     13     516\nTotal:          4   23  50.8     14     517\n\nPercentage of the requests served within a certain time (ms)\n  50%     14\n  66%     17\n  75%     18\n  80%     20\n  90%     26\n  95%     62\n  98%     82\n  99%    505\n 100%    517 (longest request)\n```\n\n\n## ip allow ref\n\n- https://docs.nginx.com/nginx/admin-guide/security-controls/denylisting-ip-addresses/\n- ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrylife%2Fatk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrylife%2Fatk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrylife%2Fatk/lists"}