{"id":50389040,"url":"https://github.com/dvurechensky-tools/dotnetify","last_synced_at":"2026-05-30T17:01:49.871Z","repository":{"id":352644768,"uuid":"1215520155","full_name":"Dvurechensky-Tools/Dotnetify","owner":"Dvurechensky-Tools","description":"Turn any OpenAPI (swagger.json) file into a runnable C# (.NET) backend project in seconds.","archived":false,"fork":false,"pushed_at":"2026-05-26T09:04:29.000Z","size":468,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-26T11:08:41.672Z","etag":null,"topics":["api-generator","aspnetcore","backend","cli","code-generation","csharp","dotnet","dvurechensky","dvurechenskypro","dvurechenskytools","nswag","openapi","roslyn","scaffolding","swagger","swagger-json"],"latest_commit_sha":null,"homepage":"https://dvurechensky.pro/","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/Dvurechensky-Tools.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-20T02:03:50.000Z","updated_at":"2026-05-26T09:04:34.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/Dvurechensky-Tools/Dotnetify","commit_stats":null,"previous_names":["dvurechensky-tools/dotnetify"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/Dvurechensky-Tools/Dotnetify","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dvurechensky-Tools%2FDotnetify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dvurechensky-Tools%2FDotnetify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dvurechensky-Tools%2FDotnetify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dvurechensky-Tools%2FDotnetify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Dvurechensky-Tools","download_url":"https://codeload.github.com/Dvurechensky-Tools/Dotnetify/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dvurechensky-Tools%2FDotnetify/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33700863,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-30T02:00:06.278Z","response_time":92,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["api-generator","aspnetcore","backend","cli","code-generation","csharp","dotnet","dvurechensky","dvurechenskypro","dvurechenskytools","nswag","openapi","roslyn","scaffolding","swagger","swagger-json"],"created_at":"2026-05-30T17:01:48.142Z","updated_at":"2026-05-30T17:01:49.866Z","avatar_url":"https://github.com/Dvurechensky-Tools.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n\u003cdiv align=\"center\"\u003e\n\n\u003cimg src=\"media/ico.ico\" width=\"96\" height=\"96\" alt=\"Dotnetify Logo\" /\u003e\n\n# Dotnetify\n\n\u003c/div\u003e\n\n### Turn any OpenAPI (`swagger.json`) file into a runnable C# (.NET) backend project in seconds.\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://shields.dvurechensky.pro/badge/.NET-8.0-blue?logo=dotnet\"\u003e\n  \u003cimg src=\"https://shields.dvurechensky.pro/badge/OpenAPI-Swagger-green\"\u003e\n  \u003cimg src=\"https://shields.dvurechensky.pro/badge/Status-Active-brightgreen\"\u003e\n  \u003cimg src=\"https://shields.dvurechensky.pro/badge/CLI-Tool-black\"\u003e\n\u003c/p\u003e\n\n\u003c/div\u003e\n\n---\n\n\u003cdiv align=\"center\" style=\"margin: 20px 0; padding: 10px; background: #1c1917; border-radius: 10px;\"\u003e\n  \u003cstrong\u003e🌐 Language: \u003c/strong\u003e\n  \n  \u003ca href=\"./README.ru.md\" style=\"color: #F5F752; margin: 0 10px;\"\u003e\n    🇷🇺 Russian\n  \u003c/a\u003e\n  | \n  \u003cspan style=\"color: #0891b2; margin: 0 10px;\"\u003e\n    ✅ 🇺🇸 English (current)\n  \u003c/span\u003e\n\u003c/div\u003e\n\n---\n\n## Overview\n\n**Dotnetify** is a CLI tool that transforms an OpenAPI / Swagger specification into a fully generated **ASP.NET Core server project**.\n\nInstead of producing raw generator output, Dotnetify builds a **structured, launch-ready backend scaffold** that can be compiled, started, and extended immediately.\n\nIt is designed for developers who need a fast backend starting point from an existing API schema.\n\n\u003e [!IMPORTANT]\n\u003e Dotnetify focuses on producing a **usable server project**, not just generated source files.\n\n---\n\n## What It Does\n\nInput:\n\n```text\nswagger.json\n```\n\nPipeline:\n\n```text\nOpenAPI Spec\n    ↓\nCode Generation\n    ↓\nRoslyn Processing\n    ↓\nProject Structuring\n    ↓\nRunnable .NET Backend\n```\n\nOutput:\n\n```text\nProjectName/\n ├── Controllers/\n ├── Models/\n ├── Enums/\n ├── Common/\n ├── Program.cs\n ├── ProjectName.csproj\n```\n\nBy default, `ProjectName` is `GeneratedApi`. You can override it with `--name`.\n\n---\n\n## Features\n\n| Category          | Description                                                    |\n| ----------------- | -------------------------------------------------------------- |\n| OpenAPI Import    | Reads `swagger.json` specifications                            |\n| Controllers       | Generates API controllers by route groups                      |\n| Models            | Generates DTO / entity classes                                 |\n| Enums             | Generates enums from schema definitions                        |\n| Mock Responses    | Auto-generates test responses for endpoints                    |\n| Build Ready       | Produces compilable .NET project                               |\n| Run Ready         | Can start generated API instantly                              |\n| Swagger UI        | Generated server exposes Swagger portal                        |\n| Custom Name       | Generates project folders and files with a custom project name |\n| Custom Port       | Runs generated API on a selected HTTP port with `--port`       |\n| Roslyn Processing | Cleans and restructures generated code                         |\n\n---\n\n## Why Dotnetify?\n\nMost generators stop here:\n\n```text\nswagger.json → raw generated code\n```\n\nDotnetify continues further:\n\n```text\nswagger.json → working backend project\n```\n\nThat means:\n\n- Faster frontend development\n- Faster prototyping\n- Easier API testing\n- Better reverse engineering workflows\n- Immediate backend starting point\n\n---\n\n## Quick Start\n\nGo to the compiled binary:\n\n```bash\ncd app\\Dotnetify\\bin\\Debug\\net8.0\n```\n\nGenerate and run:\n\n```bash\nDotnetify.exe generate Input\\swagger.json --run\n```\n\nGenerate with a custom project name:\n\n```bash\nDotnetify.exe generate Input\\swagger.json --name MyApi\n```\n\nGenerate with a custom project name and run it immediately:\n\n```bash\nDotnetify.exe generate Input\\swagger.json --name MyApi --run\n```\n\nGenerate, run, and bind the generated API to a custom HTTP port:\n\n```bash\nDotnetify.exe generate Input\\swagger.json --name MyApi --run --port 5103\n```\n\nIf `--port` is not provided, Dotnetify uses port `5000`.\n\nThis creates:\n\n```text\nOutput/MyApi/MyApi.csproj\n```\n\nExample output:\n\n```text\n[Dotnetify] Running: Roslyn Split Processor\n[Dotnetify] Running: Dotnet Project Processor\n[Dotnetify] Running: Package Resolve Processor\n\nGeneration complete.\nStarting server...\nStarted PID: 29296\n\nSwagger: http://localhost:5000/swagger\n```\n\nWith a custom port:\n\n```text\nStarted PID: 29296\nSwagger: http://localhost:5103/swagger\n```\n\n---\n\n## Use Cases\n\n### Frontend Teams\n\nNeed backend before real backend exists.\n\n### QA / API Testing\n\nGenerate local API from schema instantly.\n\n### Legacy Systems\n\nRecreate documented APIs into editable .NET projects.\n\n### Startups / MVP\n\nLaunch backend prototype rapidly.\n\n---\n\n## Example Result\n\nGenerated controller:\n\n```csharp\n[HttpGet(\"inventory\")]\npublic Task\u003cIDictionary\u003cstring, int\u003e\u003e GetInventory()\n{\n    var response = new Dictionary\u003cstring, int\u003e\n    {\n        { \"test\", 1 }\n    };\n\n    return Task.FromResult\u003cIDictionary\u003cstring, int\u003e\u003e(response);\n}\n```\n\n---\n\n## Philosophy\n\nDotnetify does **not** aim to replace real backend engineering.\n\nIt aims to eliminate the empty starting phase.\n\nInstead of spending hours scaffolding:\n\n- controllers\n- DTOs\n- routes\n- startup boilerplate\n- fake data\n\nYou start with all of it already generated.\n\n---\n\n## Roadmap\n\nPlanned future improvements:\n\n- Database scaffolding\n- Repository generation\n- React admin panel generation\n- Authentication templates\n- Docker support\n- CI/CD templates\n- Multiple architecture modes\n\n---\n\n## Current Status\n\n\u003e Active development\n\nCore generation pipeline is already functional and produces runnable projects.\n\n---\n\n## Tech Stack\n\n- C#\n- .NET\n- ASP.NET Core\n- Roslyn\n- NSwag\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdvurechensky-tools%2Fdotnetify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdvurechensky-tools%2Fdotnetify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdvurechensky-tools%2Fdotnetify/lists"}