Add your Meshes publishable key to Replit and apps built there can route events to HubSpot, Salesforce, Mailchimp, and more.
Install the Meshes events client in your Replit project:
npm install @mesheshq/eventsAdd your publishable key to Replit Secrets:
WORKSPACE_PUBLISHABLE_KEY=your_workspace_publishable_keyFind your publishable key in the Meshes dashboard under your workspace settings.
"When someone submits the contact form, emit a contact.created event to Meshes"
"When a user upgrades, emit a payment.completed event to Meshes with their plan and email"
"Emit an event to Meshes every time a new account is created"
import express from "express";
import { MeshesEventsClient } from "@mesheshq/events";
const app = express();
app.use(express.json());
const meshes = new MeshesEventsClient(
process.env.WORKSPACE_PUBLISHABLE_KEY!
);
app.post("/api/signup", async (req, res) => {
const { email, first_name, last_name, plan } = req.body;
// Save user to your database...
// Emit to Meshes — fans out to HubSpot, Mailchimp, etc.
await meshes.emit({
event: "contact.created",
payload: {
email,
first_name,
last_name,
plan,
source: "replit-app",
},
});
res.status(201).json({ success: true });
});
app.listen(3000);Your Replit 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 Replit 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.