B H A R A T H
Software Architect
Home Work Experience Blog Books Contact
Back to work
TypeScript NPM

debugg

Comprehensive error handling library for TypeScript. Simplifies debugging with structured errors, stack traces, and context preservation for robust apps.

Error handling that doesn't suck

Created a developer-friendly error handling library that makes debugging easier with structured errors, stack traces, and context preservation.

Library author TypeScript NPM publishing

Highlights

  • Type-safe error creation with full TypeScript support
  • Automatic stack trace capture and formatting
  • Error context chaining for debugging complex flows
  • Serialization support for logging and monitoring

Outcomes

100%
Type Safety
Tiny
Bundle
NPM
Platform

Code Walkthrough

1. Creating typed errors Type coverage: 100%

Define error types with full TypeScript inference and context.

const AppError = createError('AppError', {
  code: 'string',
  context: 'object'
});

throw new AppError({ code: 'NOT_FOUND', context: { id: 123 } });

Try it on StackBlitz

Experiment with debugg in a live TypeScript environment.

Open in new tab
Next Project

Smart Crisis Counselor

Intelligent RAG-based system for crisis counseling. Uses LLMs to provide context-aware response suggestions and knowledge retrieval for sensitive scenarios.

Smart Crisis Counselor Smart Crisis Counselor

Recruiter Quick View

Key information at a glance

5+ Years Experience
India Location
Available Status

Core Stack

TypeScriptAstroJavaScriptHTMLCSS
Currently Building
KetoLens AI-powered nutrition scanner
Accent Color