Skip to main content

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_BY edges)
  • 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

codesteward_graph-0.5.2.tar.gz (75.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

codesteward_graph-0.5.2-py3-none-any.whl (99.2 kB view details)

Uploaded Python 3

File details

Details for the file codesteward_graph-0.5.2.tar.gz.

File metadata

  • Download URL: codesteward_graph-0.5.2.tar.gz
  • Upload date:
  • Size: 75.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for codesteward_graph-0.5.2.tar.gz
Algorithm Hash digest
SHA256 dd045da9a4060cd0eafe8243d4521685a27e2f6c062c9f2ff7f5505aac108bfd
MD5 0be288e39ba6c954e7ea023d4ecf4351
BLAKE2b-256 583c1a6e70ae89e8a6528978d2ce37d654c650554b4d6dd26e9b9fbd52eb81e8

See more details on using hashes here.

Provenance

The following attestation bundles were made for codesteward_graph-0.5.2.tar.gz:

Publisher: release.yml on Codesteward/codesteward

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file codesteward_graph-0.5.2-py3-none-any.whl.

File metadata

File hashes

Hashes for codesteward_graph-0.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e3d22def5581c2ebccfbbf86a2a887e67ec6fde0b03e79a5726ece8e9f991148
MD5 bc184a0580d5f786bc18f57a147d9e62
BLAKE2b-256 388998affb488e7731764958bdf9fe2b2588da422262832eb43414787227cf71

See more details on using hashes here.

Provenance

The following attestation bundles were made for codesteward_graph-0.5.2-py3-none-any.whl:

Publisher: release.yml on Codesteward/codesteward

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page