Use peekcode

Architecture

The whole repository at five zoom levels: blocks, packages, systems, libraries and class design.

Architecture shows the repository as a whole. Pick a view at the top of the side panel. The panel also counts blocks, packages, classes, entry points and wrong-way dependencies, and when you compare, how many packages are new, changed or removed.

Structure

Folders and modules as blocks, ranked by the dependencies the engine found, with the number of packages, methods and entry points in each. Open a block to see the blocks inside, or Show sub-blocks here; Expand all opens everything, Inheritance draws inheritance lines, and dependency cycles are marked.

Open adapter to see persistence, in, cache and client, and what each depends on.

Packages

A table per package: the classes, their entry points, what they go Through, and the tables, cache keys, outbound calls and topics they reach. Used by and Uses show the links between packages. A dependency that points the wrong way (the expected direction is adapter → application → domain) is flagged as Wrong-way.

The Packages view: controllers with their routes, use cases, and the tables each one reaches
Each controller with its routes, the classes it goes through and the tables it reaches.

System

Lanes left to right: Entry points, Logic, Domain, Resources. Click a service to list its endpoints, click a resource to see its tables or calls, each with read or write. A resource many areas write to is called out, since changes there ripple widely. Open flow and Open code jump to the details.

Libraries

The libraries the build declares, grouped (framework, web, data, cache, outbound calls, validation, observability, utilities, dev and test), with how many classes use each. Click one to see exactly which files use it.

Design

A UML class diagram, for Java and Kotlin repositories: classes with their field and method signatures, and the relations between them (implements, extends, aggregation, composition, association, dependency). It also shows the patterns peekcode recognises: Template Method, Strategy, Decorator/Proxy and Adapter, each class labelled with its role. Choose the Depth, use Find class, and Go to source for the code.

Find GetCustomerReturnHistoryService and see its ports, their adapters and the repositories behind them.