{"id":32646072,"url":"https://github.com/scottoffen/grapevine","last_synced_at":"2025-10-31T04:48:28.546Z","repository":{"id":39999641,"uuid":"323129743","full_name":"scottoffen/grapevine","owner":"scottoffen","description":"Fast, unopinionated, embeddable, minimalist web framework for .NET","archived":false,"fork":false,"pushed_at":"2025-02-18T23:27:55.000Z","size":2810,"stargazers_count":105,"open_issues_count":7,"forks_count":17,"subscribers_count":9,"default_branch":"main","last_synced_at":"2025-08-24T23:07:02.636Z","etag":null,"topics":["csharp","embeddable","grapevine","httpclient","httplistener","rest","rest-api","rest-framework","rest-server","rest-service","rest-services","restapi","restful","restful-api","restful-webservices"],"latest_commit_sha":null,"homepage":"https://scottoffen.github.io/grapevine/","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/scottoffen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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-12-20T17:42:07.000Z","updated_at":"2025-02-18T23:27:59.000Z","dependencies_parsed_at":"2024-11-19T23:37:38.526Z","dependency_job_id":null,"html_url":"https://github.com/scottoffen/grapevine","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/scottoffen/grapevine","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scottoffen%2Fgrapevine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scottoffen%2Fgrapevine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scottoffen%2Fgrapevine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scottoffen%2Fgrapevine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/scottoffen","download_url":"https://codeload.github.com/scottoffen/grapevine/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scottoffen%2Fgrapevine/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281931704,"owners_count":26585792,"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","status":"online","status_checked_at":"2025-10-31T02:00:07.401Z","response_time":57,"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":["csharp","embeddable","grapevine","httpclient","httplistener","rest","rest-api","rest-framework","rest-server","rest-service","rest-services","restapi","restful","restful-api","restful-webservices"],"created_at":"2025-10-31T04:48:23.992Z","updated_at":"2025-10-31T04:48:28.537Z","avatar_url":"https://github.com/scottoffen.png","language":"C#","readme":"# \u003cimg src=\"grapevine.png\" width=25px\u003e Grapevine\n\nGrapevine is a fast, unopinionated, embeddable, minimalist web framework for .NET. Grapevine is not intended to be a replacement for IIS or ASP.NET, but rather to function as an embedded REST/HTTP server in non-ASP.NET projects.\n\n\u003c!-- Shields: http://shields.io/ --\u003e\n\n## Installation\n\nGrapevine is available on [NuGet.org](https://www.nuget.org/packages/Grapevine/) and can be installed using a NuGet package manager or the .NET CLI.\n\n## Usage\n\nGrapevine is easy to get started with.\n\nCreate a simple route. This is the code that you want to run when a request comes in using the specified HTTP verb and path. **Route methods must be [asynchronous](https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/concepts/async/)!**\n\n```csharp\n[RestResource]\npublic class MyResource\n{\n    [RestRoute(\"Get\", \"/api/test\")]\n    public async Task Test(IHttpContext context)\n    {\n        await context.Response.SendResponseAsync(\"Successfully hit the test route!\");\n    }\n}\n```\n\nNext, create your first server using provided defaults (it's recommended to use the `RestServerBuilder` class to do this) and start it up!\n\n```csharp\nusing (var server = RestServerBuilder.UseDefaults().Build())\n{\n    server.Start();\n\n    Console.WriteLine(\"Press enter to stop the server\");\n    Console.ReadLine();\n}\n```\n\nOpen your preferred browser and go to `http://localhost:1234/api/test`. You should see the following output in your browser:\n\n```\nSuccessfully hit the test route!\n```\n\n\u003e You'll see a lot of output in the console as well, because the defaults inject a console logger with the minimum level set to trace.\n\n## Support\n\n- Check out the project documentation https://scottoffen.github.io/grapevine.\n\n- Want to see a working project in action? Clone this repository and take a look at the [Samples](https://github.com/scottoffen/grapevine/tree/main/src/Samples) project.\n\n- Engage in our [community discussions](https://github.com/scottoffen/grapevine/discussions) for Q\u0026A, ideas, and show and tell!\n\n- Have a question you can't find an answer for in the documentation? For the fastest and best results, ask your questions on [StackOverflow](https://stackoverflow.com) using [#grapevine](https://stackoverflow.com/questions/tagged/grapevine?sort=newest). Make sure you include the version of Grapevine you are using, the platform you using it on, code samples and any specific error messages you are seeing.\n\n- **Issues created to ask \"how to\" questions will be closed.**\n\n## Contributing\n\nWe welcome contributions from the community! In order to ensure the best experience for everyone, before creating an issue or submitting a pull request, please see the [contributing guidelines](CONTRIBUTING.md) and the [code of conduct](CODE_OF_CONDUCT.md). Failure to adhere to these guidelines can result in significant delays in getting your contributions included in the project.\n\n## Versioning\n\nWe use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/scottoffen/grapevine/releases).\n\n## License\n\nGrapevine 5 is licensed under the [MIT](https://choosealicense.com/licenses/mit/) license.\n\n## Using Grapevine? We'd Love To Hear About It!\n\nFew thing are as satisfying as hearing that your open source project is being used and appreciated by others. (Except for [a nice MLT – mutton, lettuce and tomato sandwich, where the mutton is nice and lean and the tomato is ripe. They're so perky, I love that.](https://youtu.be/d4ftmOI5NnI?t=93)) Jump over to the discussion boards and [share the love](https://github.com/scottoffen/grapevine/discussions/13)!\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscottoffen%2Fgrapevine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscottoffen%2Fgrapevine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscottoffen%2Fgrapevine/lists"}