{"id":20961936,"url":"https://github.com/heimrichhannot/masonry","last_synced_at":"2026-02-09T05:35:42.976Z","repository":{"id":62515558,"uuid":"94870452","full_name":"heimrichhannot/masonry","owner":"heimrichhannot","description":null,"archived":false,"fork":false,"pushed_at":"2018-01-30T09:44:44.000Z","size":36,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-05-21T10:32:55.495Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","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/heimrichhannot.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}},"created_at":"2017-06-20T08:54:38.000Z","updated_at":"2017-06-20T09:00:32.000Z","dependencies_parsed_at":"2022-11-02T13:15:43.443Z","dependency_job_id":null,"html_url":"https://github.com/heimrichhannot/masonry","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/heimrichhannot/masonry","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heimrichhannot%2Fmasonry","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heimrichhannot%2Fmasonry/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heimrichhannot%2Fmasonry/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heimrichhannot%2Fmasonry/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/heimrichhannot","download_url":"https://codeload.github.com/heimrichhannot/masonry/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heimrichhannot%2Fmasonry/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269969820,"owners_count":24505437,"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","status":"online","status_checked_at":"2025-08-11T02:00:10.019Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-11-19T02:18:54.220Z","updated_at":"2026-02-09T05:35:42.951Z","avatar_url":"https://github.com/heimrichhannot.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Masonry\n\n\u003e Abandoned! See [heimrichhannot-contao-components/masonry](https://github.com/heimrichhannot-contao-components/masonry)\n\n_Cascading grid layout library_\n\nMasonry works by placing elements in optimal position based on available vertical space, sort of like a mason fitting stones in a wall. You’ve probably seen it in use all over the Internet.\n\nSee [masonry.desandro.com](http://masonry.desandro.com) for complete docs and demos.\n\n## Install\n\n### Download\n\n+ [masonry.pkgd.js](https://github.com/desandro/masonry/raw/master/dist/masonry.pkgd.js) un-minified, or\n+ [masonry.pkgd.min.js](https://github.com/desandro/masonry/raw/master/dist/masonry.pkgd.min.js) minified\n\n### CDN\n\nLink directly to Masonry files on [npmcdn](https://npmcdn.com/).\n\n``` html\n\u003cscript src=\"https://npmcdn.com/masonry-layout@4.1/dist/masonry.pkgd.js\"\u003e\u003c/script\u003e\n\u003c!-- or --\u003e\n\u003cscript src=\"https://npmcdn.com/masonry-layout@4.1/dist/masonry.pkgd.min.js\"\u003e\u003c/script\u003e\n```\n\n### Package managers\n\nBower: `bower install masonry --save`\n\n[npm](https://www.npmjs.com/package/masonry-layout): `npm install masonry-layout --save`\n\n## Initialize\n\nWith jQuery\n\n``` js\n$('.grid').masonry({\n  // options...\n  itemSelector: '.grid-item',\n  columnWidth: 200\n});\n```\n\nWith vanilla JavaScript\n\n``` js\n// vanilla JS\n// init with element\nvar grid = document.querySelector('.grid');\nvar msnry = new Masonry( grid, {\n  // options...\n  itemSelector: '.grid-item',\n  columnWidth: 200\n});\n\n// init with selector\nvar msnry = new Masonry( '.grid', {\n  // options...\n});\n```\n\nWith HTML\n\nAdd a `data-masonry` attribute to your element. Options can be set in JSON in the value.\n\n``` html\n\u003cdiv class=\"grid\" data-masonry='{ \"itemSelector\": \".grid-item\", \"columnWidth\": 200 }'\u003e\n  \u003cdiv class=\"grid-item\"\u003e\u003c/div\u003e\n  \u003cdiv class=\"grid-item\"\u003e\u003c/div\u003e\n  ...\n\u003c/div\u003e\n```\n\n## License\n\nMasonry is released under the [MIT license](http://desandro.mit-license.org). Have at it.\n\n* * *\n\nMade by David DeSandro\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheimrichhannot%2Fmasonry","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fheimrichhannot%2Fmasonry","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheimrichhannot%2Fmasonry/lists"}