Pu

Puck 0.18 adds drag-and-drop for CSS grid and Flexbox

Hacker News

Puck 0.18 adds drag-and-drop for CSS grid and Flexbox

Hey HN! I just released Puck 0.18 with a new drag-and-drop engine for CSS grid and flexbox support. You can now use Puck to create a page builder that behaves like a design tool, but embedded within your own app and using your own React components. To use it, just add `display: flex` (or grid, etc) to your DropZone and Puck will gracefully handle drag-and-drop across all dimensions. Shout out to the dnd-kit maintainer Claudéric for the collaboration and support (if you’re reading this, I just sponsored you on GitHub!) and as always, a huge thanks to my wonderful community for all the testing and feedback. It would not be possible without you! If you've not heard of Puck, it's is an open-source visual editor for React that I maintain, available under MIT so you can safely embed it in your product. Some background: This is the culmination of 18 months of iteration, and has required several breakthroughs in drag-and-drop to achieve: drag-and-drop across iframes, accounting for layout shift across nested components, and natural collision detection are some of the problems that have kept me extremely busy. I hope to write about the process if time allows. The implementation is bleeding edge, using the experimental branch of dnd-kit with custom collision algorithms and plugins to implement a drag-and-drop experience that feels similar to react-beautiful-dnd, but across multiple dimensions. Happy to answer any questions! Will endeavour to reply to everyone.

Share card

Actual performance

51points
13comments
Made the leaderboard

Launch Intel predictions

Analyze your own launch →
Product HuntOn track for Day 1 leaderboard · Strong signals: new, visual, using · Missing: mac, agents, macos
90%90% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
best fitHighest predicted score across all platforms for this description.
Indie HackersFits the IH revenue-focused audience · Missing: supports, reddit linkedin, podcasting
75%75% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
Hacker NewsStrong engagement from HN community · Strong signals: just released, io · Missing: https docs, excited, exist
73%73% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
TrustMRRLess likely to generate early MRR · Strong signals: month, way · Missing: mobile apps, ios, personal
40%40% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
AppSumoMay struggle as an AppSumo deal · Strong signals: builder · Missing: plus, platform, intuitive
32%32% predicted probability of success on AppSumo, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Missing: arr, mrr, revenue
17%17% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Missing: web3, chat, crypto
0%0% predicted probability of success on BetaList, based on ML models trained on real launch data.

Correct prediction on native model

Similar products

I
I made a drag and drop CSS grid generator65%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

I made a drag and drop CSS grid generator

Hacker News262
Av
Avalanche CSS grid system64%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Avalanche CSS grid system

Hacker News2
In
Infinity CSS Grid64%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Infinity CSS Grid

Hacker News3
CS
CSS Grid Browserslist64%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

CSS Grid Browserslist

Hacker News3
A
A middleweight CSS grid-able unframework67%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

A middleweight CSS grid-able unframework

Hacker News1
Gr
Grid.css64%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Grid.css

Hacker News2
I
I made a drag and drop Tailwind CSS grid generator63%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

I made a drag and drop Tailwind CSS grid generator

Hacker News4
The Grid Gospel - An Intro To CSS Grid
The Grid Gospel - An Intro To CSS Grid56%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Learn CSS Grid Today!

Indie Hackers1$10/mobooks
CS
CSS grid generator59%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

CSS grid generator

Hacker News1
Me
Metro UI Grid in CSS with Flexbox67%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Metro UI Grid in CSS with Flexbox

Hacker News2