{"id":18928799,"url":"https://github.com/samsze0/vscode-webview-extension-example","last_synced_at":"2026-04-30T13:31:53.704Z","repository":{"id":204330291,"uuid":"710653806","full_name":"samsze0/vscode-webview-extension-example","owner":"samsze0","description":"An example of a vscode webview extension","archived":false,"fork":false,"pushed_at":"2023-10-31T14:43:46.000Z","size":168,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-25T01:43:54.398Z","etag":null,"topics":["vscode","vscode-extension","webview"],"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/samsze0.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}},"created_at":"2023-10-27T06:43:30.000Z","updated_at":"2023-11-25T17:12:36.000Z","dependencies_parsed_at":"2023-10-31T15:28:05.760Z","dependency_job_id":null,"html_url":"https://github.com/samsze0/vscode-webview-extension-example","commit_stats":null,"previous_names":["artizon-io/vscode-outline","artizon-io/vscode-webview-extension-example","samsze0/vscode-webview-extension-example"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/samsze0/vscode-webview-extension-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samsze0%2Fvscode-webview-extension-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samsze0%2Fvscode-webview-extension-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samsze0%2Fvscode-webview-extension-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samsze0%2Fvscode-webview-extension-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/samsze0","download_url":"https://codeload.github.com/samsze0/vscode-webview-extension-example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samsze0%2Fvscode-webview-extension-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32466333,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"ssl_error","status_checked_at":"2026-04-30T13:12:06.837Z","response_time":57,"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":["vscode","vscode-extension","webview"],"created_at":"2024-11-08T11:27:48.888Z","updated_at":"2026-04-30T13:31:53.689Z","avatar_url":"https://github.com/samsze0.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vscode webview extension example\n\nAn example of an extension that uses:\n- React, vite, and tailwind for the webview\n- Vitest for unit testing the webview\n- [redhat-developer/vscode-extension-tester](https://github.com/redhat-developer/vscode-extension-tester/) for E2E testing of the whole extension\n\nIt is important to know that [the use of the Webview API is discouraged](https://code.visualstudio.com/api/ux-guidelines/webviews). Please consult the [UX-guidelines](https://code.visualstudio.com/api/ux-guidelines/overview) for more information.\n\n## Structure\n\nThe extension is composed of two parts: the webview (located at `src/webview`) and the extension \"backend\" (located at `src/outline`).\n\nBefore the extension is packaged, the JS/TS source of the webview would undergo a series of module-bundling/transpiling steps. This build process is driven by vite.\n\nThe backend requires a build step too, which is simply a Typescript compilation step.\n\nThe build can be invoked by executing:\n\n```shell\nnpm run build:backend\n# or\nnpm run build:webview\n# or\nnpm run build  # run both\n```\n\n## Testing\n\nThe testing of this extension is composed of two parts: unit testing for logic inside the webview and e2e testing for the whole extension.\n\nThe unit testing is driven by vitest, whereas the e2e tests are driven by the [redhat-developer/vscode-extension-tester](https://github.com/redhat-developer/vscode-extension-tester/wiki/) framework, which uses mocha and the selenium w/ chromium driver behind the scene.\n\nThe tests are can ran by executing:\n\n```shell\nnpm run test:webview\n# or\nnpm run test:e2e\n# or\nnpm run test  # run both\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamsze0%2Fvscode-webview-extension-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamsze0%2Fvscode-webview-extension-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamsze0%2Fvscode-webview-extension-example/lists"}