flickr/justified-layout
flickr/justified-layout has 1,639 GitHub stars and 86 forks. GitHot measured 0 stars in 24 hours. Last checked 2026-11-08 03:23 UTC. Last push 2023-09-05.
Pass in box sizes and get back sizes and coordinates for a justified layout
Measured star growth
- in 24h
- 0
- in 7 days
- Collecting history
- in 15 days
- Collecting history
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalFlickr's Justified Layout
Pass in box sizes and get back sizes and coordinates for a nice justified layout like that seen all
over Flickr. The explore page is a great example. Here's
another example using the fullWidthBreakoutRowCadence option on Flickr's
album page.
It converts this:
[0.5, 1.5, 1, 1.8, 0.4, 0.7, 0.9, 1.1, 1.7, 2, 2.1]
Into this:
{
"containerHeight": 1269,
"widowCount": 0,
"boxes": [
{
"aspectRatio": 0.5,
"top": 10,
"width": 170,
"height": 340,
"left": 10
},
{
"aspectRatio": 1.5,
"top": 10,
"width": 510,
"height": 340,
"left": 190
},
...
]
}
Which gives you everything you need to make something like this:

Install
npm install justified-layout
Easy Usage
var layoutGeometry = require('justified-layout')([1.33, 1, 0.65] [, config])
Full Documentation and Examples
Find it here: http://flickr.github.io/justified-layout/
License
Open Source Licensed under the MIT license.
Explore related projects
codecrafters-io/build-your-own-x
Master programming by recreating your favorite technologies from scratch.
560,836 starspublic-apis/public-apis
A collective list of free APIs
497,076 starsmorluto/rea
Reverse engineer anything with agents, from app behavior down to native binaries.
441,480 starsopenclaw/openclaw
The AI that really does things. Any OS. Any Platform. The lobster way. 🦞
394,157 stars