Join Discord

Enter your email to get updates
What is Membrane?
Membrane is a hosted TypeScript runtime specifically designed to build personal automation tools and interact with APIs more easily.
Example of a Program for sending an email when a table in an Airtable is modified.
Subscribe to changes in the table
Get modified fields
Send an email with the details of the modified record.
import { nodes, root, state } from "membrane";

export async function configure() {
  await nodes.table.changed.$subscribe(root.tableChanged);

export async function tableChanged(_, { event }) {
  const { fields } = await event.record.$query(`{ fields }`);
  const formattedFields = JSON.parse(fields);

  let emailBody = ["Table has been changed. Details:\n"];

  for (const fieldName in formattedFields) {
    emailBody.push(`${fieldName}: ${formattedFields[fieldName]}`);

  const subject = "Important: Airtable table has been changed";
  const body = emailBody.join("\n");
  await{ subject, body });
Install From VS Code
Dev Blog