{"id":21748252,"url":"https://github.com/electron-modules/electron-webview-schedule","last_synced_at":"2025-04-13T07:13:30.766Z","repository":{"id":45582698,"uuid":"291474297","full_name":"electron-modules/electron-webview-schedule","owner":"electron-modules","description":"Webview scheduling management, supporting asynchronous queue for Electron.","archived":false,"fork":false,"pushed_at":"2023-02-23T15:48:04.000Z","size":294,"stargazers_count":17,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-13T07:13:25.319Z","etag":null,"topics":["electron","memory","promise-queue","webview"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/electron-modules.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":"2020-08-30T13:20:23.000Z","updated_at":"2025-03-31T01:28:52.000Z","dependencies_parsed_at":"2024-11-26T08:23:01.393Z","dependency_job_id":null,"html_url":"https://github.com/electron-modules/electron-webview-schedule","commit_stats":{"total_commits":33,"total_committers":4,"mean_commits":8.25,"dds":0.09090909090909094,"last_synced_commit":"20b2f28670bc4949d0aa21f7da96eaa1b6129660"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/electron-modules%2Felectron-webview-schedule","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/electron-modules%2Felectron-webview-schedule/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/electron-modules%2Felectron-webview-schedule/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/electron-modules%2Felectron-webview-schedule/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/electron-modules","download_url":"https://codeload.github.com/electron-modules/electron-webview-schedule/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248675422,"owners_count":21143768,"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":["electron","memory","promise-queue","webview"],"created_at":"2024-11-26T08:12:46.391Z","updated_at":"2025-04-13T07:13:29.592Z","avatar_url":"https://github.com/electron-modules.png","language":"JavaScript","readme":"# electron-webview-schedule\n\n[![NPM version][npm-image]][npm-url]\n[![build status][travis-image]][travis-url]\n[![Test coverage][coveralls-image]][coveralls-url]\n[![npm download][download-image]][download-url]\n\n[npm-image]: https://img.shields.io/npm/v/electron-webview-schedule.svg\n[npm-url]: https://npmjs.org/package/electron-webview-schedule\n[travis-image]: https://api.travis-ci.com/electron-modules/electron-webview-schedule.svg?branch=master\n[travis-url]: https://travis-ci.com/github/electron-modules/electron-webview-schedule\n[coveralls-image]: https://img.shields.io/coveralls/electron-modules/electron-webview-schedule.svg\n[coveralls-url]: https://coveralls.io/r/electron-modules/electron-webview-schedule?branch=master\n[download-image]: https://img.shields.io/npm/dm/electron-webview-schedule.svg\n[download-url]: https://npmjs.org/package/electron-webview-schedule\n\n\u003e Webview scheduling management module supporting asynchronous queue for Electron.\n\n---\n\n## Installment\n\n```bash\n$ npm i electron-webview-schedule --save\n```\n\n## Usage\n\nImport in the renderer process.\n\n```javascript\nimport moment from 'moment';\nimport PromiseQueue from 'electron-webview-schedule/lib/promise-queue';\nimport WebviewSchedule from 'electron-webview-schedule/lib/webview-schedule';\n\nconst webviewSchedule = new WebviewSchedule({\n  container: document.body,\n  queue: new PromiseQueue(1),\n  moment,\n  webviewOptions: {\n    eventsStack: [],\n    attributes: {\n    },\n  },\n});\n\nwebviewSchedule.send('channel-foo', args);\n```\n\n## Development\n\n```bash\n$ npm i\n$ npm run dev\n```\n\n![](./demo.png)\n\n\u003c!-- GITCONTRIBUTOR_START --\u003e\n\n## Contributors\n\n|[\u003cimg src=\"https://avatars.githubusercontent.com/u/1011681?v=4\" width=\"100px;\"/\u003e\u003cbr/\u003e\u003csub\u003e\u003cb\u003exudafeng\u003c/b\u003e\u003c/sub\u003e](https://github.com/xudafeng)\u003cbr/\u003e|[\u003cimg src=\"https://avatars.githubusercontent.com/u/17586742?v=4\" width=\"100px;\"/\u003e\u003cbr/\u003e\u003csub\u003e\u003cb\u003esriting\u003c/b\u003e\u003c/sub\u003e](https://github.com/sriting)\u003cbr/\u003e|[\u003cimg src=\"https://avatars.githubusercontent.com/u/4081746?v=4\" width=\"100px;\"/\u003e\u003cbr/\u003e\u003csub\u003e\u003cb\u003ezlyi\u003c/b\u003e\u003c/sub\u003e](https://github.com/zlyi)\u003cbr/\u003e|[\u003cimg src=\"https://avatars.githubusercontent.com/u/50158871?v=4\" width=\"100px;\"/\u003e\u003cbr/\u003e\u003csub\u003e\u003cb\u003emoshangqi\u003c/b\u003e\u003c/sub\u003e](https://github.com/moshangqi)\u003cbr/\u003e|\n| :---: | :---: | :---: | :---: |\n\n\nThis project follows the git-contributor [spec](https://github.com/xudafeng/git-contributor), auto updated at `Thu Feb 23 2023 23:47:00 GMT+0800`.\n\n\u003c!-- GITCONTRIBUTOR_END --\u003e\n\n## License\n\nThe MIT License (MIT)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felectron-modules%2Felectron-webview-schedule","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felectron-modules%2Felectron-webview-schedule","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felectron-modules%2Felectron-webview-schedule/lists"}