{"id":22119539,"url":"https://github.com/enusbaum/enusbaum.torrent","last_synced_at":"2026-02-10T15:36:34.009Z","repository":{"id":265803592,"uuid":"896670847","full_name":"enusbaum/ENusbaum.Torrent","owner":"enusbaum","description":"A simple NuGet package for creating .torrent Files that can be used by most popular BitTorrent Clients","archived":false,"fork":false,"pushed_at":"2024-12-01T01:55:20.000Z","size":80,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-29T09:25:02.894Z","etag":null,"topics":["bencode","bittorrent","c-sharp","dotnet","nuget","nuget-package","torrent"],"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/enusbaum.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}},"created_at":"2024-12-01T01:36:11.000Z","updated_at":"2024-12-01T01:55:24.000Z","dependencies_parsed_at":"2024-12-01T17:21:26.212Z","dependency_job_id":null,"html_url":"https://github.com/enusbaum/ENusbaum.Torrent","commit_stats":null,"previous_names":["enusbaum/enusbaum.torrent"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/enusbaum/ENusbaum.Torrent","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enusbaum%2FENusbaum.Torrent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enusbaum%2FENusbaum.Torrent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enusbaum%2FENusbaum.Torrent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enusbaum%2FENusbaum.Torrent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/enusbaum","download_url":"https://codeload.github.com/enusbaum/ENusbaum.Torrent/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enusbaum%2FENusbaum.Torrent/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269186133,"owners_count":24374755,"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-08-07T02:00:09.698Z","response_time":73,"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":["bencode","bittorrent","c-sharp","dotnet","nuget","nuget-package","torrent"],"created_at":"2024-12-01T14:14:52.812Z","updated_at":"2026-02-10T15:36:33.980Z","avatar_url":"https://github.com/enusbaum.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ENusbaum.Torrent - Simple NuGet to create .torrent files\n\n`ENusbaum.Torrent` is a simple NuGet package that allows you to create .torrent files. It is a .NET Library built in C# utilizing dotnet9. \n\n## Installation\n\nTo install `ENusbaum.Torrent`, run the following command in the Package Manager Console:\n```\nInstall-Package ENusbaum.Torrent\n```\n\n## Usage\n\nYou have two options within `ENusbaum.Torrent` to create a .torrent file. You can either create a .torrent file as a ReadOnlySpan\u003cbyte\u003e or have the library write the .torrent file to disk.\n\n### Create a .torrent file as a ReadOnlySpan\u003cbyte\u003e\n```csharp\npublic ReadOnlySpan\u003cbyte\u003e Create(string inputPath, string torrentName, string trackerAnnounceUrl, PieceSize pieceSize = PieceSize.Auto)\n```\n\n### Write the .torrent file to disk\n```csharp\npublic bool CreateFile(string inputPath, string torrentName, string trackerAnnounceUrl, string outputFile, PieceSize pieceSize = PieceSize.Auto)\n```\n\nBy default, all files in all subfolders of the specified `inputPath` will be included in the .torrent file created.\n\nThe default Piece Size of `Auto` will automatically determine the best piece size based on the size of the file being used to create the .torrent file with the optimal 2000 pieces. While there is some debate on the number\nof pieces to use, 2000 is a good balance between the number of pieces and the size of the pieces.\n\nCurrently the maximum piece size supported by this NuGet is 16MiB, but can easily be extended if larger pieces are needed. ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenusbaum%2Fenusbaum.torrent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fenusbaum%2Fenusbaum.torrent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenusbaum%2Fenusbaum.torrent/lists"}