All Articles/Getting Started

Choosing the Right SDK for Your Platform

Compare SDKs and pick the right one for your tech stack.


Available SDKs

PlatformPackageBest For
Node.js@lognitor/nodeServer-side JS/TS — Express, Fastify, Hono, Next.js API routes, NestJS
Browser@lognitor/browserClient-side JavaScript — any web app, SPAs, vanilla JS
React@lognitor/reactReact apps — adds provider, error boundary, hooks on top of Browser SDK
PythonlognitorPython apps — Django, Flask, FastAPI
PHPlognitor/lognitorPHP apps — Laravel, Symfony, WordPress
REST APIcURL / HTTPAny language without an SDK, CI/CD scripts, testing

Decision Guide

Building a Node.js backend? Use @lognitor/node. It includes middleware for Express, Fastify, Hono, Next.js, and NestJS.

Building a React frontend? Use @lognitor/react. It wraps the Browser SDK with LognitorProvider, LognitorErrorBoundary, and the useLognitor() hook.

Building a non-React frontend? Use @lognitor/browser directly. Works with Vue, Angular, Svelte, or vanilla JavaScript.

Full-stack Next.js? Use both — @lognitor/react for client components and @lognitor/node with createNextjsWrapper for API routes.

Language not listed? Use the REST API directly. Any language that can make HTTP POST requests works.

All SDKs share the same features

Batching, retries, PII redaction, breadcrumbs, user context, timers, heartbeats, and release tracking work the same across every SDK.