{"id":18115169,"url":"https://github.com/chucker/blazortscomponentsample","last_synced_at":"2026-03-11T08:02:00.387Z","repository":{"id":66582784,"uuid":"174735413","full_name":"chucker/blazortscomponentsample","owner":"chucker","description":"A sample project of a Blazor component that wraps a TypeScript/JavaScript library, but interops with .NET","archived":false,"fork":false,"pushed_at":"2019-03-10T20:15:13.000Z","size":219,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-14T10:47:27.723Z","etag":null,"topics":["blazor","csharp","typescript","webassembly"],"latest_commit_sha":null,"homepage":null,"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/chucker.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2019-03-09T19:08:58.000Z","updated_at":"2023-06-26T21:55:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"ea450f05-c59a-4e85-8982-908f1b34ea8e","html_url":"https://github.com/chucker/blazortscomponentsample","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/chucker/blazortscomponentsample","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chucker%2Fblazortscomponentsample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chucker%2Fblazortscomponentsample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chucker%2Fblazortscomponentsample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chucker%2Fblazortscomponentsample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chucker","download_url":"https://codeload.github.com/chucker/blazortscomponentsample/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chucker%2Fblazortscomponentsample/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30375471,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-11T06:09:32.197Z","status":"ssl_error","status_checked_at":"2026-03-11T06:09:17.086Z","response_time":84,"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":["blazor","csharp","typescript","webassembly"],"created_at":"2024-11-01T03:08:50.763Z","updated_at":"2026-03-11T08:02:00.382Z","avatar_url":"https://github.com/chucker.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# blazortscomponentsample\nA sample project of a Blazor component that wraps a TypeScript/JavaScript library, but interops with .NET.\n\n(As a rule of thumb, avoid this wherever possible. Interop between Blazor/C# and TypeScript is slow, and loses you many features such as type safety and data binding.)\n\n# Available features\n\nThis example shows you how to:\n\n* use an existing JS/TS component (in this example case, [bootstrap-slider](https://github.com/seiyria/bootstrap-slider)) from a Blazor app\n* take advantage of Razor and strong typing when building the initial markup\n* pass a reference to the element (`ElementRef`) as well as to the object (`DotNetObjectRef`) on to TS\n* use TS-side events to pass information back to the Blazor side\n\n# Bugs / poor design\n\n* some modules/imports/packages are redundant. For example, portions of Bootstrap come via libman, and others via npm.\n* on a related level, there should probably be a single TS entry point so WebPack only creates a single bundle, rather than one bundle per component.\n\n# Missing features\n\n* the naming of the init functions is merely a convention; there should instead be a proper abstraction to make this cleaner\n* there are no real affordances to help with data binding or change events\n* it should be possible to share state using local storage\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchucker%2Fblazortscomponentsample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchucker%2Fblazortscomponentsample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchucker%2Fblazortscomponentsample/lists"}