Tutorials > Reading webhooks and a daily sleep image (events) > Step 2: The plugin PLUGIN.JS: SETTINGS ONLY CrossPoint.registerPlugin(async (container, api) => { const b64 = (t) => { let s = ''; for (const c of new TextEncoder().encode(t)) s += String.fromCharCode(c); return btoa(s); }; const r = await fetch(api.pluginFile('config.json')); const cfg = r.ok ? await r.json() : {}; container.innerHTML = `
`; const fields = container.querySelectorAll('[data-k]'); fields.forEach((el) => { el.value = cfg[el.dataset.k] || ''; }); container.querySelector('button').onclick = async () => { fields.forEach((el) => { cfg[el.dataset.k] = el.value.trim().replace(/\/+$/, ''); }); await api.writeFile(api.dir + '/config.json', b64(JSON.stringify(cfg))); container.querySelector('[data-out]').textContent = 'Saved.'; }; }); Next: 05 README.md (shown on the reader when the row is opened)