{"id":24888647,"url":"https://github.com/substrate-system/raf-scroll","last_synced_at":"2025-08-31T21:33:07.912Z","repository":{"id":231173488,"uuid":"757559553","full_name":"substrate-system/raf-scroll","owner":"substrate-system","description":"Scroll events debounced with requestAnimationFrame","archived":false,"fork":false,"pushed_at":"2025-07-08T22:43:57.000Z","size":39,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-08T23:34:35.481Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/substrate-system.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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-02-14T18:34:39.000Z","updated_at":"2025-07-08T22:44:00.000Z","dependencies_parsed_at":"2025-02-11T00:25:46.606Z","dependency_job_id":"f730fbff-8071-4351-b639-aa4885e21e6e","html_url":"https://github.com/substrate-system/raf-scroll","commit_stats":null,"previous_names":["bicycle-codes/raf-scroll"],"tags_count":2,"template":false,"template_full_name":"nichoth/template-ts-browser","purl":"pkg:github/substrate-system/raf-scroll","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/substrate-system%2Fraf-scroll","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/substrate-system%2Fraf-scroll/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/substrate-system%2Fraf-scroll/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/substrate-system%2Fraf-scroll/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/substrate-system","download_url":"https://codeload.github.com/substrate-system/raf-scroll/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/substrate-system%2Fraf-scroll/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267416974,"owners_count":24083829,"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-07-27T02:00:11.917Z","response_time":82,"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":"2025-02-01T16:14:23.155Z","updated_at":"2025-07-29T04:08:10.612Z","avatar_url":"https://github.com/substrate-system.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# raf scroll\n[![tests](https://img.shields.io/github/actions/workflow/status/substrate-system/raf-scroll/nodejs.yml?style=flat-square)](https://github.com/substrate-system/raf-scroll/actions/workflows/nodejs.yml)\n[![dependencies](https://img.shields.io/badge/dependencies-zero-brightgreen.svg?style=flat-square)](package.json)\n[![types](https://img.shields.io/npm/types/@substrate-system/raf-scroll?style=flat-square)](README.md)\n[![module](https://img.shields.io/badge/module-ESM%2FCJS-blue?style=flat-square)](README.md)\n[![install size](https://flat.badgen.net/packagephobia/install/@substrate-system/raf-scroll?cache-control=no-cache)](https://packagephobia.com/result?p=@substrate-system/raf-scroll)\n[![gzip size](https://img.shields.io/bundlephobia/minzip/@substrate-system/raf-scroll?style=flat-square)](https://bundlephobia.com/package/@substrate-system/raf-scroll)\n[![license](https://img.shields.io/badge/license-Big_Time-blue?style=flat-square)](LICENSE)\n\nScroll events, debounced with `requestAnimationFrame`.\n\n\u003cdetails\u003e\u003csummary\u003e\u003ch2\u003eContents\u003c/h2\u003e\u003c/summary\u003e\n\u003c!-- toc --\u003e\n\u003c/details\u003e\n\n## Install\n```sh\nnpm i -S @substrate-system/raf-scroll\n```\n\n## Example\n\n```js\nimport { rafScroll } from '@substrate-system/raf-scroll'\n\nrafScroll(ev =\u003e {\n    // this is called at most once per animation frame\n    console.log('scroll event', ev)\n})\n```\n\n## Modules\n\nThis exposes ESM and common JS via [package.json `exports` field](https://nodejs.org/api/packages.html#exports).\n\n### Bundler\n\nImport like normal.\n\n```js\nimport { rafScroll } from '@substrate-system/raf-scroll'\n```\n\n### Minified\n\nThis package exposes minified JS too. Copy to a location that is\naccessible to your web server, then link to it in HTML.\n\n#### copy\n```sh\ncp ./node_modules/@substrate-system/raf-scroll/dist/index.min.js ./public/raf-scroll.min.js\n```\n\n#### HTML\n```html\n\u003cscript type=\"module\" src=\"./raf-scroll.min.js\"\u003e\u003c/script\u003e\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsubstrate-system%2Fraf-scroll","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsubstrate-system%2Fraf-scroll","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsubstrate-system%2Fraf-scroll/lists"}