CognitionTrue cognition in production
AI-powered observability for Node.js. Cognition doesn't just collect data — it understands your systems. It captures every error with full context, watches runtime health in real time, catches security threats before they escalate, and uses AI to correlate signals into actionable insights. It can also act, fix, and defend automatically with a human in the loop.
Install with npm i @skytells/cognition
- Error capture
- Automatic
- Runtime metrics
- Real-time
- Security scan
- Built-in
- Dependencies
- Zero
AI-Powered Capabilities - Your systems deserve intelligence, not just monitoring
Cognition brings true AI cognition to production. Error tracking, runtime health, and security scanning powered by intelligent analysis — in a single SDK with zero external dependencies. Drop it into any Node.js service and let it act, fix, and defend automatically with human-in-the-loop control.
Automatic error capture
Every uncaught exception and unhandled rejection is captured with full stack traces, breadcrumbs, and the execution context your team needs to fix issues fast.
Runtime observer
Continuously tracks event loop lag, memory and CPU usage, garbage collection pressure, and handle leaks with configurable alert thresholds.
Security scanner
Scans incoming requests for SQL injection, XSS, path traversal, and command injection. Add it as Express middleware or call it manually.
OpenTelemetry bridge
Ships OTel spans through the Cognition transport with a single config flag. Plug into your existing tracing setup without extra plumbing.
Zero dependencies
Built on Node.js built-ins only. Ships both ESM and CJS with full TypeScript declarations so you never fight your build.
Event filtering and PII
Use beforeSend to drop, redact, or transform events before they leave your process. You decide exactly what gets sent.
Breadcrumbs
Console output is captured as breadcrumbs and attached to error events. Add your own breadcrumbs with category, message, and metadata.
AI-driven analysis
AI correlates runtime signals, identifies root causes, and can trigger automated actions to act, fix, and defend while keeping human-in-the-loop approvals in control.
How it works - Three layers working together
Cognition monitors your Node.js process from three angles: errors with full execution context, continuous runtime health metrics, and proactive threat detection on every incoming request. Signals are correlated in the Skytells console so you see the full picture, not isolated events.
- Security middleware scans every incoming HTTP request for SQL injection, XSS, path traversal, and command injection. Works as Express middleware or as a standalone function.
- Runtime snapshots give you on-demand readings of memory, CPU, event loop utilization, GC stats, and active handle counts. Call them whenever you need a clear view of where your process stands.
Quick start - Up and running in under five minutes
Open the Skytells Console, create a project, grab your API key, and add Cognition.init() to your entry point. From that moment, every error, runtime metric, and security event is captured and streamed to your project dashboard.
- 1Create a project in the Skytells Console. Give it a name and copy the Project ID.
- 2Get your API key from API Keys in your project settings. Keep it private.
- 3Install and initialize by running
npm i @skytells/cognitionthen callingCognition.init()in your entry file.
AI-Powered Intelligence - Know what happened, why it happened, and what to do next
Cognition doesn't just collect data — it thinks. AI connects errors to the runtime conditions that caused them, maps threats to the request paths they targeted, and delivers a clear timeline with root-cause analysis. When something goes wrong at 3 AM, the answer, the fix, and an automated defense playbook are already waiting in your Skytells project with human approval where needed.
Proven in Production - When the Gulf region went dark, Cognition kept the lights on
On March 5, 2026, military operations in the Gulf region caused widespread data-center disruption. While single-vendor platforms struggled for hours, Skytells restored full operational capacity in under 60 minutes — and Cognition was the first line of defense.
Gulf Region Infrastructure Disruption — March 2026
Cognition's runtime observer and error capture layer detected the anomaly within seconds — before external status pages even updated. Its AI analysis engine correlated error spikes with infrastructure telemetry, pinpointed the affected failure domain, and provided the actionable intelligence that powered an automated multi-vendor failover. Zero data loss. Zero customer action required.
T+0 min
Anomaly detected by Cognition
Cognition's runtime observer flagged elevated error rates and event-loop latency spikes across Gulf-region services within seconds of the disruption.
T+10 min
Root cause correlated
AI-powered analysis correlated infrastructure telemetry with error patterns, isolating a regional connectivity failure caused by the Gulf-area incident.
T+15 min
Automated failover triggered
Cognition's actionable insights fed directly into the multi-vendor failover strategy, rerouting traffic to alternate providers with zero manual intervention.
T+55 min
Full service restored
All services confirmed at baseline. Cognition continued monitoring post-recovery, verifying stability across every restored node — zero data loss.
- Full recovery time
- <60 min
- Data loss
- 0
- Detection time (Cognition)
- 5 min
- Client continuity
- 100%
Give your production systems true cognition
Add a few lines of code and AI starts understanding your systems — capturing errors, analyzing runtime health, and detecting security threats. Intelligent insights show up in your Skytells project within seconds.
