Integration Guides
Choose your technology stack below to get started. Our official SDKs operate asynchronously and will never block your application's critical path.
Backend SDKs
Frontend & Client
Manual / REST API
Node.js SDK Integration
Automatically log all API requests and errors in your Node.js applications.
Works with:Express.jsRaw HTTPNestJS (via Express)
1
Install the SDK
Download the lognexis-node package via npm or yarn.
npm install lognexis-node2
Add the Middleware
Initialize the client and add it before your routes.
const express = require('express');
const { expressMiddleware } = require('lognexis-node');
const app = express();
app.use(express.json());
// Add LogNexis monitoring — place BEFORE your routes
app.use(expressMiddleware({
apiKey: 'YOUR_LOGNEXIS_API_KEY',
captureBody: true,
captureHeaders: true,
excludePaths: ['/health', '/favicon.ico']
}));
app.get('/api/users', (req, res) => {
res.json({ users: [] });
});
app.listen(3000);Next Steps
- Trigger a test request to your API to verify it appears in your dashboard.
- Set up Anomaly Detection alerts to be notified of latency spikes.