# Acorn (JavaScript parser)

> A tiny, fast JavaScript parser written in JavaScript

Source: https://talira.ai/catalog/acorn-javascript-parser-ggsehwcw
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [developer tools / parsing / source code](https://talira.ai/categories/developer-tools/parsing/source-code), [languages / javascript](https://talira.ai/categories/languages/javascript)
- Licence: MIT[^2][^3]
- Pricing: Free and open source[^1]
- Pricing notes: Free and open source (MIT).
- Free tier: yes[^1]
- Backed by: [acornjs](https://talira.ai/orgs/acornjs.md)

Acorn is a small, fast JavaScript parser written in JavaScript. parse() turns source code into an abstract syntax tree in the ESTree format, for the ECMAScript version you choose or the latest it supports. Its repository also publishes acorn-loose, an error-tolerant parser, and acorn-walk, a syntax tree walker, and plugins can extend the parser. It isn't the archived Acorn Kubernetes platform.

## Links

- GitHub: https://github.com/acornjs/acorn

## Problems it solves

- parse JavaScript source into an AST from a Node.js tool
- walk a JavaScript syntax tree to find function calls or imports
- parse partly broken JavaScript without throwing on the first error

## Features

- parse() returns an ESTree abstract syntax tree
- ecmaVersion option, from a year or version number to "latest"
- acorn-loose, an error-tolerant parser
- acorn-walk, a syntax tree walker
- ESM and CommonJS builds, with TypeScript types

## Trust

Overall: 0.60 out of 1.
Signals: maintenance 0.72, adoption 0.81, momentum 0.55, community 0.86, backing 0.30, extensibility 0.00.

- last commit 21 days ago
- 18 commits in the last 90 days
- 11.5k GitHub stars
- 144 contributors
- backed by acornjs

## Sources

[^1]: https://github.com/acornjs/acorn/blob/master/README.md (checked 29 Nov 2026)
[^2]: https://github.com/acornjs/acorn/blob/master/acorn/LICENSE (checked 29 Nov 2026)
[^3]: https://github.com/acornjs/acorn/blob/master/acorn/package.json (checked 29 Nov 2026)
