{"id":29018231,"url":"https://github.com/tchenu/yeswehack-sdk","last_synced_at":"2026-05-18T00:05:44.077Z","repository":{"id":62422056,"uuid":"273442794","full_name":"tchenu/yeswehack-sdk","owner":"tchenu","description":"YesWeHack SDK written in Deno 🦕 ","archived":false,"fork":false,"pushed_at":"2021-04-21T19:05:59.000Z","size":12,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-07-05T02:30:45.836Z","etag":null,"topics":["deno","sdk-deno","yeswehack"],"latest_commit_sha":null,"homepage":"https://yeswehack.com","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tchenu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-06-19T08:22:02.000Z","updated_at":"2020-06-23T13:30:40.000Z","dependencies_parsed_at":"2022-11-01T17:32:51.271Z","dependency_job_id":null,"html_url":"https://github.com/tchenu/yeswehack-sdk","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/tchenu/yeswehack-sdk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tchenu%2Fyeswehack-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tchenu%2Fyeswehack-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tchenu%2Fyeswehack-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tchenu%2Fyeswehack-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tchenu","download_url":"https://codeload.github.com/tchenu/yeswehack-sdk/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tchenu%2Fyeswehack-sdk/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264922974,"owners_count":23683709,"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":["deno","sdk-deno","yeswehack"],"created_at":"2025-06-26T00:00:47.432Z","updated_at":"2026-05-18T00:05:37.036Z","avatar_url":"https://github.com/tchenu.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# YesWeHack SDK 🧰\n\n[YesWeHack](https://yeswehack.com) SDK written in Deno 🦕 \n\n*This SDK has been written for personal needs, if you want to improve it you can submit PRs.*\n\n## Usage 👨🏼‍🔬\n\n### Login 🚪\n\n```typescript\nimport { YWH } from \"https://deno.land/x/yeswehack/mod.ts\";\n\nconst ywh = new YWH();\n\nawait ywh\n        .login('{LOGIN}', '{PASSWORD}')\n        .catch((error) =\u003e {\n            console.log(error);\n        });\n```\n\n### Login (TOTP) 🚪 + 🔑\n\n\n```typescript\nimport { YWH } from \"https://deno.land/x/yeswehack/mod.ts\";\n\nconst ywh = new YWH();\n\nawait ywh\n        .login('{LOGIN}', '{PASSWORD}')\n        .then(async () =\u003e await ywh.totp('{TOTP_CODE}'))\n        .catch((error) =\u003e {\n            console.log(error);\n        });\n```\n\n### Hacktivity ⚡️\n\n```typescript\nimport { YWH } from \"https://deno.land/x/yeswehack/mod.ts\";\n\nconst ywh = new YWH();\n\nawait ywh\n        .login('{LOGIN}', '{PASSWORD}')\n        .catch((error) =\u003e {\n            console.log(error);\n        });\n        \nconst hacks = await ywh.hacktivityPerPage(1); // retrieve first page of hacktivity\n\nhacks.map((hack: any) =\u003e {\n  console.log(hack.report.hunter.username);\n});\n```\n\n\n### Reports 📄\n\n```typescript\nimport { YWH } from \"https://deno.land/x/yeswehack/mod.ts\";\n\nconst ywh = new YWH();\n\nawait ywh\n        .login('{LOGIN}', '{PASSWORD}')\n        .catch((error) =\u003e {\n            console.log(error);\n        });\n        \nconst reports = await ywh.reports();\n\nreports.map((report: any) =\u003e {\n  console.log(report.title);\n});\n```\n\n### Programs 🗂\n\n```typescript\nimport { YWH } from \"https://deno.land/x/yeswehack/mod.ts\";\n\nconst ywh = new YWH();\n\nawait ywh\n        .login('{LOGIN}', '{PASSWORD}')\n        .catch((error) =\u003e {\n            console.log(error);\n        });\n        \nconst programs = await ywh.programs();\n\nprograms.map((program: any) =\u003e {\n  console.log(program.title);\n});\n```\n\n## User (current) 👨🏻‍💼\n\n```typescript\nimport { YWH } from \"https://deno.land/x/yeswehack/mod.ts\";\n\nconst ywh = new YWH();\n\nawait ywh\n        .login('{LOGIN}', '{PASSWORD}')\n        .catch((error) =\u003e {\n            console.log(error);\n        });\n        \nconst user = await ywh.user();\n\nconsole.log(`Log as ${user.username}`);\n```\n\n### User (with username) 👨\n\n```typescript\nimport { YWH } from \"https://deno.land/x/yeswehack/mod.ts\";\n\nconst ywh = new YWH();\n\nawait ywh\n        .login('{LOGIN}', '{PASSWORD}')\n        .catch((error) =\u003e {\n            console.log(error);\n        });\n        \nconst hunter = await ywh.user('BZHugs');\n\nconsole.log(hunter);\n```\n\n## Todos 📌\n\n- Use interfaces for response objects (reports, hacks, hunter etc.) instead of using `any`.\n- Add some methods (submit reports, update current user etc.)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftchenu%2Fyeswehack-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftchenu%2Fyeswehack-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftchenu%2Fyeswehack-sdk/lists"}