// In your .github/copilot-instructions.md
## Meshes Integration
Use `MeshesEventsClient` from `@mesheshq/events` to emit product events
(signups, payments, cancellations) to external tools.
- Import: `import { MeshesEventsClient } from '@mesheshq/events'`
- Init: `new MeshesEventsClient(process.env.WORKSPACE_PUBLISHABLE_KEY!)`
- Emit: `meshes.emit({ event: "event.name", payload: { ... } })`
- Events endpoint: https://events.meshes.io/api/v1/events"Autocomplete tracking calls within my business logic"
"Refactor this webhook handler to use Meshes"
"Generate tests for this event payload"
async function fulfillOrder(orderId) {
const order = await db.orders.complete(orderId);
// Copilot autocompletes the tracking call natively
await meshes.emit("order.fulfilled", {
orderId: order.id,
userId: order.userId,
amount: order.total,
items: order.items.length
});
return order;
}Copilot autocompletes your Meshes integration inline as you code. Meshes handles the rest — routing, retries, and delivery to every connected destination.
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.