Add your Meshes publishable key to Lovable and apps built there can route events to HubSpot, Salesforce, Mailchimp, and more.
Install the Meshes events client in your Lovable project:
npm install @mesheshq/eventsSet your publishable key in Lovable's project environment:
WORKSPACE_PUBLISHABLE_KEY=your_workspace_publishable_keyFind your publishable key in the Meshes dashboard under your workspace settings.
"When a user signs up, emit a contact.created event to Meshes with their email and name"
"When a payment succeeds, emit a payment.completed event to Meshes"
"Add Meshes event tracking to my form submissions"
import { MeshesEventsClient } from "@mesheshq/events";
const meshes = new MeshesEventsClient(
process.env.WORKSPACE_PUBLISHABLE_KEY!
);
// In your signup handler
async function handleSignup(email: string, firstName: string) {
// Save user to your database...
// Emit to Meshes — fans out to HubSpot, Mailchimp, etc.
await meshes.emit({
event: "contact.created",
payload: {
email,
first_name: firstName,
source: "lovable-app",
},
});
}Your Lovable app emits events to Meshes using the SDK. Meshes routes each event to every connected destination based on your workspace rules — no integration code in the Lovable app itself.
Meshes handles the last mile — reliable event delivery to every tool in your stack.
Free tier includes 100 events/month. Start in under 2 minutes.