{"id":23730503,"url":"https://github.com/vishwam/worker-async-nextjs","last_synced_at":"2026-04-11T02:05:35.108Z","repository":{"id":40911366,"uuid":"230045670","full_name":"vishwam/worker-async-nextjs","owner":"vishwam","description":"Example usage of worker-async in a nextjs app","archived":false,"fork":false,"pushed_at":"2023-01-05T03:38:47.000Z","size":1562,"stargazers_count":0,"open_issues_count":13,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-04T23:02:38.551Z","etag":null,"topics":["async","nextjs","promisify","rpc","typescript","web-worker","worker"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/vishwam.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}},"created_at":"2019-12-25T05:18:05.000Z","updated_at":"2020-05-20T05:23:57.000Z","dependencies_parsed_at":"2023-02-03T09:00:54.463Z","dependency_job_id":null,"html_url":"https://github.com/vishwam/worker-async-nextjs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/vishwam/worker-async-nextjs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vishwam%2Fworker-async-nextjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vishwam%2Fworker-async-nextjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vishwam%2Fworker-async-nextjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vishwam%2Fworker-async-nextjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vishwam","download_url":"https://codeload.github.com/vishwam/worker-async-nextjs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vishwam%2Fworker-async-nextjs/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266165787,"owners_count":23886689,"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":["async","nextjs","promisify","rpc","typescript","web-worker","worker"],"created_at":"2024-12-31T02:38:52.370Z","updated_at":"2026-04-11T02:05:35.067Z","avatar_url":"https://github.com/vishwam.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# worker-async-nextjs\r\nAn example app that demonstrates full-duplex promise-based communication between the browser's main thread and a web worker, using [worker-async](https://github.com/vishwam/worker-async#readme), [next.js](https://nextjs.org/), webpack, worker-loader, and typescript.\r\n\r\n## Main changes from create-next-app\r\n* `pages/index.js`: Entry point for the application. Calls `example.main.ts` below to initialize the worker and then makes remote RPC calls to the worker.\r\n* `workers/example.main.ts`: Initializes the worker from the main thread.\r\n* `workers/example.worker.ts`: Entry point for the worker thread.\r\n* `tsconfig.json`: Add typescript support to next.js.\r\n* `next.config.js`: Add web worker support to next.js.\r\n\r\n## Getting started\r\n### Development\r\n\r\nRun `npm run dev` to start the application in watch mode. After opening the page, you should see console logs from index.js showing the RPC requests and responses.\r\n\r\n### Production\r\nRun `npm run build` and `npm start`\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvishwam%2Fworker-async-nextjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvishwam%2Fworker-async-nextjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvishwam%2Fworker-async-nextjs/lists"}