cosmiciron / prelayout
PublicBreak the DOM speed barrier and say goodbye to layout thrashing: get text size, flow, shapes, and pages as data before you render. Powered by a smoking-fast, DTP-grade layout engine.
Prelayout computes precise text positions, sizes, overflows, and pagination data before rendering for custom UIs like editors, previews, and shaped text.
How It Works
You find a tool that figures out exactly where text goes in boxes, pages, or shapes before drawing anything.
You bring the tool into your work with a simple addition.
You hand over your words, a box size, font choice, and any dodging shapes, and it instantly returns perfect positions and sizes for every line.
You paint the ready-made pieces exactly where they belong, in HTML, canvas, or your favorite spot.
Play with live demos like text dancing around videos or flowing into images to see the magic in action.
Your layouts feel instant and perfect, no more guessing or slow redraws – everything flows beautifully.
Star Growth
Repurpose is a Pro feature
Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.
Unlock RepurposeSimilar repos coming soon.