{"id":22209035,"url":"https://github.com/gamepowerx/kekuploadserverapi","last_synced_at":"2025-10-08T13:30:18.334Z","repository":{"id":184909827,"uuid":"672046524","full_name":"GamePowerX/KekUploadServerApi","owner":"GamePowerX","description":"Plugin API for KekUploadServer C#","archived":false,"fork":false,"pushed_at":"2023-08-02T08:21:42.000Z","size":29,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-30T05:11:52.646Z","etag":null,"topics":["api","csharp","kekupload","kekuploadserver","plugin","plugin-api","plugin-system","uploadserver"],"latest_commit_sha":null,"homepage":"https://www.nuget.org/packages/GamePowerX.KekUploadServerApi/","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/GamePowerX.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}},"created_at":"2023-07-28T19:25:10.000Z","updated_at":"2023-07-29T11:01:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"9bab3658-1867-4247-ae24-dff4ab4f5827","html_url":"https://github.com/GamePowerX/KekUploadServerApi","commit_stats":null,"previous_names":["gamepowerx/kekuploadserverapi"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GamePowerX%2FKekUploadServerApi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GamePowerX%2FKekUploadServerApi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GamePowerX%2FKekUploadServerApi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GamePowerX%2FKekUploadServerApi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GamePowerX","download_url":"https://codeload.github.com/GamePowerX/KekUploadServerApi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245401397,"owners_count":20609166,"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","csharp","kekupload","kekuploadserver","plugin","plugin-api","plugin-system","uploadserver"],"created_at":"2024-12-02T19:28:29.928Z","updated_at":"2025-10-08T13:30:13.299Z","avatar_url":"https://github.com/GamePowerX.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# KekUploadServerApi - Plugin API for [KekUploadServer in C#](https://github.com/GamePowerX/KekUploadServer)\n\n## How to use\n\n### 1. Create a new project\n\nCreate a new project in your IDE or with the dotnet CLI.\n\n### 2. Add the KekUploadServerApi package\n\nAdd the KekUploadServerApi package to your project.\n\n#### dotnet CLI\n\n```bash\ndotnet add package GamePowerX.KekUploadServerApi\n```\n\n#### NuGet Package Manager\n\n```\nInstall-Package GamePowerX.KekUploadServerApi\n```\n\n### 3. Create a new class\n\nCreate a new class that implements the `IPlugin` interface.\n\n```csharp\nusing KekUploadServerApi;\nusing Microsoft.Extensions.Logging;\n\nnamespace TestPlugin;\n\npublic class TestPlugin : IPlugin\n{\n    private IKekUploadServer _server = null!;\n    private ILogger\u003cTestPlugin\u003e _logger = null!;\n\n    public Task Load(IKekUploadServer server)\n    {\n        _server = server;\n        _logger = _server.GetPluginLogger\u003cTestPlugin\u003e();\n        return Task.CompletedTask;\n    }\n\n    public Task Start()\n    {\n        _logger.LogInformation(\"TestPlugin started!\");\n        return Task.CompletedTask;\n    }\n\n    public Task Unload()\n    {\n        _logger.LogInformation(\"TestPlugin unloaded!\");\n        return Task.CompletedTask;\n    }\n\n    PluginInfo IPlugin.Info =\u003e new()\n    {\n        Name = \"TestPlugin\",\n        Version = \"1.0.0-test\",\n        Author = \"GamePowerX\",\n        Description = \"A test plugin for KekUploadServer\"\n    };\n\n    public void TestMethod()\n    {\n        _logger.LogInformation(\"TestPlugin.TestMethod() called!\");\n    }\n}\n```\n\n### 4. Build the project\n\nBuild the project with your IDE or with the dotnet CLI.\n\n### 5. Copy the plugin dll file into the plugins folder\n\nCopy the plugin dll file into the plugins folder of your KekUploadServer installation.\n\n### 6. Start the server\n\nStart the server and check the console output for errors.\n\n### 7. Enjoy your plugin\n\nThe plugin should now be loaded and you can use it.\n\n## Dependency support\n\nYou can add dependencies to your plugin by specifying them in the `PluginInfo` class.\n\n```csharp\nPluginInfo IPlugin.Info =\u003e new() {\n       Name = \"AnotherTestPlugin\",\n       Version = \"1.0.0-test\",\n       Author = \"GamePowerX\",\n       Description = \"Another test plugin for KekUploadServer\",\n       Dependencies = new[]{\"TestPlugin\"}\n    };\n```\n\n## Contribute\n\nYou can contribute to this project by creating a pull request or by creating an issue.\n\n## License\n\nThis project is licensed under the MIT license. See\nthe [LICENSE](https://github.com/GamePowerX/KekUploadServerApi/blob/master/LICENSE) file for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgamepowerx%2Fkekuploadserverapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgamepowerx%2Fkekuploadserverapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgamepowerx%2Fkekuploadserverapi/lists"}