{"id":17290667,"url":"https://github.com/nzbin/photoviewer","last_synced_at":"2026-01-16T10:04:17.892Z","repository":{"id":37710880,"uuid":"140049781","full_name":"nzbin/photoviewer","owner":"nzbin","description":"🖼️ A JS plugin to view images just like in Windows.","archived":false,"fork":false,"pushed_at":"2026-01-11T02:59:16.000Z","size":2241,"stargazers_count":370,"open_issues_count":0,"forks_count":60,"subscribers_count":4,"default_branch":"main","last_synced_at":"2026-01-11T10:22:20.277Z","etag":null,"topics":["draggable","fullscreen","hotkeys","image-gallery","image-viewer","lightbox","modal","mousewheel","movable","photoviewer","resizable","responsive","rotatable","zoomable"],"latest_commit_sha":null,"homepage":"https://nzbin.github.io/photoviewer/","language":"JavaScript","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/nzbin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":null,"patreon":null,"open_collective":"photoviewer","ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2018-07-07T03:33:13.000Z","updated_at":"2026-01-11T02:45:18.000Z","dependencies_parsed_at":"2023-11-28T16:08:12.268Z","dependency_job_id":"234e7569-f458-47ea-a2a6-15ab6f6a8726","html_url":"https://github.com/nzbin/photoviewer","commit_stats":{"total_commits":310,"total_committers":6,"mean_commits":"51.666666666666664","dds":0.05483870967741933,"last_synced_commit":"80ef8938233ab378c305570bb81208ebeb147669"},"previous_names":[],"tags_count":53,"template":false,"template_full_name":null,"purl":"pkg:github/nzbin/photoviewer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nzbin%2Fphotoviewer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nzbin%2Fphotoviewer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nzbin%2Fphotoviewer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nzbin%2Fphotoviewer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nzbin","download_url":"https://codeload.github.com/nzbin/photoviewer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nzbin%2Fphotoviewer/sbom","scorecard":{"id":700150,"data":{"date":"2025-08-11","repo":{"name":"github.com/nzbin/photoviewer","commit":"80ef8938233ab378c305570bb81208ebeb147669"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.3,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 1 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":"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":"Code-Review","score":0,"reason":"Found 1/23 approved changesets -- score normalized to 0","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":"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":"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":"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":"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":"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":"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":"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":"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 8 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":4,"reason":"6 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-mwcw-c2x4-8c55","Warn: Project is vulnerable to: GHSA-gcx4-mw62-g8wm"],"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-22T05:01:32.693Z","repository_id":37710880,"created_at":"2025-08-22T05:01:32.693Z","updated_at":"2025-08-22T05:01:32.693Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28478049,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T06:30:42.265Z","status":"ssl_error","status_checked_at":"2026-01-16T06:30:16.248Z","response_time":107,"last_error":"SSL_read: 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":["draggable","fullscreen","hotkeys","image-gallery","image-viewer","lightbox","modal","mousewheel","movable","photoviewer","resizable","responsive","rotatable","zoomable"],"created_at":"2024-10-15T10:38:48.153Z","updated_at":"2026-01-16T10:04:17.876Z","avatar_url":"https://github.com/nzbin.png","language":"JavaScript","funding_links":["https://opencollective.com/photoviewer","https://opencollective.com/photoviewer/contribute","https://opencollective.com/photoviewer/organization/0/website","https://opencollective.com/photoviewer/organization/1/website","https://opencollective.com/photoviewer/organization/2/website","https://opencollective.com/photoviewer/organization/3/website","https://opencollective.com/photoviewer/organization/4/website","https://opencollective.com/photoviewer/organization/5/website","https://opencollective.com/photoviewer/organization/6/website","https://opencollective.com/photoviewer/organization/7/website","https://opencollective.com/photoviewer/organization/8/website","https://opencollective.com/photoviewer/organization/9/website"],"categories":["others"],"sub_categories":[],"readme":"# PhotoViewer\n\n[![Travis](https://api.travis-ci.com/nzbin/photoviewer.svg)](https://travis-ci.org/nzbin/photoviewer)\n[![npm](https://img.shields.io/npm/v/photoviewer.svg)](https://www.npmjs.com/package/photoviewer)\n[![license](https://img.shields.io/github/license/mashape/apistatus.svg)](https://github.com/nzbin/photoviewer/blob/master/LICENSE)\n[![Gitter](https://img.shields.io/gitter/room/photoviewer/photoviewer.svg)](https://gitter.im/photoviewer/community)\n[![Financial Contributors on Open Collective](https://opencollective.com/photoviewer/all/badge.svg?label=financial+contributors)](https://opencollective.com/photoviewer)\n\n\u003cp align=\"center\"\u003e\n  \u003cimg width=\"600\" src=\"https://github.com/nzbin/photoviewer/assets/20625845/a129140e-e5c4-4ebd-a590-b6fbab2429b7\" alt=\"photoviewer\"/\u003e\n\u003c/p\u003e\n\nPhotoViewer is a JS plugin to view images just like in Windows.\n\n\u003e If you want to support IE8, please goto [Magnify](https://github.com/nzbin/magnify/).\n\n#### Quick links\n\n[Documentation](https://nzbin.github.io/photoviewer/) | \n[Examples](https://codepen.io/collection/DYVgMQ)\n\n## Features\n\n- Vanilla JS\n- Modal draggable\n- Modal resizable\n- Modal maximizable\n- Image movable\n- Image zoomable\n- Image rotatable\n- Keyboard control\n- Fullscreen showing\n- Multiple instances\n- Browser support IE9+\n- RTL support\n\n## Installation\n\nYou can install the plugin via npm\n\n```sh\nnpm install photoviewer --save\n```\n\n## Quick Start\n\n### Step 1: Include files\n\n```scss\n@use 'photoviewer';\n```\n\n```js\nimport PhotoViewer from 'photoviewer';\n```\n\nor\n\n```html\n\u003c!-- Core CSS file --\u003e\n\u003clink href=\"/path/to/photoviewer.css\" rel=\"stylesheet\"\u003e\n\n\u003c!-- Core JS file --\u003e\n\u003cscript src=\"/path/to/photoviewer.js\"\u003e\u003c/script\u003e\n```\n\n### Step 2: Initializing\n\nThe usage of photoviewer is very simple, the `PhotoViewer`'s constructor has 2 arguments.\n\n1. Array with objects of image info.\n2. Options\n\n```js\n// build images array\nvar items = [\n    {\n        src: 'path/to/image1.jpg', // path to image\n        title: 'Image Caption 1' // If you skip it, there will display the original image name(image1)\n    },\n    {\n        src: 'path/to/image2.jpg',\n        title: 'Image Caption 2'\n    }\n];\n\n// define options (if needed)\nvar options = {\n    // optionName: 'option value'\n    // for example:\n    index: 0 // this option means you will start at first image\n};\n\n// Initialize the plugin\nvar photoviewer = new PhotoViewer(items, options);\n```\n\n### Step 3: Binding Event\n\nAt last, binding click event on a button element at initializing.\n\n## Contributors\n\n### Code Contributors\n\nThis project exists thanks to all the people who contribute. [[Contribute](CONTRIBUTING.md)].\n\u003ca href=\"https://github.com/nzbin/photoviewer/graphs/contributors\"\u003e\u003cimg src=\"https://opencollective.com/photoviewer/contributors.svg?width=890\u0026button=false\" /\u003e\u003c/a\u003e\n\n### Financial Contributors\n\nBecome a financial contributor and help us sustain our community. [[Contribute](https://opencollective.com/photoviewer/contribute)]\n\n#### Individuals\n\n\u003ca href=\"https://opencollective.com/photoviewer\"\u003e\u003cimg src=\"https://opencollective.com/photoviewer/individuals.svg?width=890\"\u003e\u003c/a\u003e\n\n#### Organizations\n\nSupport this project with your organization. Your logo will show up here with a link to your website. [[Contribute](https://opencollective.com/photoviewer/contribute)]\n\n\u003ca href=\"https://opencollective.com/photoviewer/organization/0/website\"\u003e\u003cimg src=\"https://opencollective.com/photoviewer/organization/0/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/photoviewer/organization/1/website\"\u003e\u003cimg src=\"https://opencollective.com/photoviewer/organization/1/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/photoviewer/organization/2/website\"\u003e\u003cimg src=\"https://opencollective.com/photoviewer/organization/2/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/photoviewer/organization/3/website\"\u003e\u003cimg src=\"https://opencollective.com/photoviewer/organization/3/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/photoviewer/organization/4/website\"\u003e\u003cimg src=\"https://opencollective.com/photoviewer/organization/4/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/photoviewer/organization/5/website\"\u003e\u003cimg src=\"https://opencollective.com/photoviewer/organization/5/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/photoviewer/organization/6/website\"\u003e\u003cimg src=\"https://opencollective.com/photoviewer/organization/6/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/photoviewer/organization/7/website\"\u003e\u003cimg src=\"https://opencollective.com/photoviewer/organization/7/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/photoviewer/organization/8/website\"\u003e\u003cimg src=\"https://opencollective.com/photoviewer/organization/8/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/photoviewer/organization/9/website\"\u003e\u003cimg src=\"https://opencollective.com/photoviewer/organization/9/avatar.svg\"\u003e\u003c/a\u003e\n\n## License\n\nMIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnzbin%2Fphotoviewer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnzbin%2Fphotoviewer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnzbin%2Fphotoviewer/lists"}