Skip to content

SQL · MyBatis/iBatis · Java · JSP

See the call graph behindyour legacy stack.

codeweb parses stored procedures, mapper XML, Java, and JSP into one traversable semantic graph — trace callers, compute impact, and export to DOT, JSON, Mermaid, or NDJSON.

Single Rust binary. Incremental re-analysis. No database required.

One loop

Analyze and trace in three commands

cargo build --release --features full
codeweb init my-project -d ./src/main/java -d ./sql
codeweb analyze && codeweb trace "process_order"

The first analyze parses everything; the next one re-parses only files whose fingerprint changed.

What it connects

One graph across four source layers

openGauss / GaussDB dialect

SQL stored procedures

Procedures, functions, packages, tables, views, triggers — with CALL/EXECUTE edges and inferred (*) nodes for DML-only references.

Read the guide

XML <select> <insert> <update> <delete>

MyBatis / iBatis mappers

Mapped statements linked to the procedures and tables their SQL bodies touch, keyed by namespace.id.

Read the guide

tree-sitter based

Java methods and classes

Method call graphs, mapper-id bridges, and SQL embedded in annotations or JDBC calls.

Read the guide

default feature jsp

JSP scriptlets

SQL in <% %> scriptlets and declarations flows into the same graph through a Java preprocessor.

Read the guide

bidirectional

Impact and lineage

Trace, inspect reachability, file-level impact, table and column lineage, and a declarative JSON query engine.

Read the guide

feature-gated serve / mcp

HTTP and MCP surfaces

A Cytoscape.js browser UI plus 13 REST endpoints, and 11 MCP tools for LLM clients — one store behind all of them.

Read the guide

Count it yourself

Surfaces in the current release

Every number is checkable against the repository of codeweb v0.9.11.

25CLI subcommandsfrom init to conflicts — see the CLI reference
13REST endpointsunder /api/v1 when built with serve
11MCP toolslifecycle, query, lineage, and column analysis
26node type tagsincluding inferred (*) variants and imports

Questions

Before you start

Which SQL dialect does the parser accept?

The bundled parser targets the openGauss / GaussDB dialect. Other vendor dialects may parse partially or fail.

Are the HTTP server and MCP server in the default build?

No. The default build includes the CLI, TUI, JSP, and Java extraction. Build with --features serve, --features mcp, or --features full to add them.

Does codeweb execute any SQL or touch a database?

No. codeweb reads source files and writes its state under .codeweb/ in the project directory. Analysis is static; dynamic SQL appears only as unresolved nodes.

Start from the getting-started guide.Build the binary, analyze the bundled demo project, and trace your first chain in minutes.