#Best way to handle a user generated page

1 messages · Page 1 of 1 (latest)

floral sand
#

A bit of an interesting one here. I'm currently in the process of building a POC for a page builder for a page in my application. The idea is to have the user compose this page (in some sort of back office) from a set of predefined blocks that they can add, remove, reorder and do some basic configuration. Some of these blocks will have to fetch data over an API when they're loaded in the actual page.

I'm wondering if there's some optimisation I can do to cache the result of this page's construction so I don't have to go through the process of reconstructing it the page every time someone loads it?

I figure I might need to have some sort of job run that compiles it down to a static page and then serve that static page from my route?

Open to suggestions and general musings on this.

patent hare
#

Can you show an example of the way you save the page blocks?

silver zodiac
#

I'm building the same kind system where users select from a predefined list of "blocks" to compose a page. I've very interested to hear if anyone has insights here.

signal fox
#

Im curious what packages people like for doing something like this. I've come across @measured/puck but wondering if there's anything else worth checking out

floral sand
#

@patent hare I haven't got to the point where I'm implementing the saving functionality yet, as I imagine that'd be partly informed with the direction I take for dealing with the rendering/serving part of the POC.

@signal fox That's n interesting tool, I just rolled my own editor - looks similar. Didn't even think to look for there being pre-existing solutions for the actual editor.

regal shale