{"id":15653785,"url":"https://github.com/stefh/blazor.downloadfilefast","last_synced_at":"2026-03-17T18:13:52.655Z","repository":{"id":41469866,"uuid":"324332876","full_name":"StefH/Blazor.DownloadFileFast","owner":"StefH","description":"Fast download from files to the browser from Blazor without any javascript library reference or dependency. ","archived":false,"fork":false,"pushed_at":"2025-03-20T10:31:07.000Z","size":9549,"stargazers_count":39,"open_issues_count":0,"forks_count":6,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-30T21:51:40.177Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/StefH.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":["StefH"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":"https://www.paypal.me/stefheyenrath"}},"created_at":"2020-12-25T09:37:55.000Z","updated_at":"2025-04-10T04:57:13.000Z","dependencies_parsed_at":"2025-04-19T07:40:16.357Z","dependency_job_id":"7e2a2af2-f5c1-449f-9c24-b0122f937b3c","html_url":"https://github.com/StefH/Blazor.DownloadFileFast","commit_stats":{"total_commits":33,"total_committers":3,"mean_commits":11.0,"dds":"0.21212121212121215","last_synced_commit":"93e946fdbb28490f0ddcdbdcddb189706540c82f"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StefH%2FBlazor.DownloadFileFast","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StefH%2FBlazor.DownloadFileFast/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StefH%2FBlazor.DownloadFileFast/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StefH%2FBlazor.DownloadFileFast/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/StefH","download_url":"https://codeload.github.com/StefH/Blazor.DownloadFileFast/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251789309,"owners_count":21644081,"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-10-03T12:47:03.542Z","updated_at":"2026-03-17T18:13:52.648Z","avatar_url":"https://github.com/StefH.png","language":"C#","funding_links":["https://github.com/sponsors/StefH","https://www.paypal.me/stefheyenrath"],"categories":[],"sub_categories":[],"readme":"# Blazor.DownloadFileFast\n\n[![NuGet](https://img.shields.io/nuget/v/BlazorDownloadFileFast)](https://www.nuget.org/packages/BlazorDownloadFileFast)\n\nFast download from files to the browser from Blazor without any javascript library reference or dependency.\n\nBlazorDownloadFileFast is the solution to saving files on the client-side, and is perfect for web apps that generates files on the client.\n\nWhen using this project in a NET 5 (and up) Blazor WebAssembly project, there is an additional speed increase. \nRead the blog post mentioned from Gérald Barré in the credits.\n\n\n## Usage\n\n### Register\n```c#\nbuilder.Services.AddBlazorDownloadFile();\n```\n\n### Inject in code-behind\n``` c#\n[Inject]\npublic IBlazorDownloadFileService BlazorDownloadFileService { get; set; }\n```\n\n### Use in your code\n``` c#\nbyte[] bytes = ...; \nawait BlazorDownloadFileService.DownloadFileAsync(\"example.txt\", bytes);\n```\n\n## Credits\n- The idea and code from this project is based on [Generating and efficiently exporting a file in a Blazor WebAssembly application](https://www.meziantou.net/generating-and-downloading-a-file-in-a-blazor-webassembly-application.htm)\n- For resolving the Content-Type based on the file extension, this code is used: [MimeTypeMap](https://github.com/samuelneff/MimeTypeMap)\n- This project is inspired by [BlazorDownloadFile](https://github.com/arivera12/BlazorDownloadFile)\n\n## Demo\n- https://wonderful-glacier-0cf7ba303.4.azurestaticapps.net\n- https://stefh.github.io/Blazor.DownloadFileFast/\n\n## Sponsors\n\n[Entity Framework Extensions](https://entityframework-extensions.net/?utm_source=StefH) and [Dapper Plus](https://dapper-plus.net/?utm_source=StefH) are major sponsors and proud to contribute to the development of **Blazor.DownloadFileFast**.\n\n[![Entity Framework Extensions](https://raw.githubusercontent.com/StefH/resources/main/sponsor/entity-framework-extensions-sponsor.png)](https://entityframework-extensions.net/bulk-insert?utm_source=StefH)\n\n[![Dapper Plus](https://raw.githubusercontent.com/StefH/resources/main/sponsor/dapper-plus-sponsor.png)](https://dapper-plus.net/bulk-insert?utm_source=StefH)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstefh%2Fblazor.downloadfilefast","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstefh%2Fblazor.downloadfilefast","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstefh%2Fblazor.downloadfilefast/lists"}