{"id":16073273,"url":"https://github.com/sanidhyy/donut","last_synced_at":"2026-01-25T15:31:42.374Z","repository":{"id":238490657,"uuid":"796668036","full_name":"sanidhyy/donut","owner":"sanidhyy","description":"donut.c, remade in JS... and the code still looks like a donut 🍩","archived":false,"fork":false,"pushed_at":"2024-05-09T17:02:07.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-16T19:47:37.562Z","etag":null,"topics":["ascii","ascii-art","c","c-plus-plus","c-sharp","css","donut","donut-js","html","javascript","js","ts","typescript"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/sanidhyy.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-06T11:59:11.000Z","updated_at":"2024-05-15T16:43:36.000Z","dependencies_parsed_at":"2024-05-09T18:33:07.449Z","dependency_job_id":"3f5f5ccd-37ee-4b3a-90b4-4c7a6ea71b37","html_url":"https://github.com/sanidhyy/donut","commit_stats":null,"previous_names":["sanidhyy/donut"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sanidhyy/donut","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanidhyy%2Fdonut","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanidhyy%2Fdonut/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanidhyy%2Fdonut/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanidhyy%2Fdonut/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sanidhyy","download_url":"https://codeload.github.com/sanidhyy/donut/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanidhyy%2Fdonut/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28754823,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-25T13:59:49.818Z","status":"ssl_error","status_checked_at":"2026-01-25T13:59:33.728Z","response_time":113,"last_error":"SSL_read: 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":["ascii","ascii-art","c","c-plus-plus","c-sharp","css","donut","donut-js","html","javascript","js","ts","typescript"],"created_at":"2024-10-09T08:05:37.777Z","updated_at":"2026-01-25T15:31:42.358Z","avatar_url":"https://github.com/sanidhyy.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🍩 donut.js\n\n```javascript\n            let A=0,B=0,M=\n        Math;const a=()=\u003e{let s\n      =[],t=[];A+=.05,B+=.07;const\n    o=M.cos(A),e=M.sin(A),n=M.cos(B\n   ),c=M.sin(B);for (let o=0;o\u003c1760;\n o++)s[o]=o%80==79?\"\\n\":\" \",t[o]=0;for\n(let i=0;i\u003c6.28;i+=.07){const r=M.cos(\ni),a=M.sin(i);for(let i=0;i\u003c6.28;i+=.02\n){const l=M.sin        (i),f=M.cos(i),A\n=r+2,B=1/(l*A*          e+a*o+5),d=l*A*\no-a*e,m=40+30*          B*(f*A*n-d*c)|0\n,v=12+15*B*(f*A        *c+d*n)|0,I=m+80\n*v,h=8*((a*e-l*r*o)*n-l*r*e-a*o-f*r*c)|\n 0;v\u003c22\u0026\u0026v\u003e=0\u0026\u0026m\u003e=0\u0026\u0026m\u003c79\u0026\u0026B\u003et[I]\u0026\u0026(t[\n I]=B,s[I]=\".,-~:;=!*#$@\"[h\u003e0?h:0])}}\n  process.stdout.write(`\\x1b[J\\x1b[H`\n  +s.join(\"\"))},i=setInterval(a,50\n      );/*Sanidhya Kumar Verma*/\n        /*~~;!!!!!!!!!!!;~~*/\n            /*.,-------,.*/\n```\n\n## 🚀 How to Run\n\n- Use Node:\n```bash\nnode donut.min.js\n```\n- or just open `index.html` :)\n\n`donut.c`, remade in JS... and the code still looks like a donut!\n\n`index.js` is the original code, and `donut.js` is the actual donut-shaped obfuscated code.\n\nIf the donut looks elliptical, then you may need to adjust your font to be more square, or just modify line width and font spacing to make it more square.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsanidhyy%2Fdonut","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsanidhyy%2Fdonut","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsanidhyy%2Fdonut/lists"}