async function fetch_info(apps) { let result = {}; for (let [key, value] of Object.entries(apps)) { let blob = await ssb.blobGet(value); blob = blob ? utf8Decode(blob) : '{}'; result[key] = JSON.parse(blob); } return result; } async function main() { var apps = await fetch_info(await core.apps()); var core_apps = await fetch_info(await core.apps('core')); var doc = `

Apps

Core Apps

`; app.setDocument(doc); } main();