{"id":18353640,"url":"https://github.com/taystack/js-big-list","last_synced_at":"2025-10-23T20:41:02.730Z","repository":{"id":34070460,"uuid":"168437472","full_name":"taystack/js-big-list","owner":"taystack","description":"Small JavaScript library to help with managing the render process of large datasets on a frontend.","archived":false,"fork":false,"pushed_at":"2023-01-04T02:07:33.000Z","size":547,"stargazers_count":1,"open_issues_count":17,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-10T00:55:23.058Z","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":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/taystack.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":"2019-01-31T00:32:21.000Z","updated_at":"2023-03-04T03:23:58.000Z","dependencies_parsed_at":"2023-01-15T04:24:28.488Z","dependency_job_id":null,"html_url":"https://github.com/taystack/js-big-list","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taystack%2Fjs-big-list","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taystack%2Fjs-big-list/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taystack%2Fjs-big-list/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taystack%2Fjs-big-list/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/taystack","download_url":"https://codeload.github.com/taystack/js-big-list/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248137994,"owners_count":21053775,"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":[],"created_at":"2024-11-05T21:42:43.668Z","updated_at":"2025-10-23T20:41:02.653Z","avatar_url":"https://github.com/taystack.png","language":"JavaScript","readme":"# js-big-list\n\n[![codecov](https://codecov.io/gh/taystack/js-big-list/branch/master/graph/badge.svg)](https://codecov.io/gh/taystack/js-big-list)\n[![Build Status](https://travis-ci.org/taystack/js-big-list.svg?branch=master)](https://travis-ci.org/taystack/js-big-list)\n\n - [Installation](#installation)\n - [Use](#use)\n - [Example](#example)\n - [Documentation](#documentation)\n - [Benchmarks](#benchmarks)\n\n# Installation\n\n```bash\nyarn add @taystack/js-big-list\n```\n\nor with `npm`\n\n```bash\nnpm i @taystack/js-big-list\n```\n\n# Use\n\nSmall JavaScript library to help with managing the render process of large datasets on a frontend.\n\nYou don't want to render all of your items at once\n\n# Example\n```javascript\nimport BigList from \"@taystack/js-big-list\";\n\n\nconst items = new Array(100000).fill().map((_, i) =\u003e i); // 100,000 things\n\nconst itemsToRender = new BigList(100, items, x =\u003e x % 10 === 0);\n\nitemsToRender.items;\n// =\u003e [0, 10, 20,...,990];\n\nitemsToRender.nextPage().items;\n// =\u003e [1000, 1010,...,1990];\n```\n\n\n# Documentation\n\n## new BigList(`Number` count, `Array` items, `Function` predicate)\n\n#### Params:\n\n|param|type|use|default|\n|-----|----|---|-------|\n|count|Number|Maximum number of items returned|`0`|\n|items|Array|The original items to be filtered|`[]`|\n|predicate|Function|Works the same as Array.filter|() =\u003e true|\n\n\n# Benchmarks\n\n```bash\n*** BigList benchmark against Array.filter.slice ***\n\n*** filterPredicate = x =\u003e x % 10 === 0 ***\nItems                BigList              Array.filter.slice\n-----                -------              ------------------\n10,000               0ms                  0ms\n100,000              0ms                  2ms\n1,000,000            0ms                  15ms\n10,000,000           0ms                  149ms\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftaystack%2Fjs-big-list","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftaystack%2Fjs-big-list","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftaystack%2Fjs-big-list/lists"}