Device Intelligence for Node.js
Server-side event verification for Node.js and Express. Add visitor identification, bot detection, and smart signals to your Node.js application in minutes.
Quick Install
Add the SDK to your project with your preferred package manager.
npm install @tracio/clientyarn add @tracio/clientpnpm add @tracio/clientBasic Usage
Get up and running with the minimal setup.
import { TracioServer } from '@tracio/client/node'const tracio = new TracioServer({ apiKey: process.env.TRACIO_SECRET,})const event = await tracio.getEvent(requestId)console.log(event.products.identification.data.visitorId)Advanced Patterns
Production-ready patterns with error handling, loading states, and advanced configuration.
Express Middleware with Full Verification — Click to expand
import express from 'express'import { TracioServer } from '@tracio/client/node'const app = express()const tracio = new TracioServer({ apiKey: process.env.TRACIO_SECRET })app.use(express.json())app.post('/api/protected', async (req, res) => { const { requestId } = req.body try { const event = await tracio.getEvent(requestId) const { visitorId, confidence } = event.products.identification.data const isBot = event.products.botd.data.bot.result !== 'notDetected' if (isBot) { return res.status(403).json({ error: 'Bot detected' }) } if (confidence.score < 0.9) { return res.status(401).json({ error: 'Low confidence' }) } res.json({ visitorId, confidence: confidence.score }) } catch (err) { res.status(502).json({ error: 'Verification failed' }) }})app.listen(3000)Configuration Options
All available options for initializing and configuring the SDK.
apiKeystringYour API key from the dashboardendpointstringCustom endpoint URL for proxy-routed deploymentsregionstringData region (us, eu, ap)timeoutnumberRequest timeout in millisecondsextendedResultbooleanAdds bot detection, incognito mode flags, and smart signalslinkedIdstringCustom identifier to associate visits (e.g. user ID or session ID)Next Steps
Go deeper with the full API reference, webhook configuration, and advanced guides.
Documentation
Full API reference, integration guides, and best practices.
API Reference
Server API endpoints, request/response schemas, and error codes.
Webhooks
Configure real-time event notifications for every device identification.
Get started with Node.js
Add device fingerprinting to your Node.js application in under 5 minutes.