{"id":24793619,"url":"https://github.com/alcarney/vscode-wasi-pygls","last_synced_at":"2025-08-19T09:10:44.731Z","repository":{"id":215683133,"uuid":"739551051","full_name":"alcarney/vscode-wasi-pygls","owner":"alcarney","description":"An experiment for running pygls powered language servers in VSCcode's WASI host","archived":false,"fork":false,"pushed_at":"2025-07-15T18:35:03.000Z","size":1190,"stargazers_count":4,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-07-16T16:21:51.666Z","etag":null,"topics":["language-server","pygls","python","vscode-extension","wasi","webassembly"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/alcarney.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"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}},"created_at":"2024-01-05T21:00:31.000Z","updated_at":"2025-07-15T18:52:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"de758ec7-ea6d-45d0-aab6-e36d1ff3a544","html_url":"https://github.com/alcarney/vscode-wasi-pygls","commit_stats":null,"previous_names":["alcarney/vscode-wasi-pygls"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/alcarney/vscode-wasi-pygls","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alcarney%2Fvscode-wasi-pygls","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alcarney%2Fvscode-wasi-pygls/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alcarney%2Fvscode-wasi-pygls/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alcarney%2Fvscode-wasi-pygls/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alcarney","download_url":"https://codeload.github.com/alcarney/vscode-wasi-pygls/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alcarney%2Fvscode-wasi-pygls/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271128677,"owners_count":24703879,"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","status":"online","status_checked_at":"2025-08-19T02:00:09.176Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["language-server","pygls","python","vscode-extension","wasi","webassembly"],"created_at":"2025-01-29T22:00:07.600Z","updated_at":"2025-08-19T09:10:44.709Z","avatar_url":"https://github.com/alcarney.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vscode-wasi-pygls [![Visual Studio Marketplace Version](https://img.shields.io/visual-studio-marketplace/v/swyddfa.pygls-wasi-playground?style=flat-square)](https://marketplace.visualstudio.com/items?itemName=swyddfa.pygls-wasi-playground)\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"./screenshot.png\" alt=\"A screenshot showing an example pygls language server running on vscode.dev via the WASI host.\"\u003e\u003c/img\u003e\n\u003c/p\u003e\n\n## Usage\n\nIt is possible to use this extension in a local version of VSCode however, its primary purpose is to demonstrate that it is possible to run a language server written with [pygls](https://pygls.readthedocs.io/en/latest/index.html) entirely in the browser!\n\n- Open https://vscode.dev/github/openlawlibrary/pygls, you will need to sign into GitHub before the repository's content will load.\n- Install the `swyddfa.pygls-wasi-playground` extension\n- By default, the extension will be configured to launch the `examples/servers/code_action.py` server, though this can be changed by setting the `pygls.server.launchScript` option.\n- Open the `examples/servers/workspace/sums.txt` file\n- Wait for the server to boot up (will take 2-3min to load all the required resources over the network)\n\nThis extension is a WASI port of the pygls-playground extension from the upstream project, see the [documentation](https://pygls.readthedocs.io/en/latest/servers/howto/use-the-pygls-playground.html) for more details on its usage.\nNote that some features (like debugging!) have not yet been implemented.\n\n## Acknowledgements\n\nThis stands on the shoulders of a lot of excellent projects and resources, without which this would be impossible.\n\n**Projects**\n\n- [openlawlibrary/pygls](https://github.com/openlawlibrary/pygls): For making it possible to write language servers in Python\n- [brettcannon/cpython-wasi-build](https://github.com/brettcannon/cpython-wasi-build): For providing the WASI build of CPython\n- [microsoft/vscode-wasm](https://github.com/microsoft/vscode-wasm): For implementing the WASI host in VSCode as well as the following code snippets, showing how to connect everything up\n  - [vscode-wasm/testbeds/python/extension.ts](https://github.com/microsoft/vscode-wasm/blob/65669200000306d174ce2bbfdd9e4d41e9517466/testbeds/python/extension.ts#L17-L38)\n  - [vscode-wasm/testbeds/lsp-rust/client/src/extension.ts](https://github.com/microsoft/vscode-wasm/blob/65669200000306d174ce2bbfdd9e4d41e9517466/testbeds/lsp-rust/client/src/extension.ts#L18-L48)\n  - [vscode-wasm/testbeds/lsp-rust/client/src/lspServer.ts](https://github.com/microsoft/vscode-wasm/blob/65669200000306d174ce2bbfdd9e4d41e9517466/testbeds/lsp-rust/client/src/lspServer.ts)\n\n\n**Resources**\n\n- [Testing a Python project using the WASI build of CPython with pytest](https://snarky.ca/testing-a-project-using-the-wasi-build-of-cpython-with-pytest/): For showing how to build and use a Python environment with the WASI build of CPython\n- [VSCode and WebAssemblies](https://code.visualstudio.com/blogs/2023/06/05/vscode-wasm-wasi)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falcarney%2Fvscode-wasi-pygls","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falcarney%2Fvscode-wasi-pygls","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falcarney%2Fvscode-wasi-pygls/lists"}