{"id":13447554,"url":"https://github.com/metafizzy/packery","last_synced_at":"2025-05-11T03:43:34.918Z","repository":{"id":5422172,"uuid":"6613743","full_name":"metafizzy/packery","owner":"metafizzy","description":":bento: Gapless, draggable grid layouts","archived":false,"fork":false,"pushed_at":"2025-03-08T03:49:11.000Z","size":756,"stargazers_count":4206,"open_issues_count":56,"forks_count":315,"subscribers_count":95,"default_branch":"master","last_synced_at":"2025-05-08T21:08:19.788Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://packery.metafizzy.co","language":"JavaScript","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/metafizzy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/contributing.md","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":"2012-11-09T13:23:57.000Z","updated_at":"2025-05-06T22:57:56.000Z","dependencies_parsed_at":"2025-03-20T06:07:36.974Z","dependency_job_id":"8676e833-5eeb-439b-8b15-6ec927eda999","html_url":"https://github.com/metafizzy/packery","commit_stats":null,"previous_names":[],"tags_count":47,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metafizzy%2Fpackery","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metafizzy%2Fpackery/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metafizzy%2Fpackery/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metafizzy%2Fpackery/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/metafizzy","download_url":"https://codeload.github.com/metafizzy/packery/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253159953,"owners_count":21863604,"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-07-31T05:01:20.829Z","updated_at":"2025-05-11T03:43:34.884Z","avatar_url":"https://github.com/metafizzy.png","language":"JavaScript","funding_links":[],"categories":["JavaScript","others","Uncategorized"],"sub_categories":["Uncategorized"],"readme":"# Packery\n\n_Bin-packing layout library_\n\nSee [packery.metafizzy.co](https://packery.metafizzy.co) for complete docs and demos\n\n## Install\n\n### Download\n\n+ [packery.pkgd.js](https://unpkg.com/packery@3/dist/packery.pkgd.js) un-minified, or\n+ [packery.pkgd.min.js](https://unpkg.com/packery@3/dist/packery.pkgd.min.js) minified\n\n### CDN\n\nLink directly to Packery files on [unpkg](https://unpkg.com).\n\n``` html\n\u003cscript src=\"https://unpkg.com/packery@3/dist/packery.pkgd.js\"\u003e\u003c/script\u003e\n\u003c!-- or --\u003e\n\u003cscript src=\"https://unpkg.com/packery@3/dist/packery.pkgd.min.js\"\u003e\u003c/script\u003e\n```\n\n### Package managers\n\n[npm](https://www.npmjs.com/package/packery): `npm install packery --save`\n\nBower: `bower install packery --save`\n\n## License\n\nPackery v3 is licensed under the MIT license.\n\n## Initialize\n\nWith jQuery\n\n``` js\n$('.grid').packery({\n  // options...\n  itemSelector: '.grid-item'\n});\n```\n\nWith vanilla JavaScript\n\n``` js\n// vanilla JS\nvar grid = document.querySelector('.grid');\n// initialize with element\nvar pckry = new Packery( grid, {\n  // options...\n  itemSelector: '.grid-item'\n});\n\n// initialize with selector string\nvar pckry = new Packery('.grid', {\n  // options...\n});\n```\n\nWith HTML\n\nAdd a `data-packery` attribute to your element. Options can be set in JSON in the value.\n\n``` html\n\u003cdiv class=\"grid\" data-packery='{ \"itemSelector\": \".grid-item\" }'\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---\n\nBy [Metafizzy](http://metafizzy.co)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmetafizzy%2Fpackery","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmetafizzy%2Fpackery","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmetafizzy%2Fpackery/lists"}