Skip to content

v0.2.0 — Tree-sitter parsers, 11 languages

Choose a tag to compare

@github-actions github-actions released this 10 Apr 01:17
· 39 commits to master since this release
7b2a8eb

What's new

Tree-sitter AST parsing replaces all regex parsers. Stacklit now uses a pure Go tree-sitter runtime for accurate extraction across 11 languages.

Language support

Language Parser Extracts
Go stdlib AST imports, exports, types, struct fields
TypeScript/JS tree-sitter imports, exports, classes, interfaces, types
Python tree-sitter imports, classes, methods, type hints, entrypoints
Rust tree-sitter use/mod/crate, pub items, traits, generics
Java tree-sitter imports, public classes, method signatures
C# tree-sitter using directives, public types, methods
Ruby tree-sitter require, classes, modules, methods
PHP tree-sitter namespace use, classes, traits, methods
Kotlin tree-sitter imports, classes, objects, functions
Swift tree-sitter imports, structs, classes, protocols
C/C++ tree-sitter includes, functions, structs, typedefs

Other improvements

  • list_modules MCP tool -- agents can now discover all modules
  • MCP cache invalidation -- index reloads when stacklit.json changes on disk
  • Table view search/filter input
  • DEPENDENCIES.md replaces stacklit.mmd -- renders on GitHub
  • Real-world examples: Express.js, FastAPI, Gin, Axum (see examples/)
  • Demo GIF in README
  • Node richness tiers in graph visualization
  • HiDPI canvas rendering

Token efficiency (measured)

Project Lines of code Index tokens
Express.js 21,346 3,765
FastAPI 108,075 4,142
Gin 23,829 3,361
Axum 43,997 14,371

Install

npx stacklit init
go install github.com/glincker/stacklit/cmd/stacklit@v0.2.0

Or download a binary below.