{"id":16013124,"url":"https://github.com/tekgator/serverjars","last_synced_at":"2026-04-19T02:02:32.979Z","repository":{"id":64001870,"uuid":"572042855","full_name":"tekgator/ServerJars","owner":"tekgator","description":"Implementation of the ServerJars.com API as a .NET library.","archived":false,"fork":false,"pushed_at":"2023-05-28T11:10:06.000Z","size":169,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-04-27T07:36:11.903Z","etag":null,"topics":["api","java","minecraft","mojang","paper","server","serverjars","spigot","vanilla"],"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/tekgator.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2022-11-29T12:41:28.000Z","updated_at":"2023-07-17T00:16:35.000Z","dependencies_parsed_at":"2024-10-08T14:25:03.651Z","dependency_job_id":"f4a6d785-a646-4b9b-966c-2c1f5d728b50","html_url":"https://github.com/tekgator/ServerJars","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tekgator%2FServerJars","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tekgator%2FServerJars/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tekgator%2FServerJars/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tekgator%2FServerJars/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tekgator","download_url":"https://codeload.github.com/tekgator/ServerJars/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247280178,"owners_count":20912965,"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":["api","java","minecraft","mojang","paper","server","serverjars","spigot","vanilla"],"created_at":"2024-10-08T14:24:44.610Z","updated_at":"2025-10-08T18:33:53.323Z","avatar_url":"https://github.com/tekgator.png","language":"C#","funding_links":["https://ko-fi.com/C0C7LO3V1"],"categories":[],"sub_categories":[],"readme":"![ServerJars](Resources/ServerJars-Logo-64px.png \"ServerJars\") \nServerJars .NET API\n======\n\n\u003cp\u003e\n  \u003ca href=\"https://github.com/tekgator/ServerJars/blob/main/LICENSE\" alt=\"License\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/license/tekgator/ServerJars\" /\u003e\n  \u003c/a\u003e\n  \u003cimg src=\"https://img.shields.io/github/languages/top/tekgator/ServerJars\" /\u003e\n  \u003ca href=\"https://www.nuget.org/packages/ServerJars\" alt=\"Nuget\"\u003e\n    \u003cimg alt=\"Nuget\" src=\"https://img.shields.io/nuget/dt/ServerJars\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/tekgator/ServerJars/actions/workflows/build-on-push.yml\" alt=\"BuildStatus\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/actions/workflow/status/tekgator/ServerJars/build-on-push.yml?branch=main\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/tekgator/ServerJars/releases\" alt=\"Releases\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/v/release/tekgator/ServerJars\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/tekgator/ServerJars/releases\" alt=\"Releases\"\u003e\n    \u003cimg alt=\"GitHub Release Date\" src=\"https://img.shields.io/github/release-date/tekgator/ServerJars\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/tekgator/ServerJars/commit\" alt=\"Commit\"\u003e\n    \u003cimg alt=\"GitHub last commit\" src=\"https://img.shields.io/github/last-commit/tekgator/ServerJars\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\nImplementation of the ServerJars.com API as a .NET library.\n\nPlease see [API Documentation](https://serverjars.com/documentation) for further details\n\n## Support\n\nI try to be responsive to [Stack Overflow questions in the `serverjars-net` tag](https://stackoverflow.com/questions/tagged/serverjars-net) and [issues logged on this GitHub repository](https://github.com/tekgator/ServerJars/issues).\n\nIf I've helped you and you like some of my work, feel free to buy me a coffee ☕ (or more likely a beer 🍺)\n\n[![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/C0C7LO3V1)\n\n\n## Installing\n\nMultiple options are available to install within your project:\n\n1. Install, using the [Nuget Gallery](https://www.nuget.org/packages/ServerJars)\n\n2. Install using the Package Manager Console: \n   ```ps\n   Install-Package ServerJars \n   ```\n3. Install using .NET CLI\n   ```cmd\n   dotnet add package ServerJars\n   ```\n\n\n## Usage\n\nSimply instantiate the `ServerJars` class and use it's methods to gather information from the API.\n\n```CSharp\nusing ServerJarsAPI;\nusing ServerJarsAPI.Events;\nusing ServerJarsAPI.Extensions;\nusing System.Text.Json;\n\nvar serverJar = new ServerJars();\n\n// GetTypes\nvar types = await serverJar.GetTypes();\nConsole.WriteLine(JsonSerializer.Serialize(types, jsonOptions));\n\n// GetTypes.AsDictionary() extension\nvar dict = types.AsDictionary();\nConsole.WriteLine(string.Join(Environment.NewLine, dict.Select((kv) =\u003e $\"{kv.Key}: {string.Join(\", \", kv.Value)}\")));\n\n// GetDetails\nvar details = await serverJar.GetDetails(\"servers\", \"spigot\", \"1.19.1\");\nConsole.WriteLine(JsonSerializer.Serialize(details, jsonOptions));\n\n// GetLatest\nvar latestDetails = await serverJar.GetLatest(\"servers\", \"spigot\");\nConsole.WriteLine(JsonSerializer.Serialize(latestDetails, jsonOptions));\n\n// GetAllDetails\nvar allDetails = await serverJar.GetAllDetails(\"servers\", \"spigot\", 5u);\nConsole.WriteLine(JsonSerializer.Serialize(allDetails, jsonOptions));\n\n// GetJar Method 1 (including progress)\nusing var fileStream1 = File.Create(\"./server1.jar\");\nProgress\u003cProgressEventArgs\u003e progress = new();\nprogress.ProgressChanged += (_, e) =\u003e\n{\n    Console.Write($\"\\rProgress: {e.ProgressPercentage}% ({e.BytesTransferred / 1024 / 1024}MB / {e.TotalBytes / 1024 / 1024}MB)          \");\n};\nawait serverJar.GetJar(fileStream1, \"servers\", \"spigot\", progress: progress);\nawait fileStream1.FlushAsync();\nConsole.WriteLine($\"\\nDownloaded {fileStream1.Length / 1024 / 1024}MB to {fileStream1.Name}\");\n\n// GetJar Method 2\nusing (var stream = await serverJar.GetJar(\"servers\", \"spigot\", \"1.19.1\"))\n{\n    using var fileStream2 = File.Create(\"./server2.jar\");\n    await stream.CopyToAsync(fileStream2);\n    Console.WriteLine($\"Downloaded {fileStream2.Length / 1024 / 1024}MB to {fileStream2.Name}\");\n}\n```\n\n### ServerJarExt\n\n`ServerJarExt` is an extended version of the API e.g. providing the `JarTypes` directly as Dictionary and adds a few more information to the [JarDetails](ServerJars/Models/JarDetails.cs) in an [JarDetailsExt](ServerJars/Models/JarDetailsExt.cs) Version.\n\n\n## Demo application\n\nHave a look at the [Console Demo](ServerJars.Demo.Console/Program.cs) within the repository. \nIt will run straight out of the box to give you a hint what the library can do for you.\n\n\n## Dependencies and Credits\n\nThe project has no special dependencies except to the awesome API from the [ServerJars.com](https://serverjars.com) website. ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftekgator%2Fserverjars","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftekgator%2Fserverjars","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftekgator%2Fserverjars/lists"}