e-oj/Magic-Grid
A simple, lightweight Javascript library for dynamic grid layouts. observed · 2026-08-28
Health v2 · maintenance only
32/100
- Activity 0
- Release rhythm 35
- Longevity 100
Flags: no_releases
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 2852
- days_rel: n/a
- days_push: 728
- n_releases_24m: 0
Adoption not part of the score
3152 stars · 138 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
Magic Grid is a lightweight JavaScript library for creating dynamic, masonry-style grid layouts. It automatically repositions grid items of varying heights within a specified container, requiring only a container selector and change listeners.
Use cases
- build a masonry-style image gallery with variable-height items
- lay out user-generated content cards of unequal heights
- create a Pinterest-like dynamic grid layout
- avoid whitespace gaps in CSS grid rows with mixed-height items
- add a responsive dynamic grid to a vanilla JS project without heavy dependencies
When to choose
- you need a lightweight, dependency-free masonry layout in plain JavaScript
- your grid items have equal width but varying heights
- CSS Grid or Flexbox leaves uneven whitespace with dynamic content
When to avoid
- your items have equal heights - plain CSS Grid or Flexbox suffices
- you need a full-featured layout framework like Isotope with filtering and sorting
- you need items of varying widths - the library requires uniform item width
Facets
library · maturity maintenance
ui-components frontend-framework frontend web-development web-design browser masonry-layout grid-layout lightweight vanilla-js css-grid-alternative nodejs javascript
2 sources
- readme: https://github.com/e-oj/Magic-Grid · fetched 2026-08-28 · 034ec5798443
- registry_npm: https://registry.npmjs.org/magic-grid · fetched 2026-08-29 · daabeac521ab
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| e-oj/Magic-Grid | main | 32 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem