{"id":19054022,"url":"https://github.com/deesouza/galleryfy","last_synced_at":"2026-01-28T12:33:28.156Z","repository":{"id":183985485,"uuid":"671106710","full_name":"DeeSouza/GalleryFy","owner":"DeeSouza","description":"GalleryFy is a React library to show images in the gallery.","archived":false,"fork":false,"pushed_at":"2024-07-03T18:00:13.000Z","size":16686,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-20T13:56:54.176Z","etag":null,"topics":["gallery","image-gallery","javascript","react","react-gallery"],"latest_commit_sha":null,"homepage":"https://deesouza.github.io/GalleryFy/","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/DeeSouza.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}},"created_at":"2023-07-26T14:52:13.000Z","updated_at":"2024-07-03T17:59:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"3d8e76ac-95a3-4a39-8b43-9e5743215cfb","html_url":"https://github.com/DeeSouza/GalleryFy","commit_stats":null,"previous_names":["deesouza/galleryfy"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/DeeSouza/GalleryFy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DeeSouza%2FGalleryFy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DeeSouza%2FGalleryFy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DeeSouza%2FGalleryFy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DeeSouza%2FGalleryFy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DeeSouza","download_url":"https://codeload.github.com/DeeSouza/GalleryFy/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DeeSouza%2FGalleryFy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28845279,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-28T10:53:21.605Z","status":"ssl_error","status_checked_at":"2026-01-28T10:53:20.789Z","response_time":57,"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":["gallery","image-gallery","javascript","react","react-gallery"],"created_at":"2024-11-08T23:36:18.614Z","updated_at":"2026-01-28T12:33:28.140Z","avatar_url":"https://github.com/DeeSouza.png","language":"TypeScript","readme":"# GalleryFy\n\nGalleryFy is a simple React library to show images and PDF files in the gallery.\n\n![Example GalleryFy](./galleryfy.png)\n\n## Prerequisites\n\n- Node v18+\n- NPM v10+\n\n## Install\n\n```bash\nnpm i @deesouza/galleryfy\n```\n\n## Usage\n\n```jsx\nexport default function Home() {\n  const dataSource = [\n    {\n      src: \"https://cdn.images.com/image-1.png\",\n      title: \"Image\",\n    },\n    {\n      src: \"https://s29.q4cdn.com/175625835/files/doc_downloads/test.pdf\",\n      title: \"File PDF\",\n    },\n  ];\n\n  const [openIn, setOpenIn] = useState(0);\n  const [open, setOpen] = useState(false);\n\n  function handleOpen(index: number) {\n    setOpenIn(index);\n    setOpen(true);\n  }\n\n  return (\n    \u003cdiv\u003e\n      \u003cGalleryFy\n        open={open}\n        dataSource={dataSource}\n        startIn={openIn}\n        handleClose={() =\u003e setOpen(false)}\n      /\u003e\n\n      \u003cdiv\u003e\n        {dataSource.map((item, index) =\u003e (\n          \u003cdiv key={item.src} onClick={() =\u003e handleOpen(index)}\u003e\n            \u003cspan\u003e{item.src}\u003c/span\u003e\n          \u003c/div\u003e\n        ))}\n      \u003c/div\u003e\n    \u003c/div\u003e\n  );\n}\n```\n\nYou can also use images from assets.\n\n```js\nimport image1 from \"@assets/images/image-1.jpg\";\n\nconst images = [{ src: image1 }];\n```\n\n## API\n\n| Prop                | Value           | Default | Description                          |\n| :------------------ | :-------------- | :------ | :----------------------------------- |\n| `open`              | `boolean`       | `false` | Control open and close of gallery    |\n| `dataSource`        | `array`         |         | Data of gallery                      |\n| `startIn`           | `number`        |         | Index than start gallery             |\n| `handleClose`       | `function`      |         | Function execute to close gallery    |\n| `showThumbs`        | `boolean`       | `true`  | Show thumbnails                      |\n| `fullWidth`         | `boolean`       | `false` | iFrame PDF with full width in window |\n| `positionPlacement` | `top`, `bottom` | `top`   | Position of bar control              |\n| `showTitle`         | `boolean`       | `false` | Show title of image or PDF           |\n| ...                 | ...             |         | ...                                  |\n\n## Features\n\n- Zoom\n- Draggable\n- Rotate\n- Thumbnails\n- Navigation\n- Image Viewer\n- PDF Viewer\n\n## Contributing\n\nContributions, issues and feature requests are welcome. Feel free to check [issues page](https://github.com/deesouza/galleryfy/issues).\n\n## License\n\nCopyright © 2023 [Diego Souza](https://github.com/deesouza).\nThis project is [MIT](./LICENSE) licensed.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeesouza%2Fgalleryfy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeesouza%2Fgalleryfy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeesouza%2Fgalleryfy/lists"}