{"id":35229997,"url":"https://github.com/pyodide/pyodide-webpack-plugin","last_synced_at":"2026-04-01T17:22:03.265Z","repository":{"id":103300271,"uuid":"539190794","full_name":"pyodide/pyodide-webpack-plugin","owner":"pyodide","description":"A Webpack plugin for integrating pyodide into your project.","archived":false,"fork":false,"pushed_at":"2025-09-20T02:31:58.000Z","size":853,"stargazers_count":23,"open_issues_count":1,"forks_count":10,"subscribers_count":5,"default_branch":"main","last_synced_at":"2026-03-28T00:37:23.465Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pyodide.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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":"2022-09-20T21:01:38.000Z","updated_at":"2026-01-22T16:02:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"a3bdc92c-6bfd-4a1f-a335-3eb82f69365b","html_url":"https://github.com/pyodide/pyodide-webpack-plugin","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pyodide/pyodide-webpack-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyodide%2Fpyodide-webpack-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyodide%2Fpyodide-webpack-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyodide%2Fpyodide-webpack-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyodide%2Fpyodide-webpack-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pyodide","download_url":"https://codeload.github.com/pyodide/pyodide-webpack-plugin/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyodide%2Fpyodide-webpack-plugin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31290537,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-01T13:12:26.723Z","status":"ssl_error","status_checked_at":"2026-04-01T13:12:25.102Z","response_time":53,"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":[],"created_at":"2025-12-30T02:18:17.779Z","updated_at":"2026-04-01T17:22:03.247Z","avatar_url":"https://github.com/pyodide.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Node.js CI](https://github.com/pyodide/pyodide-webpack-plugin/actions/workflows/build-and-test.yml/badge.svg?branch=main)](https://github.com/pyodide/pyodide-webpack-plugin/actions/workflows/build-and-test.yml)\n\n# Pyodide Webpack Plugin\n\nA Webpack plugin for integrating pyodide into your project.\n\n\u003e works with pyodide \u003e=0.21.3\n\nFor versions of Pyodide older than 0.28.0 please use @pyodide/pyodide-webpack-plugin@1.3.3 or older.\n\n## Getting Started\n\nInstall pyodide and @pyodide/webpack-plugin\n\n```\nnpm install --save-dev pyodide @pyodide/webpack-plugin\n```\n\nor\n\n```\nyarn add -D pyodide @pyodide/webpack-plugin\n```\n\nor\n\n```\npnpm add -D pyodide @pyodide/webpack-plugin\n```\n\nAdd the plugin to your webpack config\n\n```js\nconst { PyodidePlugin } = require(\"@pyodide/webpack-plugin\");\n\nmodule.exports = {\n  plugins: [new PyodidePlugin()],\n};\n```\n\nIn your javascript application being bundled with webpack\n\n```js\nasync function main() {\n  let pyodide = await loadPyodide({ indexURL: `${window.location.origin}/pyodide` });\n  // Pyodide is now ready to use...\n  console.log(\n    pyodide.runPython(`\n    import sys\n    sys.version\n  `),\n  );\n}\nmain();\n```\n\nSee [examples](./examples/).\n\n## Options\n\n- [globalLoadPyodide](#globalLoadPyodide)\n- [outDirectory](#outDirectory)\n- [packageIndexUrl](#packageIndexUrl)\n\n### globalLoadPyodide\n\nType: `boolean`\\\nDefault: `false`\\\nRequired: false\\\n_Description_:Whether or not to expose loadPyodide method globally. A globalThis.loadPyodide is useful when using pyodide as a standalone script or in certain frameworks. With webpack we can scope the pyodide package locally to prevent leaks (default).\n\n### outDirectory\n\nType: `string`\\\nDefault: `pyodide`\\\nRequired: false\\\n_Description_: Relative path to webpack root where you want to output the pyodide files.\n\n### packageIndexUrl\n\nType: `string`\\\nDefault: `https://cdn.jsdelivr.net/pyodide/v${installedPyodideVersion}/full/`\\\nRequired: false\\\n_Description_: CDN endpoint for python packages. This option differs from [loadPyodide indexUrl](https://pyodide.org/en/stable/usage/api/js-api.html) in that it only impacts pip packages and _does not_ affect the location the main pyodide runtime location. Set this value to \"\" if you want to keep the pyodide default of accepting the indexUrl.\n\n## Contributing\n\nPlease view the [contributing guide](./CONTRIBUTING.md) for tips on filing issues, making changes, and submitting pull requests. Pyodide is an independent and community-driven open-source project. The decision-making process is outlined in the [Project governance](https://pyodide.org/en/stable/project/governance.html).\n\nhttps://github.com/pyodide/pyodide/blob/main/CODE-OF-CONDUCT.md\n\n## License\n\nPyodide Webpack Plugin uses the [Mozilla Public License Version 2.0](https://choosealicense.com/licenses/mpl-2.0/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpyodide%2Fpyodide-webpack-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpyodide%2Fpyodide-webpack-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpyodide%2Fpyodide-webpack-plugin/lists"}