facebookarchive/pfff
Tools for code analysis, visualizations, or style-preserving source transformation. observed · 2026-08-28
Health v2 · maintenance only
10/100
- Activity 0
- Release rhythm 8
- Longevity 100
Flags: archived 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: n/a
- age_days: 5823
- days_rel: n/a
- days_push: 2716
- n_releases_24m: 0
Adoption not part of the score
2437 stars · 203 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
pfff is a set of OCaml tools and APIs for static analysis, code visualization, code navigation, and style-preserving source-to-source transformations like refactoring. It includes tools such as sgrep (syntactical grep), spatch (syntactical patch), codemap, and codegraph, with good support for C, Java, JavaScript, PHP, and OCaml.
Use cases
- find precise code patterns across a codebase with a syntactical grep
- apply structural patches to refactor source code while preserving style
- visualize and navigate source code dependencies
- index a codebase and query its structure
- generate Emacs tags for code navigation
- lint-like bug finding in PHP or other supported languages
When to choose
- you need structural, syntax-aware code search or patching for C, Java, PHP, or JavaScript
- you want to embed language parsers and analysis APIs into your own OCaml tooling
- you need dependency visualization for a legacy codebase
When to avoid
- you need actively maintained tooling - the project was archived in 2019 and is read-only
- you want modern language support or up-to-date parsers
- you need a pure grep/patch replacement without building OCaml dependencies
Facets
library · maturity abandoned
parser static-site-generator search-engine developer-tools code-review developer-tools parsers programming-languages cross-platform static-analysis code-visualization refactoring sgrep spatch ocaml archived static analysis linux macos
2 sources
- readme: https://github.com/facebookarchive/pfff · fetched 2026-08-28 · a423e6b07e8e
- homepage: http://github.com/facebook/pfff/wiki/Main · fetched 2026-08-29 · 759c702c8fc9
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| facebookarchive/pfff | main | 10 |
For agents
markdown · JSON · MCP: product_card(name="facebookarchive/pfff")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem