Static analysis
Go package loading, SSA, conservative call graph and effects, declaration discovery, candidate reports, and deterministic diagnostics.
Analysis architectureStable · v1.0.1 · Go 1.26.5
BatchWeaver finds supported scalar access patterns—including common N+1 shapes—proves their safety conditions, previews deterministic changes, and coalesces compatible requests without silently crossing tenant, authorization, transaction, session, cancellation, or ordering boundaries.
Apache-2.0 · No remote telemetry · Overlay-first · Unsupported patterns fail closed
$ batchweaver scan ./...
BW1001 candidate users.GetUser
$ batchweaver prove ./...
PROVEN static-loop-prefetch
ordering preserved
cancellation preserved
partition request-scoped
$ batchweaver transform diff ./...
review-only overlay; source unchanged
Quick start
Install an immutable version, validate the environment, scan, prove, preview, and run transformed tests through a Go overlay.
go install github.com/Voskan/BatchWeaver/cmd/batchweaver@v1.0.1
batchweaver version
batchweaver doctor
batchweaver config validate --file examples/configuration/batchweaver.yaml
batchweaver scan ./...
batchweaver prove ./...
batchweaver transform plan ./...
batchweaver transform diff ./...
batchweaver test -- -race ./...
Complete pipeline
Load packages, declarations, config, SSA, call graph, and effects.
Evaluate named semantic obligations. Unknown means reject.
Create content-addressed, source-anchored transformation plans.
Render deterministic diffs and compile through overlays.
Run the transformed application suite, including race checks.
Materialize only with explicit approval, backup, revert, and rollback.
Implemented today
Go package loading, SSA, conservative call graph and effects, declaration discovery, candidate reports, and deterministic diagnostics.
Analysis architectureStrategy-specific obligations, explicit assumptions, rejection witnesses, versioned certificates, and no optimistic fallback.
Proof modelStatic prefetch, runtime lowering, and content-addressed SQL bindings through build overlays, source maps, typed bridges, deterministic diffs, materialization, recovery, and revert.
Transformation guidesRequest-scoped coalescing, bounded queues, partitioning, deadlines, cancellation, deduplication, memoization, and result validation.
Runtime APIAdapter SDK, exact/composite-key PostgreSQL synthesis with bounded joins, pgx v5, go-redis v9, gqlgen, grpc-go, HTTP batching, and OpenAPI contracts.
Adapter documentationAdaptive analysis, fairness, overload control, waves, recursive batching, standalone LSP, gopls proxy, daemon, and VS Code extension.
Editor and operations guidesSafety model
Batching is refused when BatchWeaver cannot establish the required equivalence. Supported optimizations preserve the contract that matters to callers.
Developer surfaces
Scan, prove, transform, test, inspect adapters, collect profiles, run the LSP, and verify releases.
CLI command index →Declare operations and embed the reflection-free runtime in applications through six documented public packages.
Go API guide →Get live diagnostics, hovers, code lenses, previews, and optional gopls composition without implicit source writes.
Editor setup →Documentation portal
Browse tutorials, concepts, architecture, task guides, exact reference contracts, limitations, security threat models, adoption guidance, ADRs, and every runnable example.