3 ms·
I'm working on a project to provide exactly this! It's a layout engine that takes a tree of components, emits boxes. Currently it's written in JavaScript and re
by maxharris 7y ago
I'm working on a project to provide exactly this! It's a layout engine that takes a tree of components, emits boxes. Currently it's written in JavaScript and renders to canvas, but it also runs on node + node canvas, so you can do things like generating PDFs and other images server-side.
https://github.com/maxharris9/layout/tree/master/test/components https://github.com/maxharris9/layout/tree/master/test/compon...
https://github.com/maxharris9/jsx-layout https://github.com/maxharris9/jsx-layout
My friend is working on a native client that will run programs written for layout without a browser.
If you're interested in this, I'm open to DMs on twitter (@maxharris9)