{"id":46500351,"url":"https://github.com/artemtam/react-perfect-slider","last_synced_at":"2026-03-06T13:03:37.626Z","repository":{"id":39448195,"uuid":"232601363","full_name":"artemtam/react-perfect-slider","owner":"artemtam","description":"🛝 Efficient, simple, and perfectly designed carousel/slider component on pure React","archived":false,"fork":false,"pushed_at":"2025-11-25T12:39:14.000Z","size":2149,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-11-28T17:29:04.327Z","etag":null,"topics":["carousel","react","react-component","slider","slider-component","typescript"],"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/artemtam.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,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-01-08T16:02:00.000Z","updated_at":"2025-11-25T12:34:25.000Z","dependencies_parsed_at":"2025-11-28T03:00:29.690Z","dependency_job_id":null,"html_url":"https://github.com/artemtam/react-perfect-slider","commit_stats":{"total_commits":52,"total_committers":7,"mean_commits":7.428571428571429,"dds":0.5576923076923077,"last_synced_commit":"0f1ef1cb9c209fb69d76f8fce34a2b44422a5601"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/artemtam/react-perfect-slider","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artemtam%2Freact-perfect-slider","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artemtam%2Freact-perfect-slider/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artemtam%2Freact-perfect-slider/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artemtam%2Freact-perfect-slider/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/artemtam","download_url":"https://codeload.github.com/artemtam/react-perfect-slider/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artemtam%2Freact-perfect-slider/sbom","scorecard":{"id":209121,"data":{"date":"2025-08-11","repo":{"name":"github.com/artemtam/react-perfect-slider","commit":"0f1ef1cb9c209fb69d76f8fce34a2b44422a5601"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.8,"checks":[{"name":"Code-Review","score":3,"reason":"Found 1/3 approved changesets -- score normalized to 3","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":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","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":"Pinned-Dependencies","score":5,"reason":"dependency not pinned by hash detected -- score normalized to 5","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/artemtam/react-perfect-slider/main.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/artemtam/react-perfect-slider/main.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/main.yml:32: update your workflow using https://app.stepsecurity.io/secureworkflow/artemtam/react-perfect-slider/main.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:42: update your workflow using https://app.stepsecurity.io/secureworkflow/artemtam/react-perfect-slider/main.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:45: update your workflow using https://app.stepsecurity.io/secureworkflow/artemtam/react-perfect-slider/main.yml/master?enable=pin","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned","Info:   2 out of   2 npmCommand dependencies pinned"],"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/main.yml:1","Info: no jobLevel write permissions found"],"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":"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":"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":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"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":"Packaging","score":10,"reason":"packaging workflow detected","details":["Info: Project packages its releases by way of GitHub Actions.: .github/workflows/main.yml:36"],"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 29 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":0,"reason":"34 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-h5c3-5r3r-rr8q","Warn: Project is vulnerable to: GHSA-rmvr-2pp2-xj38","Warn: Project is vulnerable to: GHSA-xx4v-prfh-6cgc","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-w573-4hg7-7wgq","Warn: Project is vulnerable to: GHSA-phwq-j96m-2c2q","Warn: Project is vulnerable to: GHSA-ghr5-ch3p-vcr6","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-rc47-6667-2j5j","Warn: Project is vulnerable to: GHSA-78xj-cgh5-2h22","Warn: Project is vulnerable to: GHSA-2p57-rm9w-gvfp","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-76p3-8jx3-jpfq","Warn: Project is vulnerable to: GHSA-3rfm-jhwj-7488","Warn: Project is vulnerable to: GHSA-hhq3-ff78-jv3g","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-mwcw-c2x4-8c55","Warn: Project is vulnerable to: GHSA-r683-j2x4-v87g","Warn: Project is vulnerable to: GHSA-hj9c-8jmm-8c52","Warn: Project is vulnerable to: GHSA-7fh5-64p2-3v2j","Warn: Project is vulnerable to: GHSA-gcx4-mw62-g8wm","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-4x5v-gmq8-25ch","Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36","Warn: Project is vulnerable to: GHSA-4wf5-vphf-c2xc","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7","Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q"],"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-17T00:24:00.599Z","repository_id":39448195,"created_at":"2025-08-17T00:24:00.599Z","updated_at":"2025-08-17T00:24:00.599Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30178286,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T12:39:21.703Z","status":"ssl_error","status_checked_at":"2026-03-06T12:36:09.819Z","response_time":250,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["carousel","react","react-component","slider","slider-component","typescript"],"created_at":"2026-03-06T13:03:36.920Z","updated_at":"2026-03-06T13:03:37.606Z","avatar_url":"https://github.com/artemtam.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-perfect-slider ![Build Workflow](https://github.com/artemtam/react-perfect-slider/actions/workflows/test.yml/badge.svg) [![Coverage Status](https://coveralls.io/repos/github/artemtam/react-perfect-slider/badge.svg?branch=beta)](https://coveralls.io/github/artemtam/react-perfect-slider)\n\nHigh-efficient and perfectly designed carousel/slider component.\n\n## Features\n\n- Simple, clean, not over-engineered\n- No default styling and controlling components\n- Hardware-accelerated transitions with CSS Transform\n- Zero-dependencies, React and TypeScript\n- Glitchless on mobile devices\n\n## Usage\n\nAdd `react-perfect-slider` to your project running the following in your project folder:\n\n```shell script\nnpm i react-perfect-slider\n```\n\nImport Slider component and necessary styles:\n\n```typescript jsx\nimport Slider from 'react-perfect-slider';\n```\n\nJust pass all slides as children and add necessary controls:\n\n```typescript jsx\n\u003cSlider renderControls={(next, previous) =\u003e [\n    \u003cbutton onClick={previous}\u003ePrevious\u003c/button\u003e,\n    \u003cbutton onClick={next}\u003eNext\u003c/button\u003e\n]}\u003e\n    \u003cdiv\u003eSlide 1\u003c/div\u003e\n    \u003cdiv\u003eSlide 2\u003c/div\u003e\n    \u003cdiv\u003eSlide 3\u003c/div\u003e\n\u003c/Slider\u003e\n```\n\n## API\n\nThe single `Slider` component has the following properties:\n\n| Name | Type | Default | Description |\n| --- | --- | --- | --- |\n| `transitionDuration` | `number` | `1000` | Slide transition duration in milliseconds  |\n| `transitionFunction` | `string` | `ease` | Slide transition function (ease, ease-in-out, ect.)  |\n| `autoplay` | `boolean` | `true` | Autoplay mode active |\n| `autoplayDuration` | `number` | `5000` | Interval for autoplay iteration |\n| `renderControls` | `Function` | `() =\u003e null` | Callback is used to render controlling components, such as next and previous buttons, slider indicator dots, etc. More details below |\n\n### renderControls\n\n```typescript jsx\nrenderControls?: (\n    next: () =\u003e void, // navigate to the next slide\n    previous: () =\u003e void, // navigate to the previous slide\n    goTo: (slide: number) =\u003e void, // navigate to the specified slide\n    slide: number,  // current slide index\n    total: number, // total number of slides\n  ) =\u003e React.ReactNode | React.ReactNodeArray;\n```\nUse this callback to render all necessary controlling components, such as next/previous arrows, slider indicator dots, etc. For example, to render Next and Previous button write the following:\n\n```typescript jsx\n\u003cSlider renderControls={(next, previous) =\u003e [\n    \u003cbutton onClick={previous}\u003ePrevious\u003c/button\u003e,\n    \u003cbutton onClick={next}\u003eNext\u003c/button\u003e\n]} /\u003e\n```\n\nYou can place these components relatively to the Slider container – just make each component's position `absolute`.\n\n## Contribution\n\nThere are still some things to implement, such as touch support and accessibility So feel free to contribute to the project, and use issues to share feedback.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fartemtam%2Freact-perfect-slider","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fartemtam%2Freact-perfect-slider","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fartemtam%2Freact-perfect-slider/lists"}