About 3 min
Node.js install
Copy the code below into your app and send pings on the monitor interval.
Install steps
- 1
Prepare the ping URL
Put the URL from your dashboard into the `VIBEPULSE_PING_URL` environment variable.
- 2
Paste the code
Add the code below to your main loop or server startup.
- 3
Match the interval
Set the sleep/interval in code to match your monitor check interval.
- 4
Deploy and verify
After deploy, check that the last ping time updates on the dashboard.
Code
Node.js install
const pingUrl = process.env.VIBEPULSE_PING_URL;
if (!pingUrl) throw new Error('Missing VIBEPULSE_PING_URL');
const INTERVAL_MS = 600_000; // match your monitor interval
async function pingVibepulse() {
const res = await fetch(pingUrl, { method: 'GET' });
if (!res.ok) throw new Error(`Ping failed: ${res.status}`);
}
async function heartbeatLoop() {
for (;;) {
await pingVibepulse();
await new Promise((resolve) => setTimeout(resolve, INTERVAL_MS));
}
}
heartbeatLoop().catch(console.error);