Mapping a Spring Boot application in Obsidian.
How do you understand a system? How do you practically learn a new codebase? How do you explain it to someone else?
MyPicnicPlace is my small Spring Boot app for cataloguing picnic sites. It has a Redis store, image upload, and a Leaflet map frontend. I’ve been thinking about how can you efficiently understand a system, and how can you apply the same tooling to systems written in different languages.
I want the ability to “click through” any system, and look at the code, data, and logic flow.
For a Spring Boot application I wanted to map endpoint, controller, service, repository, store. I settled on Obsidian, because a vault is just a folder of Markdown files.
The idea
Every part of the system is a note. Every call is a link. Each note says what it passes, what it returns, and what it does to the data.
POST /api/upload
└─ ImageUploadController.handleFileUpload
└─ FileSystemStorageService.store
├─ Files.copy (filesystem WRITE)
└─ ImageMetadataRepository.save
└─ Redis WRITE SET image:<id>
Extracting it from the code
I did not want to draw this by hand, as it would go stale. A small Java program reads the source with JavaParser and writes the notes.
It finds:
@RestControllerand@GetMapping/@PostMapping: the endpoints- constructor injection and method calls: who calls whom
opsForValue().set(...),opsForSet().add(...),Files.copy(...): the data access, with the Redis command and key
$ java -cp javaparser-core.jar Extract.java src/main/java out.cypher docs/vault
5 endpoints, 16 methods, 4 stores, 28 edges -> out.cypher
markdown vault -> docs/vault
Each generated note sits between two marker comments. Anything I write under it survives a re-run:
<!-- generated:start -->
# PicnicRepository.findById
...
<!-- generated:end -->
## Notes
Why we read by id and not by scan goes here.
What a note looks like
The endpoint note for GET /api/picnics/{id}:
- **Accepts:** path: UUID id
- **Returns:** ResponseEntity<PicnicResponse>
- **Status codes:** 200, 404
- PicnicController.get (controller)
- passes `id` → returns `Optional<PicnicRecord>`
- PicnicRepository.findById (repository)
- Redis READ GET redis:picnic:<id> (PicnicRecord (JSON))
A configuration for different systems or languages
I would like to write a custom extractor which can be used for different languages, tools, or implementations. I’m still thinking about how to make the extractor more generic, and how to handle different languages. For example, a Python FastAPI app would have different decorators and data access patterns.
The extractor handling a peer-to-peer network traversal, or multi threading and async calls would be a challenge, but if the output was usable, and helped people learn. That would be really useful
The whole vault in Obsidian’s graph view:

Shared notes such as FileSystemStorageService.getFileUrl and the Redis key notes pull many lines towards them. The Local graph on a single endpoint note is much easier to read.
Fine tuning the graph
Components were too coarse. My first graph linked controllers to repositories. GET /api/picnics then appeared to write to Redis, because PicnicRepository.save lives in the same class. Making each public method a node fixed it.
Private helpers produced too much noise. toJson, fromJson and toResponse are not worth a node. The extractor folds a private method into the public method that calls it.
Too many links. At first the endpoint note linked to every step, so Obsidian drew a star. Now it links only to the first step, and each step links to the next. The graph reads as a chain.
Neo4j or Obsidian?
I loaded the same data into Neo4j first. Cypher is better for questions like “which endpoints eventually write to this key?”, and edges carry real labels.
Obsidian wins for reading, for writing the why next to the what, and for portability. It is plain Markdown in git. The graph view does not label the edges, so the labels live in the note text.
Next steps
It’s early days. I want to add more systems, and make the extractor take a variety of inputs, which are configuration based. Color coding a specific endpoint route would be nice, so you can see the flow of a single request through the system.