{"id":20817877,"url":"https://github.com/vforteli/dotnet-typescript-model-generator","last_synced_at":"2026-01-25T08:32:31.388Z","repository":{"id":261440522,"uuid":"884322508","full_name":"vforteli/dotnet-typescript-model-generator","owner":"vforteli","description":"Generate typescript models from dotnet","archived":false,"fork":false,"pushed_at":"2024-11-20T19:34:50.000Z","size":28,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-23T04:06:48.129Z","etag":null,"topics":["codegen","dotnet","typescript"],"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/vforteli.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":"2024-11-06T14:45:01.000Z","updated_at":"2024-11-20T19:33:25.000Z","dependencies_parsed_at":"2025-04-10T01:13:45.295Z","dependency_job_id":null,"html_url":"https://github.com/vforteli/dotnet-typescript-model-generator","commit_stats":null,"previous_names":["vforteli/dotnet-typescript-model-generator"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/vforteli/dotnet-typescript-model-generator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vforteli%2Fdotnet-typescript-model-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vforteli%2Fdotnet-typescript-model-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vforteli%2Fdotnet-typescript-model-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vforteli%2Fdotnet-typescript-model-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vforteli","download_url":"https://codeload.github.com/vforteli/dotnet-typescript-model-generator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vforteli%2Fdotnet-typescript-model-generator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28749347,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-25T08:31:04.260Z","status":"ssl_error","status_checked_at":"2026-01-25T08:30:28.859Z","response_time":113,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["codegen","dotnet","typescript"],"created_at":"2024-11-17T21:44:36.840Z","updated_at":"2026-01-25T08:32:31.372Z","avatar_url":"https://github.com/vforteli.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TypeScriptModelGenerator\n\nGenerate TypeScript types from dotnet models.\nThis thing probably wont work with all possible types, but for now covers most use cases.\n\n## Usage\n\n```csharp\n// From a type\nvar types = new Dictionary\u003cstring, string\u003e();\nvar typeName = TypeScriptModelGenerator.ParseTypeRecursively(typeof(SomeType), types, false);\n\n// From method parameters using ParameterInfo\nvar types = new Dictionary\u003cstring, string\u003e();\nvar type = TypeScriptModelGenerator.ParseParameterInfo(someParameterInfo, types);\n\n// types will contain a dictionary of all the recognized TypeScript type names and their respective definition\n```\n\nSee tests for more examples of output\n\nNote that it is not possible to determine if a generic parameter is nullable through reflection.\nTherefore cases such as Task\u003cSomeReferenceType?\u003e cannot be detected.\n\nNullability of reference types can be determined when used in method parameters or properties.\n\n## todo\n- consider namespaces when processing types\n- more types","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvforteli%2Fdotnet-typescript-model-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvforteli%2Fdotnet-typescript-model-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvforteli%2Fdotnet-typescript-model-generator/lists"}