# ast-grep vs Psalm

| Attribute | ast-grep | Psalm |
|---|---|---|
| **Vioscale score** | 59.5 (45% (low)) | 72.8 (33% (low)) |
| activity.commits_last_30d | 49 | - |
| adoption.dependent_repos | 177 | 15,920 |
| adoption.github_stars | 15,649 | 5,884 |
| deployment.options | `{"self_hosted":true}` | `{"self_hosted":true}` |
| description.long | A structural code search and rewriting tool that uses AST analysis to locate and modify code patterns across thousands of files, with support for linting and programmatic access via Node.js bindings. | Psalm is a free, open-source static analyzer for PHP that identifies type-related errors and bugs in codebases at their strictest settings. It can automatically fix many common issues and supports safe coding patterns used in other languages. |
| features.capabilities | `{"autofix":true,"function":"static_analyzer","deployment":"cli_local","open_source":"oss","config_model":"rule_packs","custom_rules":true,"impl_language":"Rust","pricing_model":"free","language_scope":"multi_language","editor_integration":true}` | `{"autofix":true,"metrics":true,"function":"static_analyzer","deployment":"cli_local","open_source":"oss","config_model":"config_file","custom_rules":true,"impl_language":"PHP","pricing_model":"free","language_scope":"single_language"}` |
| language.primary | Rust | PHP |
| license.spdx | MIT | MIT |
| platform.support | `{"cli":true}` | `{"cli":true}` |
| pricing | `{"type":"open_source","freeTier":true,"sourceUrl":"https://ast-grep.github.io","retrievedAt":"2026-08-14T09:19:23.517Z"}` | `{"type":"open_source","plans":[{"free":true,"name":"Open Source","description":"Free and open-source static analysis tool for PHP","contactSales":false}],"summary":"Free and open-source. Optional paid support contracts available.","freeTier":true,"sourceUrl":"https://psalm.dev/","retrievedAt":"2026-08-03T22:32:46.041Z"}` |
| pricing.free_tier | yes | yes |
| pricing.model | commercial | commercial |
| pricing.price_level | free | free |
| pricing.transparent | - | yes |
| release.cadence_days | 14 | 1 |
| release.history | `[{"url":"https://github.com/ast-grep/ast-grep/releases/tag/0.45.2","date":"2026-08-23T19:48:48Z","type":"stable","version":"0.45.2"},{"url":"https://github.com/ast-grep/ast-grep/releases/tag/0.45.1","date":"2026-08-07T15:13:34Z","type":"stable","version":"0.45.1"},{"url":"https://github.com/ast-grep/ast-grep/releases/tag/0.45.0","date":"2026-07-23T16:07:00Z","type":"stable","version":"0.45.0"},{"url":"https://github.com/ast-grep/ast-grep/releases/tag/0.44.1","date":"2026-07-04T14:06:40Z","type":"stable","version":"0.44.1"},{"url":"https://github.com/ast-grep/ast-grep/releases/tag/0.44.0","date":"2026-06-22T01:49:47Z","type":"stable","version":"0.44.0"},{"url":"https://github.com/ast-grep/ast-grep/releases/tag/0.43.0","date":"2026-05-25T17:54:30Z","type":"stable","version":"0.43.0"},{"url":"https://github.com/ast-grep/ast-grep/releases/tag/0.42.3","date":"2026-05-19T15:18:18Z","type":"stable","version":"0.42.3"},{"url":"https://github.com/ast-grep/ast-grep/releases/tag/0.42.2","date":"2026-05-10T21:58:34Z","type":"stable","version":"0.42.2"},{"url":"https://github.com/ast-grep/ast-grep/releases/tag/0.42.1","date":"2026-04-04T16:01:20Z","type":"stable","version":"0.42.1"},{"url":"https://github.com/ast-grep/ast-grep/releases/tag/0.42.0","date":"2026-03-16T03:29:14Z","type":"stable","version":"0.42.0"},{"url":"https://github.com/ast-grep/ast-grep/releases/tag/0.41.1","date":"2026-03-10T14:04:27Z","type":"stable","version":"0.41.1"},{"url":"https://github.com/ast-grep/ast-grep/releases/tag/0.41.0","date":"2026-02-22T18:57:13Z","type":"stable","version":"0.41.0"},{"url":"https://github.com/ast-grep/ast-grep/releases/tag/0.40.5","date":"2026-01-10T17:57:43Z","type":"stable","version":"0.40.5"},{"url":"https://github.com/ast-grep/ast-grep/releases/tag/0.40.4","date":"2026-01-05T01:22:05Z","type":"stable","version":"0.40.4"},{"url":"https://github.com/ast-grep/ast-grep/releases/tag/0.40.3","date":"2025-12-15T15:38:42Z","type":"stable","version":"0.40.3"},{"url":"https://github.com/ast-grep/ast-grep/releases/tag/0.40.2","date":"2025-12-14T22:38:05Z","type":"stable","version":"0.40.2"},{"url":"https://github.com/ast-grep/ast-grep/releases/tag/0.40.1","date":"2025-12-11T05:41:28Z","type":"stable","version":"0.40.1"},{"url":"https://github.com/ast-grep/ast-grep/releases/tag/0.40.0","date":"2025-11-16T04:57:10Z","type":"stable","version":"0.40.0"},{"url":"https://github.com/ast-grep/ast-grep/releases/tag/0.39.9","date":"2025-11-07T02:08:26Z","type":"stable","version":"0.39.9"},{"url":"https://github.com/ast-grep/ast-grep/releases/tag/0.39.7","date":"2025-10-27T16:06:30Z","type":"stable","version":"0.39.7"}]` | `[{"url":"https://github.com/vimeo/psalm/releases/tag/7.0.0-beta19","date":"2026-04-15T20:51:53Z","type":"prerelease","version":"7.0.0-beta19"},{"url":"https://github.com/vimeo/psalm/releases/tag/7.0.0-beta18","date":"2026-04-15T18:57:09Z","type":"prerelease","version":"7.0.0-beta18"},{"url":"https://github.com/vimeo/psalm/releases/tag/6.16.1","date":"2026-03-19T11:07:58Z","type":"stable","version":"6.16.1"},{"url":"https://github.com/vimeo/psalm/releases/tag/7.0.0-beta17","date":"2026-03-17T11:28:08Z","type":"prerelease","version":"7.0.0-beta17"},{"url":"https://github.com/vimeo/psalm/releases/tag/6.16.0","date":"2026-03-17T11:22:35Z","type":"stable","version":"6.16.0"},{"url":"https://github.com/vimeo/psalm/releases/tag/7.0.0-beta16","date":"2026-02-20T19:46:21Z","type":"prerelease","version":"7.0.0-beta16"},{"url":"https://github.com/vimeo/psalm/releases/tag/7.0.0-beta15","date":"2026-02-19T21:57:27Z","type":"prerelease","version":"7.0.0-beta15"},{"url":"https://github.com/vimeo/psalm/releases/tag/6.15.1","date":"2026-02-08T08:26:17Z","type":"stable","version":"6.15.1"},{"url":"https://github.com/vimeo/psalm/releases/tag/6.15.0","date":"2026-01-30T14:13:20Z","type":"stable","version":"6.15.0"},{"url":"https://github.com/vimeo/psalm/releases/tag/7.0.0-beta14","date":"2025-12-23T17:07:55Z","type":"prerelease","version":"7.0.0-beta14"},{"url":"https://github.com/vimeo/psalm/releases/tag/6.14.3","date":"2025-12-23T15:49:03Z","type":"stable","version":"6.14.3"},{"url":"https://github.com/vimeo/psalm/releases/tag/6.14.2","date":"2025-12-11T08:59:09Z","type":"stable","version":"6.14.2"},{"url":"https://github.com/vimeo/psalm/releases/tag/7.0.0-beta13","date":"2025-12-10T09:35:46Z","type":"prerelease","version":"7.0.0-beta13"},{"url":"https://github.com/vimeo/psalm/releases/tag/6.14.1","date":"2025-12-10T09:35:44Z","type":"stable","version":"6.14.1"},{"url":"https://github.com/vimeo/psalm/releases/tag/7.0.0-beta12","date":"2025-12-10T09:11:02Z","type":"prerelease","version":"7.0.0-beta12"},{"url":"https://github.com/vimeo/psalm/releases/tag/6.14.0","date":"2025-12-10T08:48:11Z","type":"stable","version":"6.14.0"},{"url":"https://github.com/vimeo/psalm/releases/tag/6.13.1","date":"2025-08-07T12:33:39Z","type":"stable","version":"6.13.1"},{"url":"https://github.com/vimeo/psalm/releases/tag/7.0.0-beta11","date":"2025-07-14T10:01:40Z","type":"prerelease","version":"7.0.0-beta11"},{"url":"https://github.com/vimeo/psalm/releases/tag/6.13.0","date":"2025-07-14T10:00:47Z","type":"stable","version":"6.13.0"},{"url":"https://github.com/vimeo/psalm/releases/tag/7.0.0-beta10","date":"2025-07-04T10:10:02Z","type":"prerelease","version":"7.0.0-beta10"}]` |
| security.scorecard | - | 4.5 |
| security.vulnerabilities | `{"count":0,"source":"https://advisories.ecosyste.ms/api/v1/advisories?ecosystem=npm&package_name=%40ast-grep%2Fnapi&per_page=100","last_12m":0,"max_severity":null}` | `{"count":0,"source":"https://advisories.ecosyste.ms/api/v1/advisories?ecosystem=packagist&package_name=vimeo%2Fpsalm&per_page=100","last_12m":0,"max_severity":null}` |

## Capabilities (Code Quality Tools)

| Capability | ast-grep | Psalm |
|---|:--:|:--:|
| **Core** |  |  |
| Function | Static analyzer | Static analyzer |
| Language scope | Multi-language | Single-language |
| Implementation language | Rust | PHP |
| **Capability** |  |  |
| Autofix | ✓ | ✓ |
| **Config** |  |  |
| Config model | Rule packs | Config file |
| **Extensibility** |  |  |
| Custom rules | ✓ | ✓ |
| **Deployment** |  |  |
| Deployment | CLI-local | CLI-local |
| **Delivery** |  |  |
| Editor integration | ✓ | - |
| CI / VCS gating | - | - |
| **Insight** |  |  |
| Code metrics | - | ✓ |
| **Performance** |  |  |
| Incremental / monorepo aware | - | - |
| **Licensing** |  |  |
| Open-source | OSS | OSS |
| **Commercial** |  |  |
| Pricing model | Free | Free |

*Source: Vioscale. Generated 2026-09-01T14:44:29.008Z. "-" = undocumented, not absent.*
