Back to selected work
TypeScriptNPM

debugg

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

Project spotlight

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.

100% Type Safety
Tiny Bundle
NPM Platform

Key decisions

  • 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

Build walkthrough

A closer look at the implementation thinking.

This is the part for engineering managers and technical reviewers who want signal beyond screenshots.

Step 1

Creating typed errors

Define error types with full TypeScript inference and context.

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

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

Next case study

Continue with Smart Crisis Counselor

Browse the next project to see another slice of my frontend, tooling, and systems work.

Next project