{"id":19911670,"url":"https://github.com/pyscript/polyplug","last_synced_at":"2025-05-03T03:31:18.283Z","repository":{"id":65237306,"uuid":"572470890","full_name":"pyscript/polyplug","owner":"pyscript","description":"A framework for linking the DOM and DOM based events with scripting languages compiled to WASM. Part of the PyScript project.","archived":true,"fork":false,"pushed_at":"2024-10-01T08:57:12.000Z","size":231,"stargazers_count":12,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-16T10:42:19.641Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/pyscript.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS.md","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-11-30T10:49:40.000Z","updated_at":"2025-02-27T05:10:42.000Z","dependencies_parsed_at":"2024-11-12T21:29:18.989Z","dependency_job_id":"463947b3-8c70-4e51-b8a7-cc6ec1c71cf9","html_url":"https://github.com/pyscript/polyplug","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyscript%2Fpolyplug","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyscript%2Fpolyplug/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyscript%2Fpolyplug/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyscript%2Fpolyplug/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pyscript","download_url":"https://codeload.github.com/pyscript/polyplug/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252137546,"owners_count":21700237,"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":[],"created_at":"2024-11-12T21:26:15.273Z","updated_at":"2025-05-03T03:31:17.891Z","avatar_url":"https://github.com/pyscript.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PolyPlug 🦜🔌 (RETIRED)\n\n## This was a successful experiment: it helped us to learn. Lessons have been integrated into PyScript. This archived repository is kept for posterity.\n\nPolyPlug is a browser based framework for linking the DOM and DOM based events\nwith scripting languages compiled to WASM.\n\nFor more information [please read our documentation](https://polyplug.readthedocs.io/en/latest/) (the source for which is in the `./docs` directory).\n\nIt is:\n\n* Agnostic of the interpreter receiving and responding to DOM events.\n* Message based (JSON).\n* Small (efficient to start).\n* Simple (easier to maintain).\n* Expressive (capable of many things).\n\nThis is the way:\n\n* Obvious code.\n* Simple is good.\n* No dependencies.\n* Vanilla JavaScript.\n* Comments.\n* Tests.\n* Build for change.\n\nThis project was created for research purposes as part of the efforts to build\n[PyScript](https://pyscript.net).\n\nThere are two sides to PolyPlug:\n\n* The `polyplug.js` code to be run in the main thread of the browser.\n* Code, to be run in the interpreter of the scripting language, to communicate\n  with PolyPlug. Currently only `polyplug.py` exists as a reference\n  implementation.\n\nThat is all.\n\n## Developer setup\n\nFor Python development, create a new virtual environment and install the\nrequired packages:\n\n```\n$ pip install -r requirements.txt\n```\n\nFor JavaScript development, just edit the file and run the tests. _There are\ndeliberately no dependencies or complex tooling to ensure simplicity_. Should\nyou wish to minify the JavaScript source, you can (optionally) install\n[uglifyjs](https://github.com/mishoo/UglifyJS).\n\nCommon tasks are scripted by a Makefile (tested on Linux and Mac):\n\n```\n$ make\nThere's no default Makefile target right now. Try:\n\nmake flake8 - run the flake8 Python checker.\nmake testjs - run the JavaScript test suite.\nmake testpy - run the Python test suite.\nmake minify - minify the project.\nmake tidy - tidy the Python code with black.\nmake docs - use Sphinx to create project documentation.\n```\n\n## Running the tests\n\nFor the sake of simplicity (and familiarity) we use the\n[Jasmine test framework](https://jasmine.github.io/index.html) to exercise the\nJavaScript aspects of our code.\n\nFor similar reasons, we use [PyTest](https://pytest.org/) to exercise the\nPythonic aspects of our code.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpyscript%2Fpolyplug","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpyscript%2Fpolyplug","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpyscript%2Fpolyplug/lists"}