Multi-language structural code graph builder — 13 tree-sitter parsers + Neo4j writer
Project description
codesteward-graph
Multi-language structural code graph builder — parses source repositories into
LexicalNode + edge data and writes to Neo4j or JanusGraph.
Part of the Codesteward MCP project. For full documentation, setup guides, and the MCP server, see the main repository.
What it does
- Parses 13 languages via tree-sitter AST (TypeScript, JavaScript, Python, Java, Go, Rust, PHP, C#, Kotlin, Scala, C, C++); COBOL via regex
- Extracts functions, classes, imports, call graphs, inheritance chains, and auth guard
annotations (
GUARDED_BY/PROTECTED_BYedges) - Resolves cross-file call relationships in a single post-parse pass
- Writes to Neo4j or JanusGraph with tenant + repo namespacing; operates in stub mode without a graph backend
Install
# Core languages (TypeScript, JavaScript, Python, Java)
uv add "codesteward-graph[graph]"
# All 14 languages
uv add "codesteward-graph[graph-all]"
# JanusGraph backend (alternative to Neo4j)
uv add "codesteward-graph[janusgraph]"
# Without tree-sitter (COBOL only; all other parsers will raise ImportError)
uv add codesteward-graph
Quick usage
import asyncio
from codesteward.engine.graph_builder import GraphBuilder
async def main():
builder = GraphBuilder() # stub mode — no graph backend
summary = await builder.build_graph(
repo_path="/path/to/repo",
tenant_id="local",
repo_id="my-repo",
)
print(summary)
asyncio.run(main())
License
Apache License 2.0 — Copyright (c) 2026, bitkaio LLC
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file codesteward_graph-0.5.0.tar.gz.
File metadata
- Download URL: codesteward_graph-0.5.0.tar.gz
- Upload date:
- Size: 74.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
df2f160cf1942da3f75b06e44772466f9cd26d6d8dd83136ba9292c7544b5ea4
|
|
| MD5 |
19181d5e2f0e6f0a30de8e9eee488965
|
|
| BLAKE2b-256 |
3c65aaf7d5344071e4550541399e4adeb49cd6b4c53fd982e8fb46fe88b843c4
|
Provenance
The following attestation bundles were made for codesteward_graph-0.5.0.tar.gz:
Publisher:
release.yml on Codesteward/codesteward
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
codesteward_graph-0.5.0.tar.gz -
Subject digest:
df2f160cf1942da3f75b06e44772466f9cd26d6d8dd83136ba9292c7544b5ea4 - Sigstore transparency entry: 1310005713
- Sigstore integration time:
-
Permalink:
Codesteward/codesteward@f2b925c3bfbfadc312042d09fb3971ecf3b76532 -
Branch / Tag:
refs/tags/v0.5.0 - Owner: https://github.com/Codesteward
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@f2b925c3bfbfadc312042d09fb3971ecf3b76532 -
Trigger Event:
push
-
Statement type:
File details
Details for the file codesteward_graph-0.5.0-py3-none-any.whl.
File metadata
- Download URL: codesteward_graph-0.5.0-py3-none-any.whl
- Upload date:
- Size: 98.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ac1ffef5b2f94653197fae018068847e333aba1bcacb50b4b6bd45e7563bad3f
|
|
| MD5 |
0d6ba2d9c208210ab031618bfd79a4a7
|
|
| BLAKE2b-256 |
63609020d2c23c90c711de088062812792912a8642573218b1c6c787f4e9001c
|
Provenance
The following attestation bundles were made for codesteward_graph-0.5.0-py3-none-any.whl:
Publisher:
release.yml on Codesteward/codesteward
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
codesteward_graph-0.5.0-py3-none-any.whl -
Subject digest:
ac1ffef5b2f94653197fae018068847e333aba1bcacb50b4b6bd45e7563bad3f - Sigstore transparency entry: 1310005755
- Sigstore integration time:
-
Permalink:
Codesteward/codesteward@f2b925c3bfbfadc312042d09fb3971ecf3b76532 -
Branch / Tag:
refs/tags/v0.5.0 - Owner: https://github.com/Codesteward
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@f2b925c3bfbfadc312042d09fb3971ecf3b76532 -
Trigger Event:
push
-
Statement type: