INRIA/spoon
Spoon is a metaprogramming library to analyze and transform Java source code. :spoon: is made with :heart:, :beers: and :sparkles:. It parses source files to build a well-designed AST with powerful analysis and transformation API. observed · 2026-08-28
Health v2 · maintenance only
89/100
- Activity 99
- Release rhythm 69
- Longevity 100
Flags: no_license
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 159.5
- age_days: 4683
- days_rel: 50
- days_push: 7
- n_releases_24m: 5
Adoption not part of the score
1954 stars · 388 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
Spoon is an open-source Java metaprogramming library that parses Java source code into a well-designed AST and provides powerful APIs for analysis, rewriting, transformation, and code generation. It is an official Inria project, supports Java up to version 25, and ships with Maven/Gradle plugins and a fluent testing API for transformations.
Use cases
- analyze java source code with an ast
- refactor java code programmatically
- generate java source code from templates
- write static analysis tools for java
- apply semantic patches to java codebases
- test java code transformations
- transpile or rewrite java source files
When to choose
- you need to parse, query, or transform Java source code at the AST level
- you are building static analysis, refactoring, or code generation tools for Java
- you want a mature, well-documented library with Maven/Gradle integration and transformation testing support
When to avoid
- you need to analyze bytecode rather than source code
- you work with languages other than Java
- you only need simple linting that existing linters already cover
Facets
library · maturity active
parser developer-tools code-review testing parsers developer-tools programming-languages jvm cli cross-platform ast metaprogramming static-analysis code-transformation code-generation java source-code-analysis semantic-patching automation
6 sources
- readme: https://github.com/INRIA/spoon · fetched 2026-08-28 · 719d810efb57
- homepage: http://spoon.gforge.inria.fr/ · fetched 2026-08-29 · 5a48535d1031
- site_page: https://spoon.gforge.inria.fr/about.html · fetched 2026-08-29 · 68236adc80db
- site_page: https://spoon.gforge.inria.fr/mvnsites/spoon-core/apidocs · fetched 2026-08-29 · 26d267185ae0
- site_page: https://spoon.gforge.inria.fr/testing_quickstart.html · fetched 2026-08-29 · 3ef55a527022
- site_page: https://spoon.gforge.inria.fr/faq.html · fetched 2026-08-29 · debf5a5389a3
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| INRIA/spoon | main | 89 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem