{"id":23053425,"url":"https://github.com/component/raf","last_synced_at":"2025-11-04T11:03:42.617Z","repository":{"id":4956297,"uuid":"6113717","full_name":"component/raf","owner":"component","description":"requestAnimationFrame","archived":false,"fork":false,"pushed_at":"2022-09-15T02:19:06.000Z","size":9,"stargazers_count":35,"open_issues_count":4,"forks_count":16,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-08-09T13:58:51.376Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"gocd-contrib/email-notifier","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/component.png","metadata":{"files":{"readme":"Readme.md","changelog":"History.md","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":"2012-10-07T15:57:37.000Z","updated_at":"2024-03-20T13:04:04.000Z","dependencies_parsed_at":"2022-09-18T01:01:18.898Z","dependency_job_id":null,"html_url":"https://github.com/component/raf","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/component/raf","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/component%2Fraf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/component%2Fraf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/component%2Fraf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/component%2Fraf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/component","download_url":"https://codeload.github.com/component/raf/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/component%2Fraf/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269713612,"owners_count":24463232,"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-10T02:00:08.965Z","response_time":71,"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":[],"created_at":"2024-12-16T00:18:10.737Z","updated_at":"2025-11-04T11:03:42.578Z","avatar_url":"https://github.com/component.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# raf\n\n  request animation frame\n\n## Installation\n\n    $ component install component/raf\n\n## Example\n\n  Request the animation frame with `raf(fn)`, cancel with `raf.cancel(id)`.\n\n```js\nvar x = 0;\nvar y = 50;\nvar canvas = document.querySelector('canvas');\nvar ctx = canvas.getContext('2d');\nvar raf = require('raf');\n\nfunction animate() {\n  raf(animate);\n  draw();\n}\n\nvar prev = Date.now();\nfunction draw() {\n  var curr = Date.now();\n  var diff = curr - prev;\n  var p = diff / 16;\n  ctx.clearRect(0, 0, 900, 300);\n  ctx.beginPath();\n  ctx.globalAlpha = .5;\n  ctx.arc(x, y, 10, 0, Math.PI * 2, false);\n  ctx.fill();\n  x += 2;\n  y += Math.sin(x/20) * 5;\n  prev = curr;\n}\n\nanimate();\n```\n\n## License\n\n  MIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcomponent%2Fraf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcomponent%2Fraf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcomponent%2Fraf/lists"}