{"id":17160303,"url":"https://github.com/codenameyau/json-gallery","last_synced_at":"2026-02-27T00:01:56.056Z","repository":{"id":18049312,"uuid":"21099545","full_name":"codenameyau/json-gallery","owner":"codenameyau","description":"HTML image gallery managed with JSON","archived":false,"fork":false,"pushed_at":"2014-06-23T03:52:24.000Z","size":644,"stargazers_count":4,"open_issues_count":0,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T15:12:07.578Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"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/codenameyau.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}},"created_at":"2014-06-22T17:09:28.000Z","updated_at":"2022-11-23T03:51:40.000Z","dependencies_parsed_at":"2022-08-27T16:31:10.769Z","dependency_job_id":null,"html_url":"https://github.com/codenameyau/json-gallery","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codenameyau%2Fjson-gallery","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codenameyau%2Fjson-gallery/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codenameyau%2Fjson-gallery/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codenameyau%2Fjson-gallery/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codenameyau","download_url":"https://codeload.github.com/codenameyau/json-gallery/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248262046,"owners_count":21074237,"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-10-14T22:24:24.890Z","updated_at":"2026-02-27T00:01:51.006Z","avatar_url":"https://github.com/codenameyau.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"json-gallery\n======================\n\n##Description\nJSON Gallery lets you easily set up and manage a responsive image gallery with JSON.\n\n####Live Demo\n- [JSON Gallery is used for my portfolio](https://codenameyau.github.io/)\n- A basic demo is included in the `src/` directory\n\n\n##Installation and Setup\n\n###Required Dependencies\n- jQuery \u003e= 1.10+ (JS)\n- bootstrap \u003e= 3.0.3 (CSS + JS)\n\n####Install with Bower\nRun: `bower install json-gallery --save`\n\n####Manual Installation from build\nCopy the files in `build` into your project's `assets/` folder.\n\n\n###Setup\n* In your html `head`, include the link to the css file, ex:\n\n    ```html\n    \u003clink href=\"assets/css/json-gallery.min.css\" rel=\"stylesheet\"\u003e\n    ```\n\n* In your html, include the js file, ex:\n\n    ```html\n    \u003cscript src=\"assets/js/json-gallery.min.js\"\u003e\u003c/script\u003e\n    ```\n\n* Insert the following snippet in your html to create a gallery:\n\n    ```html\n    \u003cdiv class=\"container\"\u003e\n      \u003cdiv id=\"json-gallery\"\u003e\u003c/div\u003e\n    \u003c/div\u003e\n    ```\n\n* Create a JSON file for your gallery, ex:\n\n    ```\n    $ vim assets/data/portfolio-gallery.json\n    ```\n\n* Edit the JSON file while following this format (example in `src/assets/data`):\n\n    ```json\n    {\n      \"gallery\" : [\n\n        {\n          \"title\" : \"Spring 2013\",\n          \"link\" : \"#sample-portfolio\",\n          \"images\" : [\n            {\n              \"image\" : \"assets/img/spring-2013/spring-13-1.jpg\",\n              \"caption\" : \"\\\"Caption with double quotes\\\"\"\n            },\n            {\n              \"image\" : \"assets/img/spring-2013/spring-13-2.jpg\",\n              \"caption\" : \"'Caption' with single quotes\"\n            },\n            {\n              \"image\" : \"assets/img/spring-2013/spring-13-3.jpg\",\n              \"caption\" : \"Both 'single' and \\\"double\\\" quotes\"\n            }\n          ]\n        },\n\n        ...\n\n        ]\n    }\n    ```\n\n* Lastly in your main JS script file, initialize the gallery:\n\n    ```javascript\n    $(function() {\n        // Args: ('filename', thumbnailSize, numCols, colOffset)\n        jsonGallery('assets/data/portfolio-gallery.json', 5, 2, 1);\n    });\n    ```\n\n##FAQs\nHow do I use single and double quotes in JSON?\n\nCheck out Installation step 7. It has examples of both cases.\n\n\n##Future Tasks\n* Add initialization parameters to change height and width of thumbnails\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodenameyau%2Fjson-gallery","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodenameyau%2Fjson-gallery","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodenameyau%2Fjson-gallery/lists"}