
Masala Parser
Open source javascript library to create your own parsers
6 followers
Open source javascript library to create your own parsers
6 followers
Masala Parser is an Open source javascript library to create your own parsers. You won't need theoretical bases on languages for many usages. Masala Parser shines for simplicity, variations and maintainability of your parsers.






I’m launching Masala Parser v2, a modern refresh of a 10-year-old open source parser combinator library for JavaScript and TypeScript.
Masala Parser is inspired by Haskell’s Parsec and lets you describe parsers in plain JS/TS code instead of wrestling with huge regexes or a separate grammar file.
With Masala you can:
Build type-safe custom parsers
Design small DSLs and config languages
Replace brittle regexp chains with readable, tested code
It’s plain JavaScript with strong TypeScript support, works in Node and the browser, and has been battle-tested over the years.
🔗 GitHub: https://github.com/masala/masala-parser
🎥 7-minute intro video: https://youtu.be/VNUrvWdtM2g
Happy to answer any questions and get feedback from fellow devtool nerds 👇