{"id":21973550,"url":"https://github.com/jeepnl/blazorbits","last_synced_at":"2026-04-19T19:03:56.866Z","repository":{"id":167577435,"uuid":"278692327","full_name":"JeepNL/BlazorBits","owner":"JeepNL","description":"Blazor WebAssembly (WASM) website automatically deployed on GitHub Pages using GitHub Actions","archived":false,"fork":false,"pushed_at":"2020-07-12T21:17:14.000Z","size":4322,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"development","last_synced_at":"2025-01-28T03:15:14.818Z","etag":null,"topics":["blazor","blazor-webassembly","github-actions","github-pages","wasm","webassembly"],"latest_commit_sha":null,"homepage":"","language":"HTML","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/JeepNL.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}},"created_at":"2020-07-10T17:19:06.000Z","updated_at":"2020-09-06T06:14:31.000Z","dependencies_parsed_at":"2023-05-23T03:45:21.997Z","dependency_job_id":null,"html_url":"https://github.com/JeepNL/BlazorBits","commit_stats":null,"previous_names":["jeepnl/blazorbits"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JeepNL%2FBlazorBits","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JeepNL%2FBlazorBits/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JeepNL%2FBlazorBits/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JeepNL%2FBlazorBits/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JeepNL","download_url":"https://codeload.github.com/JeepNL/BlazorBits/tar.gz/refs/heads/development","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245033049,"owners_count":20550186,"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":["blazor","blazor-webassembly","github-actions","github-pages","wasm","webassembly"],"created_at":"2024-11-29T15:33:14.200Z","updated_at":"2026-04-19T19:03:51.836Z","avatar_url":"https://github.com/JeepNL.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Blazor Bits WebAssembly on GitHub Pages\n\n**Automatically deployed on GitHub Pages ([https://jeepnl.github.io/BlazorBits/](https://jeepnl.github.io/BlazorBits/)) using GitHub Actions**\n\n![gh-pages](https://github.com/JeepNL/BlazorBits/workflows/gh-pages/badge.svg)\n\n#### [Change Log](CHANGELOG.md)\n\n##### To deploy your Blazor WebAssembly App automatically to GitHub Pages you'll need to:\n\n1. Have a 'master' and a 'development' branch. \n    - The 'master' branch is mandatory. GitHub Pages needs a 'master' branch. You can use any name for the 'development' branch.\n2. Make the 'development' branch the default branch.\n3. GitHub Actions will deploy to the 'master' branch.\n4. Follow [Davide Guida](https://twitter.com/DavideGuida82)'s blog post \"[How to deploy Blazor webassembly on GitHub Pages using GitHub Actions](https://www.davideguida.com/how-to-deploy-blazor-webassembly-on-github-pages-using-github-actions/)\"\n5. Don't forget to enable GitHub Pages on the Master Branche: `Settings` -\u003e `Options` -\u003e `GitHub Pages`\n\n#### Recipes\n\n##### 1. Blazor WebAssembly Browser Compatibility Check\n\n(_wwwroot/[index.html](BlazorBits/wwwroot/index.html)_)\n\n    \u003c!-- Start Check Browser Compatibility --\u003e\n    \u003cscript src=\"_framework/blazor.webassembly.js\" autostart=\"false\"\u003e\u003c/script\u003e\n    \u003cscript\u003e\n        // See: https://medium.com/@waelkdouh/how-to-detect-unsupported-browsers-under-a-blazor-webassembly-application-bc11ab0ee015\n        // Check if webassembly is supported\n        const webassemblySupported = (function () {\n            try {\n                if (typeof WebAssembly === \"object\"\n                    \u0026\u0026 typeof WebAssembly.instantiate === \"function\") {\n                    const module = new WebAssembly.Module(\n                        Uint8Array.of(0x0, 0x61, 0x73, 0x6d,\n                            0x01, 0x00, 0x00, 0x00));\n                    if (module instanceof WebAssembly.Module)\n                        return new WebAssembly.Instance(module)\n                            instanceof WebAssembly.Instance;\n                }\n            } catch (e) {\n            }\n            return false;\n        })();\n        // Modern browsers e.g. Microsoft Edge\n        if (webassemblySupported) {\n            Blazor.start({});\n        }\n        // Older browsers e.g. IE11\n        else {\n            window.location = window.location + \"BrowserNotSupported.html\"; // NOTE: You'll need to create this file\n        }\n    \u003c/script\u003e\n    \u003c!-- End Check Browser Compatibility --\u003e\n\n##### 2. Blazor Loading Screen\n\n(_wwwroot/[index.html](BlazorBits/wwwroot/index.html)_)\n\n    \u003capp\u003e\n        \u003c!-- Start Loading Screen --\u003e\n        \u003cdiv id=\"message\" style=\"position:absolute; top:30vh; width:100%; text-align:center\"\u003e\n            \u003ch2\u003eBlazor Bits GitHub Pages\u003c/h2\u003e\n            \u003cp\u003eThe app is loading\u003c/p\u003e\n            \u003cdiv class=\"spinner-border text-secondary\" style=\"width: 3rem; height: 3rem;\" role=\"status\"\u003e\n                \u003cspan class=\"sr-only\"\u003eLoading...\u003c/span\u003e\n            \u003c/div\u003e\n        \u003c/div\u003e\n        \u003c!-- End Loading Screen --\u003e\n    \u003c/app\u003e\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeepnl%2Fblazorbits","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjeepnl%2Fblazorbits","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeepnl%2Fblazorbits/lists"}