VIJ
The silent vigilante guarding your stack
The problem VIJ solves
Modern applications often break silently.
In production, when an error happens, developers usually have muddled/no visibility into what went wrong, where it happened, or how often it’s occurring.
Logs get lost in servers, developers see generic 500 pages, and by the time someone notices, it’s too late: data is gone, context is missing, and reproducing the issue is painful.
VIJ exists to make error visibility instant, structured, and developer-friendly.
It helps teams automatically capture, analyse, and understand their application errors in real time, without complex setup or vendor lock-in.
Here’s what it makes easier:
Instant awareness of failures
VIJ SDK captures every crash, exception, or rejected promise the moment it happens, both in browser and backend, and sends it safely to your dashboard before it’s lost. It has been built with real-world human error in mind: not just the mistakes you anticipate and wrap in try–catch blocks, but also the hidden failures, silent warnings, and edge-case exceptions that usually slip through unnoticed. The result is a truly transparent, powerful, and robust monitoring experience that gives developers complete visibility into how their applications behave in production.
Context-rich insights, not raw logs
Each error includes rich metadata: environment, runtime, browser, viewport, device info, and more, so you know exactly where and why it failed.
VIJ’s AI summaries (powered by Gemini 2.5 Flash) even explains what likely caused the issue and suggest possible fixes.
Safer, controlled error reporting
Built-in storm protection ensures that recursive, looping, or runaway crashes never overwhelm your network or database. VIJ uses a multi-layered defense system designed to keep error reporting intelligent and self-regulating. At the SDK level, it applies configurable rate limits to cap how many errors can be sent per interval, while local deduplication fingerprints identical stack traces to prevent the same issue from being reported repeatedly. When traffic still spikes, exponential backoff automatically delays subsequent transmissions, reducing network pressure and avoiding redundant sends. On the admin server side, Redis-backed rate limiting monitors each app’s ingestion frequency, returning 429 responses with adaptive Retry-After or x-vij-backoff headers to instruct the SDK when to resume. Simultaneously, a short-lived Redis cache enforces deduplication windows, collapsing bursts of identical errors into a single stored log while incrementing occurrence counters. Together, these layers form a coordinated feedback loop between client and server, keeping your VIJ Admin dashboard stable and the one-stop trustable source of truth even when everything else is breaking apart.
Real-time visibility for developers
The self-hosted dashboard visualises errors, trends, and frequency with detailed charts and filters, turning the chaos into clarity.
You can group identical errors, track recurrence counts, and quickly see what’s breaking most often.
Own your data, your way
Unlike closed SaaS tools that lock critical diagnostics behind paywalls and opaque infrastructure, VIJ is a fully open-source and self-hostable alternative to platforms like Sentry or Datadog. It gives developers the same core capabilities like automatic error capture, rich contextual metadata, aggregation, and analytics, but without usage caps, subscription tiers, or vendor dependency. Every part of VIJ, from the SDK to the admin dashboard, runs on infrastructure you own and can inspect. You decide where your data is stored, how long it’s retained, and how it integrates into your CI/CD or observability stack. Because it’s built on modern, accessible technologies like Next.js, TypeScript, and MongoDB, you can deploy it anywhere like locally, on your servers, or in the cloud, and even extend it with custom logic, visualisations, or AI integrations. VIJ is designed as a developer-first, FOSS replacement for expensive proprietary monitoring systems: lightweight enough for indie projects, but robust enough for production-scale teams that value transparency, control, and freedom from SaaS lock-in.
Challenges I ran into
This was my first time building and publishing an npm SDK package, and that in itself was a learning curve. I had to understand how to structure it properly, bundle it for both ESM and CJS, manage type definitions, and make sure it actually worked when someone installed it fresh. Getting the build and release process right took a few tries, but it taught me a lot about what goes into creating developer-facing tools.
In the beginning, the SDK was much simpler. It only logged errors that developers manually captured with try-catch blocks. That worked, but it felt like it missed the point of what a proper monitoring system should do. If a tool only sees the errors you remember to catch, it’s not much help in production. So I rethought the design and used event listeners in the browser and event handlers in Node to automatically capture everything, caught or uncaught. That shift made the SDK feel much more complete and hands-off.
Then came what was probably the hardest and most interesting challenge. After some really insightful feedback from Swarnim and Pratham, I realized there was a gaping hole: what happens if an app goes into an error storm? A recursive or runaway bug could easily emit thousands of errors per second, and logging all of them individually would overload the system. Ignoring them entirely wasn’t an option either, because those signals still matter. The solution turned into a multi-layered protection system: Redis caching to detect bursts, stacktrace fingerprinting for deduplication, rate limiting on both SDK and server, and SDK-side batching with exponential backoff. Each layer kicks in at different stages of the pipeline, working together to keep the system stable even during extreme crashes. Building that part taught me a lot about designing for resilience, not just functionality.
Cheer Project
Cheering for a project means supporting a project you like with as little as 0.0025 ETH. Right now, you can Cheer using ETH on Arbitrum, Optimism and Base.
