Hacker ApprovedDepartments

The best parser libraries, according to hackers

7 parser libraries were recommended on Hacker News between November 2025 and November 2026. We rank them by how many separate people recommend each one, and 1 earns the Hacker Approved badge.

Top pick

The most recommended parser library with the badge. Each figure is 5 people. RecommendsCriticizes One comment

  1. Tree-sitter

    79 recommend, 15 criticize, 84% approval

    Ranked 1 of 7 by recommenders

    Gives AI agents code structure

    Recommended as a fast, incremental parser with real syntax trees and broad language support. Critics say it is limited next to an IDE and less complete than hand-written parsers.

All 7 parser libraries, ranked

Select a column heading to sort. Approval share is recommenders out of everyone who gave an opinion; the tick on each bar marks the 2 to 1 line the badge needs. Months counts the months, out of 13, in which someone recommended it.

Parser libraries ranked by the number of people who recommend them
Rank
1Tree-sitter791584%12—Approved
2Hardwood Parquet parser70100%2——
Tied 3Lark parser library for Python6186%5——
Tied 3Kaitai Struct6275%5——
Tied 3Ohm parsing library6367%2——
Tied 6nom Rust parser library5183%4——
Tied 6Tree-sitter Go port5456%1——

How we rank

Rank is the number of separate people who recommend a product in a Hacker News comment over the past year. Someone who praises the same parser library in five threads counts once.

The badge goes to parser libraries that at least 10 people recommend, with recommenders outnumbering critics at least 2 to 1, recommended in at least 4 of the 13 months.

Rankings are never for sale. We may earn a commission when you buy through our links. It never changes the order.