{"id":28446959,"url":"https://github.com/os-js/osjs-gapi-provider","last_synced_at":"2025-06-30T06:32:21.609Z","repository":{"id":55552235,"uuid":"140764534","full_name":"os-js/osjs-gapi-provider","owner":"os-js","description":"OS.js Google API Service Provider","archived":false,"fork":false,"pushed_at":"2022-08-09T22:52:37.000Z","size":18,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-06T11:08:51.339Z","etag":null,"topics":["osjs","osjs-provider"],"latest_commit_sha":null,"homepage":"https://manual.os-js.org/v3/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/os-js.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"andersevenrud","patreon":"andersevenrud","open_collective":"osjs","liberapay":"os-js","custom":"https://paypal.me/andersevenrud"}},"created_at":"2018-07-12T21:02:57.000Z","updated_at":"2023-12-14T06:19:58.000Z","dependencies_parsed_at":"2022-08-15T03:01:07.613Z","dependency_job_id":null,"html_url":"https://github.com/os-js/osjs-gapi-provider","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/os-js/osjs-gapi-provider","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/os-js%2Fosjs-gapi-provider","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/os-js%2Fosjs-gapi-provider/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/os-js%2Fosjs-gapi-provider/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/os-js%2Fosjs-gapi-provider/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/os-js","download_url":"https://codeload.github.com/os-js/osjs-gapi-provider/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/os-js%2Fosjs-gapi-provider/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260976721,"owners_count":23091508,"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","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":["osjs","osjs-provider"],"created_at":"2025-06-06T11:08:56.356Z","updated_at":"2025-06-30T06:32:21.594Z","avatar_url":"https://github.com/os-js.png","language":"JavaScript","funding_links":["https://github.com/sponsors/andersevenrud","https://patreon.com/andersevenrud","https://opencollective.com/osjs","https://liberapay.com/os-js","https://paypal.me/andersevenrud","https://www.patreon.com/user?u=2978551\u0026ty=h\u0026u=2978551","https://liberapay.com/os-js/"],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg alt=\"OS.js Logo\" src=\"https://raw.githubusercontent.com/os-js/gfx/master/logo-big.png\" /\u003e\n\u003c/p\u003e\n\n[OS.js](https://www.os-js.org/) is an [open-source](https://raw.githubusercontent.com/os-js/OS.js/master/LICENSE) web desktop platform with a window manager, application APIs, GUI toolkit, filesystem abstractions and much more.\n\n[![Support](https://img.shields.io/badge/patreon-support-orange.svg)](https://www.patreon.com/user?u=2978551\u0026ty=h\u0026u=2978551)\n[![Support](https://img.shields.io/badge/opencollective-donate-red.svg)](https://opencollective.com/osjs)\n[![Donate](https://img.shields.io/badge/liberapay-donate-yellowgreen.svg)](https://liberapay.com/os-js/)\n[![Donate](https://img.shields.io/badge/paypal-donate-yellow.svg)](https://paypal.me/andersevenrud)\n[![Community](https://img.shields.io/badge/join-community-green.svg)](https://community.os-js.org/)\n\n# OS.js Google API Provider\n\nThis is the Google API Provider for OS.js.\n\n## Installation\n\n```bash\nnpm install @osjs/gapi-provider\n```\n\nIn your client bootstrap file (`src/client/index.js`):\n\n```javascript\nimport {GapiServiceProvider} from '@osjs/gapi-provider';\n\nosjs.register(GapiServiceProvider, {\n  args: {\n    // These are set for you by default\n    src: 'https://apis.google.com/js/api.js',\n    libraries: 'client:auth2',\n    timeout: 30000,\n\n    // You have to define these\n    client: {\n      apiKey: '',\n      clientId: '',\n      discoveryDocs: [],\n      scope: []\n    }\n  }\n});\n```\n\n## Usage\n\nFor example in an application:\n\n```javascript\nconst osjsgapi = core.make('osjs/gapi').create();\nosjsgapi.on('signed-in', () =\u003e console.log('You were signed in'));\nosjsgapi.on('signed-out', () =\u003e console.log('You were signed out'));\n\nosjsgapi.login().then(gapi =\u003e {\n  // Do whatever\n});\n\nproc.on('destroy', () =\u003e osjsgapi.destroy());\n```\n\n## Contribution\n\n* **Sponsor on [Github](https://github.com/sponsors/andersevenrud)**\n* **Become a [Patreon](https://www.patreon.com/user?u=2978551\u0026ty=h\u0026u=2978551)**\n* **Support on [Open Collective](https://opencollective.com/osjs)**\n* [Contribution Guide](https://github.com/os-js/OS.js/blob/master/CONTRIBUTING.md)\n\n## Documentation\n\nSee the [Official Manuals](https://manual.os-js.org/) for articles, tutorials and guides.\n\n## Links\n\n* [Official Chat](https://gitter.im/os-js/OS.js)\n* [Community Forums and Announcements](https://community.os-js.org/)\n* [Homepage](https://os-js.org/)\n* [Twitter](https://twitter.com/osjsorg) ([author](https://twitter.com/andersevenrud))\n* [Google+](https://plus.google.com/b/113399210633478618934/113399210633478618934)\n* [Facebook](https://www.facebook.com/os.js.org)\n* [Docker Hub](https://hub.docker.com/u/osjs/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fos-js%2Fosjs-gapi-provider","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fos-js%2Fosjs-gapi-provider","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fos-js%2Fosjs-gapi-provider/lists"}