{"id":26418307,"url":"https://github.com/jonthysell/embeddedwebsampleapps","last_synced_at":"2025-07-06T20:38:10.385Z","repository":{"id":280699369,"uuid":"940870476","full_name":"jonthysell/EmbeddedWebSampleApps","owner":"jonthysell","description":"Sample apps to test the various ways web content is embedded in native desktop apps.","archived":false,"fork":false,"pushed_at":"2025-03-12T00:03:19.000Z","size":903,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-12T01:19:04.681Z","etag":null,"topics":["chromium-embedded-framework","webview2"],"latest_commit_sha":null,"homepage":"","language":"C#","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/jonthysell.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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}},"created_at":"2025-03-01T00:29:09.000Z","updated_at":"2025-03-12T00:05:32.000Z","dependencies_parsed_at":"2025-03-04T21:23:11.806Z","dependency_job_id":"1746f044-1f2f-4fda-b8b3-e50ebdb7b9d9","html_url":"https://github.com/jonthysell/EmbeddedWebSampleApps","commit_stats":null,"previous_names":["jonthysell/embeddedwebsampleapps"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jonthysell/EmbeddedWebSampleApps","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonthysell%2FEmbeddedWebSampleApps","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonthysell%2FEmbeddedWebSampleApps/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonthysell%2FEmbeddedWebSampleApps/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonthysell%2FEmbeddedWebSampleApps/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jonthysell","download_url":"https://codeload.github.com/jonthysell/EmbeddedWebSampleApps/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonthysell%2FEmbeddedWebSampleApps/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261250243,"owners_count":23130539,"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":["chromium-embedded-framework","webview2"],"created_at":"2025-03-18T01:17:36.053Z","updated_at":"2025-06-22T07:04:21.073Z","avatar_url":"https://github.com/jonthysell.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Embedded Web Sample Apps\n\nSample apps to test the various ways web content is embedded in native desktop apps.\n\n## WebTester\n\n![Web Tester Screenshot](./screenshots/WebTester.png)\n\nA .NET WPF app that can be called from the command line to load web content via either a [Microsoft Edge WebView2](https://developer.microsoft.com/en-us/microsoft-edge/webview2/) OR the [Chromium Embedded Framework](https://bitbucket.org/chromiumembedded/cef/src), to test their web apps, with a particular focus on gathering native performance metrics. It even even allows the caller to inject their own JavaScript (typically to drive the UI via the DOM).\n\n### Setup\n1. Make sure you have the [.NET 9 SDK](https://dotnet.microsoft.com/en-us/download/dotnet/9.0) installed.\n\n### Usage\n1. `dotnet run -c Release --project src\\EmbeddedWebSampleApps.WebTester`\n\n\nSee the help with `dotnet run -c Release --project src\\EmbeddedWebSampleApps.WebTester -- -?`:\n\n```\nEmbeddedWebSampleApps.WebTester.exe [options]\nOptions:\n\n--log-file [file]     Log output to the given file (default: none)\n--log-performance     Enable performance logging (default: False)\n--log-web-console     Enable web console logging (default: False)\n--post-load-js [file] Inject the given JS file after the Starting URI has loaded (default: none)\n--starting-uri [uri]  Starting URI to load (default: https://microsoft.com/)\n--web-host [WV2|CEF]  Control to host web content (default: WV2)\n--window-size [WxH]   Window size (default: 640x480)\n-?, --help            Display this help\n```\n\n### BrowserBench.org Test Suite\nFor an end-to-end example of using WebTester to automate running the full suite of [BrowserBench](https://browserbench.org/) benchmarks and aggregating results across multiple iterations, see the `scripts\\run-browserbench-suite.ps1` script.\n\n\u003e **Note:** The script only works in [PowerShell 7](https://learn.microsoft.com/en-us/powershell/), not Windows PowerShell.\n\n\n## CefTester\n\n![CEF Tester Screenshot](./screenshots/CefTester.png)\n\nSimple .NET WPF app that loads [BrowserBench](https://browserbench.org/) via the [Chromium Embedded Framework](https://bitbucket.org/chromiumembedded/cef/src).\n\n### Setup\n1. Make sure you have the [.NET 9 SDK](https://dotnet.microsoft.com/en-us/download/dotnet/9.0) installed.\n\n### Usage\n1. `dotnet run -c Release --project src\\EmbeddedWebSampleApps.CefTester`\n2. Select a benchmark\n3. Click \"Start\"\n\n## WebView2 Tester\n\n![WebView2 Tester Screenshot](./screenshots/WebView2Tester.png)\n\nSimple .NET WPF app that loads [BrowserBench](https://browserbench.org/) via a [Microsoft Edge WebView2](https://developer.microsoft.com/en-us/microsoft-edge/webview2/).\n\n### Setup\n1. Make sure you have the [.NET 9 SDK](https://dotnet.microsoft.com/en-us/download/dotnet/9.0) installed.\n\n### Usage\n1. `dotnet run -c Release --project src\\EmbeddedWebSampleApps.WebView2Tester`\n2. Select a benchmark\n3. Click \"Start\"\n\n## History\n\nThis project was built by [Jon Thysell](mailto://jthysell@microsoft.com) as a part of Microsoft's March 2025 Fix/Hack/Learn event.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonthysell%2Fembeddedwebsampleapps","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonthysell%2Fembeddedwebsampleapps","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonthysell%2Fembeddedwebsampleapps/lists"}