Skip to content

stakwork/stakgraph

Repository files navigation

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

  • Golang
  • React
  • Ruby on Rails
  • Typescript
  • Python
  • Swift
  • Kotlin
  • Rust
  • Java
  • Angular
  • 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-language-server

go

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

rust

https://github.com/rust-lang/rust-analyzer/releases

python

pip install python-lsp-server

About

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

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors 5