You can now visualize your Github repositories easily with this a functionality recently added on the platform. I followed the steps described in this post to test it out. The repo I'm using is small and there is no real need for this codebase visualization, but as projects grow larger I imagine this tool could be pretty useful in bigger repos.

Steps

  1. Create a Github action in your repo by adding the create-diagram.yml file below inside the .github/workflows directory so that you have: .github/workflows/create-diagram.yml
# create-diagram.yml
name: Create diagram
on:
  workflow_dispatch: {}
  push:
    branches:
      - main
jobs:
  get_data:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout code
        uses: actions/checkout@master
      - name: Update diagram
        uses: githubocto/repo-visualizer@main
        with:
          excluded_paths: "ignore,.github"
  1. Add the codebase visualization to your README by typing: ![Visualization of the codebase](./diagram.svg) and that's it! The visualization will automatically get updated as soon as you push changes to your main branch (as specified in the yml file)

Which gives you the following visualization:

Codebase