{"id":19145741,"url":"https://github.com/xremix/ng-xgallerify","last_synced_at":"2025-07-16T01:39:31.290Z","repository":{"id":87477771,"uuid":"291637778","full_name":"xremix/ng-xGallerify","owner":"xremix","description":"A lightweight, responsive, amazing looking photo gallery for Angular.","archived":false,"fork":false,"pushed_at":"2020-10-17T12:22:30.000Z","size":1404,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-07T02:01:58.789Z","etag":null,"topics":["angular","angular2","css","gallery","html","images","javascript","javascript-library","js","ng","photos","responsive","typescript","web"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/xremix.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-08-31T06:50:18.000Z","updated_at":"2022-04-14T11:49:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"a4829773-1594-4c60-aeb8-d408472349cc","html_url":"https://github.com/xremix/ng-xGallerify","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/xremix/ng-xGallerify","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xremix%2Fng-xGallerify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xremix%2Fng-xGallerify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xremix%2Fng-xGallerify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xremix%2Fng-xGallerify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xremix","download_url":"https://codeload.github.com/xremix/ng-xGallerify/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xremix%2Fng-xGallerify/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265474409,"owners_count":23772334,"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":["angular","angular2","css","gallery","html","images","javascript","javascript-library","js","ng","photos","responsive","typescript","web"],"created_at":"2024-11-09T07:42:14.425Z","updated_at":"2025-07-16T01:39:31.235Z","avatar_url":"https://github.com/xremix.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ng-xGallerify\n\n**A lightweight, responsive, amazing looking photo gallery for [Angular](https://angular.io/).**\n\nThe row based design is very appealing, as it highlights landscape photos and allows it to show a beautiful image grid with no waste of space.\n\n- Responsive\n- Simple to use\n- Lightweight\n- Customizable\n- Beautiful row based design\n- Based on Flexbox\n- Works with Angular\n- [jQuery](https://github.com/xremix/xGallerify) (Original Project) and [AngularJS](https://github.com/JohnnyTheTank/angular-xGallerify) version available\n\n\n## ToDo´s\n\nHere is a list of features you will see in the future. If you have any suggestions, please open up an issue.\n\n- [x] Deploy working component to NPM\n- [x] Support modes for different row sizes based on the screen size\n- [x] Have a bootstrap mode\n- [x] Have option to pass in own modes\n- [x] Exporting models\n- [ ] Improve default styling\n- [ ] Get image loaded events out of the templates\n- [ ] Have default themes, next to the plain one\n- [ ] Pageing\n- [ ] Have optional Template for Loading Indicator\n- [x] Fix how last rows show if they are not full\n\n## Demo\n\n![Demo Screenshot](Example.png)\n\nThe library is used on the [Porfolio Website of Toni Hoffmann](https://www.toni-hoffmann.com/photography/landscapes/1)\n\nYou can see the usage on [the GitHub project](https://github.com/xremix/toni-hoffmann-com/tree/master/src/app/components/photography/album) of this website\n\n## Usage\n\nFirst run `npm i 'ng-xGallerify'` to install the dependency in your project\n\nNext make the following adjustments to your app.modules.ts\n\n```\nimport { XGallerifyModule } from '@xremix/ng-x-gallerify'\n...\n\n@NgModule({\n  imports: [\n    XGallerifyModule\n  ]\n  ...\n```\n\nThen in your `my.component.ts` you should have some code like this:\n\n```\nimport { GalleryImage } from 'x-gallerify';\n\n...\nexport class AppComponent {\n  public images: Array\u003cany\u003e = [\n    {\n      url: \"https://farm66.staticflickr.com/65535/49489692872_a202029a13_b.jpg\",\n    },\n    {\n      url: \"https://farm66.staticflickr.com/65535/49489489251_21a1775a60_b.jpg\",\n    },\n    {\n      url: \"https://farm66.staticflickr.com/65535/49489694752_f8d8745a85_b.jpg\",\n    },\n    {\n      url: \"https://farm66.staticflickr.com/65535/49488995108_5283113839_b.jpg\",\n    },\n    {\n      url: \"https://farm66.staticflickr.com/65535/49488995108_5283113839_b.jpg\",\n    },\n    {\n      url: \"https://farm66.staticflickr.com/65535/49489694752_f8d8745a85_b.jpg\",\n    },\n    {\n      url: \"https://farm66.staticflickr.com/65535/49488995108_5283113839_b.jpg\",\n    },\n    {\n      url: \"https://farm66.staticflickr.com/65535/49488995108_5283113839_b.jpg\",\n    }\n  ];\n}\n\n```\n\nYour `my.component.html` should look like this:\n\n```\n\u003cui-xGallerify [images]=\"images\"\u003e\u003c/ui-xGallerify\u003e\n```\n\n### Advanced usage\n\n\n#### Custom Template / Design\n\nTo make use of your own design you can have your own template\n\n```\n\u003cui-xGallerify [images]=\"images\" [imageTemplate]=\"imageTemplate\" #myGallery\u003e\u003c/ui-xGallerify\u003e\n\n\n\u003cng-template #imageTemplate let-image=\"image\"\u003e\n  \u003cimg class=\"xgallerify-img\" url=\"{{image.url}}\" (load)=\"myGallery.imageLoaded($event, image)\"\u003e\n  \u003cdiv style=\"position: absolute; background: rgba(0,0,0,0.5); left: 0px; right: 0px; bottom: 0px; height: 20px;\"\u003e\n  You can place some title here\n  \u003c/div\u003e\n\u003c/ng-template\u003e\n```\n\n#### Click events\n\nIf you want to trigger a click event, once an image gets clicked, you can make use of the templates as well.\n\nYour `my.component.ts` would look like this\n\n```\n    import { GalleryImage } from 'xgallerify';\n    export class AppComponent {\n        public clickImage(image: Image){\n            alert(image.url);\n        }\n    }\n```\n\nand your `my.component.html` like this\n\n```\n\u003cui-xGallerify [images]=\"images\" [imageTemplate]=\"imageTemplate\" #myGallery\u003e\u003c/ui-xGallerify\u003e\n\n\u003cng-template #imageTemplate let-image=\"image\"\u003e\n  \u003cimg class=\"xgallerify-img\" src=\"{{image.url}}\" (load)=\"myGallery.imageLoaded($event, image)\" (click)=\"clickImage(image)\"\u003e\n\u003c/ng-template\u003e\n```\n\n### Parameters\n\n*This is still work in progress*\n\nYou can pass the following parameter to a gallery:\n\n- breakPoints\n- images\n- imageTemplate\n\n## Deploy\n\nDo the following steps to release a new version of this package.\n\n- Increase version in `package.json` and `projects/x-gallerify/package.json`\n- `npm run pack` to build the package\n- Make sure you are logged in at npm\n- `cd dist/x-gallerify`\n- `npm publish` to publish it on npm\n- Tag commit with `git tag -a v1.4 -m \"version 1.4\"`\n- `git push origin v1.4`\n\n\n## Community\n\n- xGallerify jQuery directive: [xremix/xGallerify](https://github.com/xremix/xGallerify)\n- xGallerify AngularJS directive: [JohnnyTheTank/angular-xGallerify](https://github.com/JohnnyTheTank/angular-xGallerify)\n\nThanks everyone for contributing. Suggestions are always welcome.  \nAlso I'm happy to hear in which projects you've used the library.\n\n[![Analytics](https://ga-beacon.appspot.com/UA-40522413-9/welcome-page)](https://github.com/xremix/ng-xGallerify)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxremix%2Fng-xgallerify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxremix%2Fng-xgallerify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxremix%2Fng-xgallerify/lists"}