stakgraph

stakgraph

A source code parser using treesitter, LSP, and neo4j, powering software knowledge graphs for AI agents.

Stars: 85

Visit
 screenshot

Stakgraph is a source code parser that utilizes treesitter, LSP, and neo4j to create software knowledge graphs for AI agents. It supports various languages such as Golang, React, Ruby on Rails, Typescript, Python, Swift, Kotlin, Rust, Java, Angular, and Svelte. Users can parse repositories, link endpoints, requests, and E2E tests, and ingest data to generate comprehensive graphs. The tool leverages the Language Server Protocol for node connections in the graph, enabling seamless integration and analysis of codebases.

README:

stakgraph

A source code parser using treesitter, LSP, and neo4j. Software knowledge graphs for AI agents.

img

parse a repo

Example of parsing sphinx-tribes and sphinx-tribes-frontend. Endpoints, Requests, and E2E tests are linked between the two repos.

export REPO_URL="https://github.com/stakwork/sphinx-tribes.git,https://github.com/stakwork/sphinx-tribes-frontend.git"
cargo run --bin index

ingest some data

Language support

  • [x] Golang
  • [x] React
  • [x] Ruby on Rails
  • [x] Typescript
  • [x] Python
  • [x] Swift
  • [x] Kotlin
  • [x] Rust
  • [x] Java
  • [x] Angular
  • [x] Svelte
  • [ ] C
  • [ ] C#

contributing

To verify locally that all tests pass before making a PR:

  • cargo test
  • USE_LSP=1 cargo test

You may need to install LSPs first:

LSP

This project uses the Language Server Protocol to connect nodes in the graph.

typescript

npm install -g typescript

npm install -g typescript-language-server

go

go install golang.org/x/tools/gopls@latest

rust

rustup component add rust-analyzer

python

pip install python-lsp-server

For Tasks:

Click tags to check more tools for each tasks

For Jobs:

Alternative AI tools for stakgraph

Similar Open Source Tools

For similar tasks

For similar jobs