apiwatch-sdk
v1.1.2
Published
One line middleware to monitor Express API performance
Maintainers
Readme
APIWatch SDK
A zero-dependency, non-blocking Express middleware to monitor your API's performance, latency, and error rates in real-time.
1. Get your API Key
Go to your APIWatch Dashboard at https://apiwatch404.vercel.app, sign up and create a new project, and copy your API Key (e.g., apw_live_...).
2. Installation
npm install apiwatch-sdk3. Usage
Add the middleware to your Express app.js or server.js before your routes.
CommonJS
const express = require('express');
const apiwatch = require('apiwatch-sdk');
const app = express();
app.use(apiwatch('YOUR_API_KEY'));
// ... your routesESM / TypeScript
import express from 'express';
import apiwatch from 'apiwatch-sdk';
const app = express();
app.use(apiwatch('YOUR_API_KEY'));
// ... your routesFeatures
- Zero Dependencies: Keeps your bundle light.
- Non-Blocking: Metrics are batched and sent in the background.
- Real-Time: See requests hit your dashboard instantly via WebSockets.
- TypeScript Ready: Full type definitions included.
Built with ❤️ for developers.
