{"id":15949053,"url":"https://github.com/linhe0x0/refined-minapp-sdk","last_synced_at":"2026-02-03T13:31:02.370Z","repository":{"id":42633212,"uuid":"182068777","full_name":"linhe0x0/refined-minapp-sdk","owner":"linhe0x0","description":"A helper wrapped on the top of wechat-minapp sdk to make it more developer-friendly.","archived":false,"fork":false,"pushed_at":"2023-03-06T05:35:24.000Z","size":841,"stargazers_count":0,"open_issues_count":5,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-04T14:24:51.672Z","etag":null,"topics":["minapp","wechat-mini-program"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/linhe0x0.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-04-18T10:39:51.000Z","updated_at":"2021-07-09T10:53:11.000Z","dependencies_parsed_at":"2024-10-29T19:20:55.397Z","dependency_job_id":null,"html_url":"https://github.com/linhe0x0/refined-minapp-sdk","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/linhe0x0/refined-minapp-sdk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linhe0x0%2Frefined-minapp-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linhe0x0%2Frefined-minapp-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linhe0x0%2Frefined-minapp-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linhe0x0%2Frefined-minapp-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/linhe0x0","download_url":"https://codeload.github.com/linhe0x0/refined-minapp-sdk/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linhe0x0%2Frefined-minapp-sdk/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29046557,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-03T10:09:22.136Z","status":"ssl_error","status_checked_at":"2026-02-03T10:09:16.814Z","response_time":96,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["minapp","wechat-mini-program"],"created_at":"2024-10-07T12:12:43.200Z","updated_at":"2026-02-03T13:31:02.353Z","avatar_url":"https://github.com/linhe0x0.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# refined-minapp-sdk\n\n对微信小程序 API 的封装，对开发更友好。\n\n## 核心原则\n\n- 基于 TypeScript 进行类型补全。\n- 全部 Promise 化\n- 将部分关键参数扁平化提取，例如 `wx.getStorage({ key: '' })` =\u003e `wx.getStorage('key')`\n- 使用 JS 内置的标准 `Error` 对象替换掉微信小程序的错误对象。\n\n## 例如\n\n官方原始调用方式：\n\n```js\nwx.getStorage({\n  key: 'local_token',\n  success: (res) =\u003e {\n    console.log(res.data)\n  },\n  fail: (err) =\u003e {\n    console.error(err.errMsg)\n  },\n})\n```\n\n现在：\n\n```js\nwx.getStorage('local_token')\n  .then((res) =\u003e {\n    console.log(res)\n  })\n  .catch((err) =\u003e {\n    console.error(err.message)\n  })\n```\n\n### VSCode 代码提示展示\n\n![](./static/intellisense.png)\n\n## TODO\n\n- [ ] 基础\n- [ ] 路由\n- [ ] 跳转\n- [ ] 转发\n- [ ] 界面\n- [ ] 网络\n- [ ] 支付\n- [ ] 数据缓存\n- [ ] 数据分析\n- [ ] 画布\n- [ ] 媒体\n- [ ] 位置\n- [ ] 文件\n- [ ] 开放接口\n- [ ] 设备\n- [ ] Worker\n- [ ] WXML\n- [ ] 第三方平台\n- [ ] 广告\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinhe0x0%2Frefined-minapp-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flinhe0x0%2Frefined-minapp-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinhe0x0%2Frefined-minapp-sdk/lists"}