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.
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.
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.
Launch external previewNext case study
Continue with Smart Crisis Counselor
Browse the next project to see another slice of my frontend, tooling, and systems work.