{"id":27985991,"url":"https://github.com/swag666baby/torrent-api","last_synced_at":"2026-02-14T17:02:55.568Z","repository":{"id":290438785,"uuid":"789092411","full_name":"Swag666baby/torrent-api","owner":"Swag666baby","description":"an API designed to search, add and delete torrents from the database.","archived":false,"fork":false,"pushed_at":"2025-04-28T20:07:43.000Z","size":1577,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-04T19:36:38.202Z","etag":null,"topics":["api","crud","database","nodejs","torrent","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/Swag666baby.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-04-19T17:26:17.000Z","updated_at":"2025-04-28T20:07:46.000Z","dependencies_parsed_at":"2025-04-28T21:37:33.640Z","dependency_job_id":null,"html_url":"https://github.com/Swag666baby/torrent-api","commit_stats":null,"previous_names":["swag666baby/torrent-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Swag666baby/torrent-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Swag666baby%2Ftorrent-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Swag666baby%2Ftorrent-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Swag666baby%2Ftorrent-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Swag666baby%2Ftorrent-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Swag666baby","download_url":"https://codeload.github.com/Swag666baby/torrent-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Swag666baby%2Ftorrent-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29450599,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-14T15:52:44.973Z","status":"ssl_error","status_checked_at":"2026-02-14T15:52:11.208Z","response_time":53,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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","crud","database","nodejs","torrent","typescript"],"created_at":"2025-05-08T07:49:28.191Z","updated_at":"2026-02-14T17:02:55.526Z","avatar_url":"https://github.com/Swag666baby.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\r\n \u003cimg src=\"https://raw.githubusercontent.com/MicaelliMedeiros/micaellimedeiros/master/image/computer-illustration.png\"/\u003e\r\n\r\n\u003cimg src=\"https://img.shields.io/badge/TypeScript-black?style=for-the-badge\u0026logo=typescript\u0026logoColor=white\"/\u003e\r\n\u003c/p\u003e\r\n\r\n# necessary \r\n\r\n## typescript \r\n```\r\nnpm install -g typescript\r\n```\r\n\r\n## running \r\n```bash\r\ngit clone https://github.com/Swag666baby/torrent-api\r\ncd torrent-api\r\nnpm install\r\nnpm run build\r\nnpm start\r\n```\r\n\r\n## examples \r\n**• to add one game 🖊️**\r\n```typescript \r\nimport axios from \"axios\";\r\n\r\nconst addGame = async() =\u003e {\r\n    const post = await axios.post(\"http://localhost:4000/add\", \r\n    {\r\n        \"title\": \"Grand Theft Auto VI\",\r\n        \"magnet\": \"magnet:?xt=urn:btih:00712d7327b47hf7hh8h0hf04fh0f\",\r\n        \"page\": \"12\",\r\n        \"repacker\": \"Xatab\",\r\n        \"fileSize\": \"340 GB\",\r\n        \"uploadDate\": \"2027-08-1 23:00:00.000\",\r\n        \"createdAt\": \"2024-03-21 02:03:49.000\",\r\n        \"updatedAt\": \"2024-03-21 02:03:49.000\"\r\n    })\r\n    console.log(post.data)\r\n}\r\n```\r\n\r\n**• to delete game 🗑**\r\n```typescript \r\nimport axios from \"axios\";\r\n\r\nconst deleteGame = async() =\u003e {\r\n    const post = await axios.post(\"http://localhost:4000/delete\", {\"id\": 1})\r\n    console.log(post.data)\r\n}\r\n```\r\n\r\n**• to search games 🔎**\r\n\r\nThe search can be done by both name and id\r\n\r\n```typescript \r\nimport axios from \"axios\";\r\n\r\nconst searchGame = async() =\u003e {\r\n    const request = await axios.get(\"http://localhost:4000/search?q=stardew\")\r\n    console.log(request.data)\r\n}\r\n```\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswag666baby%2Ftorrent-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fswag666baby%2Ftorrent-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswag666baby%2Ftorrent-api/lists"}