Rust tree-sitter

Open-source Rust projects categorized as tree-sitter

Top 18 Rust tree-sitter Projects

tree-sitter
  1. difftastic

    a structural diff that understands syntax 🟥🟩

    Project mention: Mergiraf: Syntax-Aware Merging for Git | news.ycombinator.com | 2025-11-12

    I’m pretty sure one of the Zed founders wrote tree-sitter, so I’m sure there’s some overlap

    It’s really cool to see tree-sitter unlock so many of these use cases. I love using [difftastic] for my diffing tool to get context aware diffs. So in the example from the article, the diff would highlight the `void` and `int` changes with a heavier background of red and green respectively

    [difftastic]: https://github.com/Wilfred/difftastic

  2. Stream

    Stream - Scalable APIs for Chat, Feeds, Moderation, & Video. Stream helps developers build engaging apps that scale to millions with performant and flexible Chat, Feeds, Moderation, and Video APIs and SDKs powered by a global edge network and enterprise-grade infrastructure.

    Stream logo
  3. tree-sitter

    An incremental parsing system for programming tools

    Project mention: Show HN: Cdecl-dump: represent C declarations visually | news.ycombinator.com | 2025-12-07

    We use the tree-sitter[1] for parsing C declarations in Rizin[2] (see the "td" command, for example). See our custom grammar[3] (modified mainstream tree-sitter-c). The custom grammar was sadly necessary, due to the inability of Tree-Sitter to have the alternate roots[4].

    P.S. Please add a license for your code.

    [1] https://tree-sitter.github.io/

    [2] https://github.com/rizinorg/rizin/tree/dev/librz/type/parser

    [3] https://github.com/rizinorg/tree-sitter-c/

    [4] https://github.com/tree-sitter/tree-sitter/issues/711

  4. ast-grep

    ⚡A CLI tool for code structural search, lint and rewriting. Written in Rust

    Project mention: AST-Grep | news.ycombinator.com | 2025-09-10
  5. gritql

    GritQL is a query language for searching, linting, and modifying code.

    Project mention: CI/CD Observability with OpenTelemetry Step by Step Guide | news.ycombinator.com | 2025-06-15

    "Better" is always "for what metric" but if nothing else having the source code to the stack is always "better" IMHO even if one doesn't choose to self-host, and that goes double for SigNoz choosing a permissive license, so one doesn't have to get lawyers involved to run it

    ---

    While digging into their open source story, I did find these two awesome toys, one relevant to the otel discussion and one just neato

    https://github.com/honeycombio/refinery (Apache 2) -- Refinery is a tail-based sampling proxy and operates at the level of an entire trace. Refinery examines whole traces and intelligently applies sampling decisions to each trace. These decisions determine whether to keep or drop the trace data in the sampled data forwarded to Honeycomb.

    https://github.com/honeycombio/gritql (MIT) -- GritQL is a declarative query language for searching and modifying source code

  6. gitlogue

    A cinematic Git commit replay tool for the terminal, turning your Git history into a living, animated story.

    Project mention: Gitlogue: Turning Your Commit History into a Cinematic Terminal Experience | dev.to | 2025-12-18

    View the Project on GitHub

  7. diffsitter

    A tree-sitter based AST difftool to get meaningful semantic diffs

    Project mention: Diffsitter – A Tree-sitter based AST difftool to get meaningful semantic diffs | news.ycombinator.com | 2025-07-10
  8. zee

    A modern text editor for the terminal written in Rust

  9. InfluxDB

    InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.

    InfluxDB logo
  10. srgn

    A grep-like tool which understands source code syntax and allows for manipulation in addition to search

  11. gittype

    A CLI code-typing game that turns your source code into typing challenges

    Project mention: Show HN: GitType – A typing game that turns GitHub repos into challenges | news.ycombinator.com | 2025-09-20

    * Various bug fixes and UI improvements

    You can find the project here: https://github.com/unhappychoice/gittype

    How high can you score? Can you break 1000 points?

  12. loxcraft

    Language tooling for the Lox programming language.

  13. glyph

    My own personal code editor built with Rust + OpenGL (by zackradisic)

  14. sus-compiler

    A new Hardware Design Language that keeps you in the driver's seat

    Project mention: Revisiting "Let's Build a Compiler" | news.ycombinator.com | 2025-12-10
  15. datadog-static-analyzer

    Datadog Static Analyzer

  16. treeedb

    Generate Soufflé Datalog types, relations, and facts that represent ASTs from a variety of programming languages.

  17. tcount

    Count your code by tokens and patterns in the syntax tree. A tokei/scc/cloc alternative.

  18. chroma_code

    Make beautiful colored code listings in LaTeX with the power of TreeSitter.

  19. roberto-mcp

    Simple Code Analysis MCP server, language agnostic with code indexing and search capabilities.

    Project mention: Bridging the Gap: Turning Code Parsing Experience into AI Context | dev.to | 2025-10-03

    The project is live on GitHub and crates.io. What started as scratching my own itch has become a tool that bridges years of code analysis expertise with modern AI capabilities.

  20. tree-sitter-query-formatter

    Format Tree-sitter queries

    Project mention: Ask HN: What Are You Working On? (September 2025) | news.ycombinator.com | 2025-09-29
  21. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

Rust tree-sitter discussion

Rust tree-sitter related posts

  • Introducing GoDiffYAML Tool 💪

    2 projects | dev.to | 30 Sep 2025
  • Difftastic: A structural diff that understands syntax

    1 project | news.ycombinator.com | 11 Jul 2025
  • Difftastic: A structural diff that understands syntax

    1 project | news.ycombinator.com | 10 Jul 2025
  • Diffsitter – A Tree-sitter based AST difftool to get meaningful semantic diffs

    7 projects | news.ycombinator.com | 10 Jul 2025
  • Show HN: An open-source browser extension that integrates difftastic into GitHub

    1 project | news.ycombinator.com | 6 Jun 2025
  • DiffX – Next-Generation Extensible Diff Format

    1 project | news.ycombinator.com | 4 Jun 2025
  • Decoding Tree-sitter Playground Output For Fun

    1 project | dev.to | 9 May 2025
  • A note from our sponsor - InfluxDB
    www.influxdata.com | 23 Dec 2025
    InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now. Learn more →

Index

What are some of the best open-source tree-sitter projects in Rust? This list will help you:

# Project Stars
1 difftastic 23,739
2 tree-sitter 23,043
3 ast-grep 11,708
4 gritql 4,282
5 gitlogue 3,707
6 diffsitter 2,293
7 zee 1,735
8 srgn 869
9 gittype 804
10 loxcraft 350
11 glyph 197
12 sus-compiler 118
13 datadog-static-analyzer 114
14 treeedb 79
15 tcount 71
16 chroma_code 27
17 roberto-mcp 5
18 tree-sitter-query-formatter 0

Sponsored
Stream - Scalable APIs for Chat, Feeds, Moderation, & Video.
Stream helps developers build engaging apps that scale to millions with performant and flexible Chat, Feeds, Moderation, and Video APIs and SDKs powered by a global edge network and enterprise-grade infrastructure.
getstream.io

Did you know that Rust is
the 5th most popular programming language
based on number of references?