{"id":13824126,"url":"https://github.com/jfet97/vue-use-infinite-scroll","last_synced_at":"2026-06-17T20:38:35.101Z","repository":{"id":42723121,"uuid":"284088152","full_name":"jfet97/vue-use-infinite-scroll","owner":"jfet97","description":"A Vue composition function that makes infinite scroll a breeze.","archived":false,"fork":false,"pushed_at":"2023-07-18T23:06:33.000Z","size":179,"stargazers_count":111,"open_issues_count":5,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2026-06-17T20:38:34.143Z","etag":null,"topics":[],"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/jfet97.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}},"created_at":"2020-07-31T17:04:14.000Z","updated_at":"2024-04-25T03:51:26.000Z","dependencies_parsed_at":"2024-01-08T08:57:05.528Z","dependency_job_id":null,"html_url":"https://github.com/jfet97/vue-use-infinite-scroll","commit_stats":{"total_commits":12,"total_committers":3,"mean_commits":4.0,"dds":"0.41666666666666663","last_synced_commit":"42ef35754bfd3cfa1cdde4e5f16a458c2e1835a0"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/jfet97/vue-use-infinite-scroll","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jfet97%2Fvue-use-infinite-scroll","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jfet97%2Fvue-use-infinite-scroll/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jfet97%2Fvue-use-infinite-scroll/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jfet97%2Fvue-use-infinite-scroll/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jfet97","download_url":"https://codeload.github.com/jfet97/vue-use-infinite-scroll/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jfet97%2Fvue-use-infinite-scroll/sbom","scorecard":{"id":517418,"data":{"date":"2025-08-11","repo":{"name":"github.com/jfet97/vue-use-infinite-scroll","commit":"42ef35754bfd3cfa1cdde4e5f16a458c2e1835a0"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Code-Review","score":1,"reason":"Found 1/8 approved changesets -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 10 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":1,"reason":"9 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-44c6-4v22-4mhx","Warn: Project is vulnerable to: GHSA-4x5v-gmq8-25ch","Warn: Project is vulnerable to: GHSA-5j4c-8p2g-v4jx","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-20T02:11:25.444Z","repository_id":42723121,"created_at":"2025-08-20T02:11:25.444Z","updated_at":"2025-08-20T02:11:25.444Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34465322,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-17T02:00:05.408Z","response_time":127,"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-08-04T09:00:57.199Z","updated_at":"2026-06-17T20:38:35.080Z","avatar_url":"https://github.com/jfet97.png","language":"TypeScript","funding_links":[],"categories":["Packages","TypeScript","Components \u0026 Libraries","Utilities [🔝](#readme)"],"sub_categories":["Utilities"],"readme":"# vue-use-infinite-scroll\n\n## Installation\n\n```sh\nnpm i -S vue-use-infinite-scroll\n```\n\n## Usage\n\n### template\n\n```html\n\u003cdiv\u003e\n    \u003cspan\u003e{{ errorMessageRef }}\u003c/span\u003e\n    \u003cul\u003e\n        \u003cli v-for=\"item in itemsRef\" :key=\"item.id\"\u003e{{ item }}\u003c/li\u003e\n\n        \u003c!-- DOM element used as trigger --\u003e\n        \u003cdiv ref=\"intersectionTrigger\"\u003e\u003c/div\u003e\n    \u003c/ul\u003e\n\u003c/div\u003e\n```\n\n### script\n\n```js\nimport { ref, watch } from 'vue'\nimport { makeUseInfiniteScroll } from 'vue-use-infinite-scroll'\n\nexport default {\n    setup() {\n        // INTERSECTION OBSERVER\n\n        // set the intersection options object\n        // https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API\n        const useInfiniteScroll = makeUseInfiniteScroll({}) // the argument is optional\n\n        // create the template ref for the element that\n        // will trigger the intersection observer\n        const intersectionTrigger = ref(null) // as Ref\u003cHTMLElement\u003e\n\n        // useInfiniteScroll returns a pageRef, starting from page 1,\n        // which changes we should listen to fetch more data\n        const pageRef = useInfiniteScroll(intersectionTrigger)\n\n        watch(\n            pageRef,\n            (page) =\u003e {\n                fetchItems(page)\n            },\n            { immediate: true }\n        )\n\n        // DATA\n\n        const itemsRef = ref([])\n        const errorMessageRef = ref('')\n\n        async function fetchItems(page) {\n            fetch(`https://jsonplaceholder.typicode.com/comments?_page=${page}\u0026_limit=10`)\n                .then((res) =\u003e res.json())\n                .then((data) =\u003e itemsRef.value.push(...data))\n                .catch((error) =\u003e (errorMessageRef.value = error.message))\n        }\n\n        return { intersectionTrigger, itemsRef, errorMessageRef }\n    },\n}\n```\n\nTry it [here](https://codesandbox.io/s/vue-use-infinite-scroll-vclfp?file=/src/App.vue) 🙂!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjfet97%2Fvue-use-infinite-scroll","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjfet97%2Fvue-use-infinite-scroll","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjfet97%2Fvue-use-infinite-scroll/lists"}