{"id":21291887,"url":"https://github.com/idea2app/mobx-github","last_synced_at":"2026-01-27T15:32:51.025Z","repository":{"id":242918674,"uuid":"810630810","full_name":"idea2app/MobX-GitHub","owner":"idea2app","description":"MobX SDK for GitHub RESTful API, which is based on MobX-RESTful.","archived":false,"fork":false,"pushed_at":"2025-10-30T16:36:53.000Z","size":219,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-30T18:29:34.761Z","etag":null,"topics":["api","decorator","github","mobx","restful","sdk"],"latest_commit_sha":null,"homepage":"https://idea2app.github.io/MobX-GitHub/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/idea2app.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-06-05T04:26:01.000Z","updated_at":"2025-10-30T16:36:29.000Z","dependencies_parsed_at":"2024-06-05T18:46:20.812Z","dependency_job_id":"00ec0e02-1fd3-448f-9204-0c6a3492a4b5","html_url":"https://github.com/idea2app/MobX-GitHub","commit_stats":null,"previous_names":["idea2app/mobx-github"],"tags_count":17,"template":false,"template_full_name":null,"purl":"pkg:github/idea2app/MobX-GitHub","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idea2app%2FMobX-GitHub","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idea2app%2FMobX-GitHub/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idea2app%2FMobX-GitHub/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idea2app%2FMobX-GitHub/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/idea2app","download_url":"https://codeload.github.com/idea2app/MobX-GitHub/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idea2app%2FMobX-GitHub/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28815406,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-27T12:25:15.069Z","status":"ssl_error","status_checked_at":"2026-01-27T12:25:05.297Z","response_time":168,"last_error":"SSL_read: 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":["api","decorator","github","mobx","restful","sdk"],"created_at":"2024-11-21T13:46:35.763Z","updated_at":"2026-01-27T15:32:51.016Z","avatar_url":"https://github.com/idea2app.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MobX-GitHub\n\n[MobX][1] SDK for [GitHub RESTful API][2], which is based on [MobX-RESTful][3].\n\n[![MobX compatibility](https://img.shields.io/badge/Compatible-1?logo=mobx\u0026label=MobX%206%2F7)][1]\n[![NPM Dependency](https://img.shields.io/librariesio/release/npm/mobx-github)][4]\n[![CI \u0026 CD](https://github.com/idea2app/MobX-GitHub/actions/workflows/main.yml/badge.svg)][5]\n\n[![NPM](https://nodei.co/npm/mobx-github.png?downloads=true\u0026downloadRank=true\u0026stars=true)][6]\n\n## Model\n\n1. [User](source/User.ts)\n2. [Organization](source/Organization.ts)\n3. [Repository](source/Repository.ts)\n    1. Contributor\n    2. Language\n    3. Issue\n4. [Content](source/Content.ts) - Git file tree traversal\n    1. Directory traversal\n    2. Recursive tree traversal\n    3. File search by extension\n    4. File search by pattern\n5. [Issue](source/Issue.ts)\n6. [Issue Comment](source/IssueComment.ts)\n7. [Pull Request](source/PullRequest.ts)\n8. [Discussion](source/Discussion.ts)\n9. [Contributor](source/Contributor.ts)\n10. [Check Run](source/CheckRun.ts)\n11. [Workflow Run](source/WorkflowRun.ts)\n\n## Usage\n\n### Installation\n\n```shell\nnpm i mobx-github\n```\n\n### `tsconfig.json`\n\n```json\n{\n    \"compilerOptions\": {\n        \"target\": \"ES6\",\n        \"moduleResolution\": \"Node\",\n        \"useDefineForClassFields\": true,\n        \"experimentalDecorators\": false,\n        \"jsx\": \"react-jsx\"\n    }\n}\n```\n\n### `model/GitHub.ts`\n\n```typescript\nimport { githubClient, UserModel } from 'mobx-github';\n\n// Any possible way to pass GitHub access token\n// from local files or back-end servers to Web pages\nconst token = new URLSearchParams(location.search).get('token');\n\ngithubClient.use(({ request }, next) =\u003e {\n    if (token)\n        request.headers = {\n            authorization: `Bearer ${token}`,\n            ...request.headers\n        };\n    return next();\n});\n\nexport const userStore = new UserModel();\n```\n\n### `page/GitHub.tsx`\n\nUse [WebCell][7] as an Example\n\n```tsx\nimport { component, observer } from 'web-cell';\n\nimport { userStore } from '../model/GitHub';\n\n@component({ tagName: 'github-page' })\n@observer\nexport class GitHubPage extends HTMLElement {\n    connectedCallback() {\n        userStore.getSession();\n    }\n\n    disconnectedCallback() {\n        userStore.clear();\n    }\n\n    render() {\n        const { namespaces } = userStore;\n\n        return (\n            \u003cselect\u003e\n                {namespaces.map(({ login }) =\u003e (\n                    \u003coption key={login}\u003e{login}\u003c/option\u003e\n                ))}\n            \u003c/select\u003e\n        );\n    }\n}\n```\n\n## User cases\n\n1. https://github.com/FreeCodeCamp-Chengdu/FreeCodeCamp-Chengdu.github.io\n2. https://github.com/Open-Source-Bazaar/Open-Source-Bazaar.github.io\n\n[1]: https://mobx.js.org/\n[2]: https://docs.github.com/en/rest\n[3]: https://github.com/idea2app/MobX-RESTful\n[4]: https://libraries.io/npm/mobx-github\n[5]: https://github.com/idea2app/MobX-GitHub/actions/workflows/main.yml\n[6]: https://nodei.co/npm/mobx-github/\n[7]: https://github.com/EasyWebApp/WebCell\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fidea2app%2Fmobx-github","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fidea2app%2Fmobx-github","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fidea2app%2Fmobx-github/lists"}