Dynamic embeddable nextjs components

How do I create embeddable components which other people can embed in their websites while maintaining connections/relations to their specific record in the database( supabase in my case ) ?

Does anyone have ideas on how to achieve this ?

You want to create an embeddable component, like how youtube auto-expands here?

This technology is called oEmbed, and you could compose a backend to handle the JSON feedback and weweb to deliver the embedded component.

Appreciate you might also be looking for something else - please share!