Import Miro Graphs

Export Miro as described here: Exporting content from Miro

Or just try the following bookmarklet after selecting some content in the Miro web app:

https://robert.wiki.openlearning.cc/assets/bookmarklets-from-wiki/Miro%20bookmarklet.html HEIGHT 10

Then paste what is put into your clipboard below

http://hsc.fed.wiki/assets/scripts/import-foreign-json.html HEIGHT 230

const card = e => ['card','sticky_note'].includes(e.type) const connector = e => e.type == 'connector' const text = t => t ? t .replaceAll(/<.*?>/g,'') .replaceAll(/[^\w ]/g,'') .slice(0,26) : 'empty'

json.filter(card).forEach(e => { const name = text(e.title || e.content) nids[e.id] = graph.addNode(e.type,{name}) })

json.filter(connector).forEach(c => { const start = c.start?.item const end = c.end?.item if(nids[start]&&nids[end]) graph.addRel(c.style.strokeColor,nids[start],nids[end],{color:c.style.strokeColor}) })