{"id":13991637,"url":"https://github.com/flickr/justified-layout","last_synced_at":"2025-05-14T06:07:24.108Z","repository":{"id":55151825,"uuid":"50947339","full_name":"flickr/justified-layout","owner":"flickr","description":"Pass in box sizes and get back sizes and coordinates for a justified layout","archived":false,"fork":false,"pushed_at":"2023-09-05T21:20:40.000Z","size":153,"stargazers_count":1608,"open_issues_count":10,"forks_count":87,"subscribers_count":59,"default_branch":"main","last_synced_at":"2025-04-11T00:46:53.874Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://flickr.github.io/justified-layout/","language":"JavaScript","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/flickr.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":"2016-02-02T19:50:42.000Z","updated_at":"2025-04-06T20:26:24.000Z","dependencies_parsed_at":"2024-06-18T12:27:11.986Z","dependency_job_id":"5ef38a82-4234-4069-9afd-1fc52b712318","html_url":"https://github.com/flickr/justified-layout","commit_stats":{"total_commits":47,"total_committers":7,"mean_commits":6.714285714285714,"dds":0.5106382978723405,"last_synced_commit":"9d4db49cdbf45604c63a8b25293650af4fe952ab"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flickr%2Fjustified-layout","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flickr%2Fjustified-layout/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flickr%2Fjustified-layout/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flickr%2Fjustified-layout/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flickr","download_url":"https://codeload.github.com/flickr/justified-layout/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254079036,"owners_count":22011084,"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-08-09T14:01:30.234Z","updated_at":"2025-05-14T06:07:24.052Z","avatar_url":"https://github.com/flickr.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# Flickr's Justified Layout\n\n[![Build Status](https://travis-ci.org/flickr/justified-layout.svg?branch=master)](https://travis-ci.org/flickr/justified-layout) [![Coverage Status](https://coveralls.io/repos/github/flickr/justified-layout/badge.svg?branch=master)](https://coveralls.io/github/flickr/justified-layout?branch=master)\n\nPass in box sizes and get back sizes and coordinates for a nice justified layout like that seen all\nover Flickr. The \u003ca href=\"https://www.flickr.com/explore\"\u003eexplore page\u003c/a\u003e is a great example. Here's\nanother example using the `fullWidthBreakoutRowCadence` option on Flickr's\n\u003ca href=\"https://www.flickr.com/photos/dataichi/albums/72157650151574962\"\u003ealbum page\u003c/a\u003e.\n\nIt converts this:\n\n```js\n[0.5, 1.5, 1, 1.8, 0.4, 0.7, 0.9, 1.1, 1.7, 2, 2.1]\n```\n\nInto this:\n\n```js\n{\n    \"containerHeight\": 1269,\n    \"widowCount\": 0,\n    \"boxes\": [\n        {\n            \"aspectRatio\": 0.5,\n            \"top\": 10,\n            \"width\": 170,\n            \"height\": 340,\n            \"left\": 10\n        },\n        {\n            \"aspectRatio\": 1.5,\n            \"top\": 10,\n            \"width\": 510,\n            \"height\": 340,\n            \"left\": 190\n        },\n        ...\n    ]\n}\n```\n\nWhich gives you everything you need to make something like this:\n\n![Demonstration](https://cloud.githubusercontent.com/assets/43693/14033849/f5cffb58-f1da-11e5-9763-dce7e90835e1.png)\n\n\n## Install\n\n`npm install justified-layout`\n\n\n## Easy Usage\n\n```js\nvar layoutGeometry = require('justified-layout')([1.33, 1, 0.65] [, config])\n```\n\n\n## Full Documentation and Examples\n\nFind it here: http://flickr.github.io/justified-layout/\n\n\n## License\n\nOpen Source Licensed under the MIT license.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflickr%2Fjustified-layout","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflickr%2Fjustified-layout","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflickr%2Fjustified-layout/lists"}