# Using SourceKit-LSP to visualize SourceKit-LSP 😁

**URL:** <https://forums.swift.org/t/using-sourcekit-lsp-to-visualize-sourcekit-lsp/59845>\
**Category:** SourceKit-LSP\
**Tags:** tools, sourcekit-lsp, showcase\
**Created:** [August 23, 2022, 3:54pm UTC](https://forums.swift.org/t/using-sourcekit-lsp-to-visualize-sourcekit-lsp/59845 "2022-08-23T15:54:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![flowtoolz](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/flowtoolz/32/13358_2.png) [@flowtoolz](https://forums.swift.org/u/flowtoolz)\
**Post date:** [August 23, 2022, 3:54pm UTC](https://forums.swift.org/t/using-sourcekit-lsp-to-visualize-sourcekit-lsp/59845/1 "2022-08-23T15:54:49Z")

</div>

Ben Langmuir and Alex Hoppen had shown tremendous patience multiple times in helping me get a SourceKit-LSP client off the ground. Back then, I promised to be back with visualizations of SourceKit-LSP.

I know the forum also has a dedicated place for showcases, and I won't stretch the SK-LSP category too much, so here we go ...

Edit: elements over which the mouse hovers have blue borders and blue ingoing and outgoing dependencies, but the mouse pointer is invisible in the screenshots 🙈

1. High-level overview with many dependencies:

 ![00 Sources](https://global.discourse-cdn.com/swift/original/3X/f/8/f8786ca57729abbdb02110bea71e83754630b9b9.jpeg)

1. Typing search term "Symbol" narrows it down:

 ![00b Sources Filtered by Symbol Typing](https://global.discourse-cdn.com/swift/original/3X/b/c/bc04259557b1333ac5388f5c19a1abed70995b74.png)

1. Hitting enter zooms in on the search filter result:

 ![00c Sources filtered by Symbol Result](https://global.discourse-cdn.com/swift/original/3X/1/8/18fb7786d759da4492982deb3b789c3b40dcb896.jpeg)

Of course, I'm happy to hear feedback and answer all questions. More about the app is at [codeface.io](https://www.codeface.io).

---

<div class="post-metadata">

**Author:** ![Jon\_Shier](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/jon_shier/32/921_2.png) [@Jon\_Shier](https://forums.swift.org/u/Jon_Shier)\
**Post date:** [August 23, 2022, 4:04pm UTC](https://forums.swift.org/t/using-sourcekit-lsp-to-visualize-sourcekit-lsp/59845/2 "2022-08-23T16:04:20Z")

</div>

Looks fascinating! Though I'm hesitant to try since the LSPService seems so invasive and isn't signed. Is it just a service daemon?

---

<div class="post-metadata">

**Author:** ![flowtoolz](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/flowtoolz/32/13358_2.png) [@flowtoolz](https://forums.swift.org/u/flowtoolz)\
**Post date:** [August 23, 2022, 4:07pm UTC](https://forums.swift.org/t/using-sourcekit-lsp-to-visualize-sourcekit-lsp/59845/3 "2022-08-23T16:07:49Z")

</div>

Oh that's a very good point! I'm making a note to sign the thing if possible. It's a command line tool that hosts a local Vapor webservice.

---

<div class="post-metadata">

**Author:** ![flowtoolz](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/flowtoolz/32/13358_2.png) [@flowtoolz](https://forums.swift.org/u/flowtoolz)\
**Post date:** [September 6, 2022, 5:17pm UTC](https://forums.swift.org/t/using-sourcekit-lsp-to-visualize-sourcekit-lsp/59845/4 "2022-09-06T17:17:43Z")

</div>

Here are [21 images of SourceKit-LSP from the latest Codeface version](https://www.codeface.io/blog/posts/visualizing-sourcekit-lsp-in-codeface/index.html) 😊

Btw, I made the app's infrastructure open-source:

- [LSPService](https://github.com/flowtoolz/LSPService) for providing local LSP servers via WebSocket
- [LSPServiceKit](https://github.com/flowtoolz/LSPServiceKit) for talking to LSPService from a client
- [SwiftLSP](https://github.com/flowtoolz/SwiftLSP) for working with the LSP
- And now: [SwiftNodes](https://github.com/flowtoolz/SwiftNodes) for storing stuff in graphs and applying graph algorithms

... Right now, only LSPService is well documented ...
