Backend & SDK

Storage & email

Upload files and send transactional email.

File uploads

const input = document.querySelector('input[type=file]');
const { url, name, size } = await m77.storage.upload(input.files[0]);
await m77.db.create('photos', { url, caption: 'Sunset' });

Files up to 10 MB. Each upload uses 1 integration credit. Uploaded files are listed in the Data tab.

Email

await m77.email.send({
  to: 'customer@example.com',
  subject: 'Your booking is confirmed',
  html: '<h1>See you Friday!</h1><p>Table for 2 at 19:30.</p>',
});

Each email uses 1 integration credit. Apps can send up to 50 emails per hour.

Toasts

m77.toast('Saved!');
m77.toast('Something went wrong', 'error');