Google Closure Compiler and JSDoc Type Expression Parser

JSON →
library 0.11.0 ·javascript maintenance
verified May 27, 2026

Catharsis is a JavaScript library designed for parsing and manipulating type expressions used by Google Closure Compiler and JSDoc. It provides robust capabilities to convert these expressions into a structured Abstract Syntax Tree (AST), and then back into a string or a human-readable description. The current stable version is 0.11.0, last published about a year ago, indicating an irregular or maintenance-focused release cadence. Key differentiators include its high accuracy, backed by a Peggy grammar and a comprehensive test suite, and its flexibility in handling both standard Closure Compiler syntax and JSDoc-specific extensions like `string[]` for `Array<string>`. This library is primarily used by tools and systems that need to interpret or generate type annotations, offering programmatic access to the structure and meaning of complex type expressions.

total hits 21
actors 8 distinct systems
last hit 5d ago AhrefsBot
MetaBot
4
ByteDance
3
GPTBot
2
Script
1
ChatGPT-User
1
Search engines
1

top countries 🇺🇸 United States · 🇩🇪 Germany · 🇸🇬 Singapore · 🇫🇷 France · 🇨🇦 Canada