https://github.com/jpablo/type-explorer
Code exploration via diagrams
https://github.com/jpablo/type-explorer
Last synced: about 1 year ago
JSON representation
Code exploration via diagrams
- Host: GitHub
- URL: https://github.com/jpablo/type-explorer
- Owner: jpablo
- License: apache-2.0
- Created: 2021-09-27T07:35:11.000Z (over 4 years ago)
- Default Branch: dev
- Last Pushed: 2024-09-18T07:32:59.000Z (almost 2 years ago)
- Last Synced: 2025-03-24T20:22:06.101Z (about 1 year ago)
- Language: Scala
- Homepage:
- Size: 7.26 MB
- Stars: 18
- Watchers: 3
- Forks: 0
- Open Issues: 21
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Type Explorer
Explore the types of your Scala code in a visual way.
# Install
Download the latest release from [here](https://github.com/juanpablo-r/type-explorer/releases).
Unzip the file and add `type-explorer-$version/bin` to your `$PATH`.
There are two files in the `bin` folder:
- `type-explorer`: The main executable
- `type-explorer-compile-project.sh`: A script to compile your project with semanticdb enabled.
## Requirements
- JVM 8 or higher
- SBT based project
# Compile your code
`type-explorer-compile-project.sh` will compile the project in the current directory.
```bash
❯ cd akka-persistence-jdbc
❯ type-explorer-compile-project.sh
```
To compile a single module:
```bash
❯ type-explorer-compile-project.sh module-name
```
# Run
```bash
❯ type-explorer
--------------------------------------------------
Welcome to Type Explorer!
name: type-explorer-shared, version: 0.2.0, scalaVersion: 3.3.1, sbtVersion: 1.9.6
Open your browser at http://localhost:8090/
Press Ctrl-C to stop the server
--------------------------------------------------
```
# Examples
Scala standard library.
```bash
❯ git clone https://github.com/scala/scala.git
❯ cd scala
❯ pwd
/Users/jpablo/GitHub/scala
❯ type-explorer-compile-project.sh
❯ find . -name "*.semanticdb" | wc -l
1215
```
Initial screen

Select folder containing semanticdb files and name project


Add a type to the diagram

Add all parents

# License
[License](./LICENSE)
Copyright 2024 Juan Pablo Romero and the type-explorer contributors.