Coder Social home page Coder Social logo

joesobo / codegraphyv2 Goto Github PK

View Code? Open in Web Editor NEW
10.0 2.0 2.0 4.43 MB

V2 of CodeGraphy. VSCode force-based graph extension for displaying file connections

License: MIT License

TypeScript 76.89% CSS 1.38% Vue 21.41% JavaScript 0.32%
extension graph hierarchy vscode connections visual-studio-code vscode-extension

codegraphyv2's Introduction

Version Downloads Rating

CodeGraphy

CodeGraphy enhances files connections inside VSCode and allows for birds eye views of each repository. It helps you to visualize code hierarchy at a glance, seamlessly navigate and explore your files, gain valuable insights via a force based node graph, and more!

CodeGraphy is an open-source extension for Visual Studio Code.

Simply this extension helps you better understand file connections. With its force-based graph you can get a completely different perspective of the architecture of your codebase and make quick informed decisions about the entire repository.

Install CodeGraphy

Install CodeGraphy for VSCode

Features

Squid Gif

  • D3 physics based graph
  • Color coding nodes
  • Multiple color palette options
  • Customizable overrides
  • File blacklist
  • and more!

New Features Added in V2

Sliding Gif

  • Favorite
  • Filter
  • Search
  • Add/Update/Delete Files and Nodes
  • Multi-line import
  • Collapsible nodes
  • Displays connections to external packages (node_modules)
  • Switch between files through graph nodes
  • Switch between different connection display modes (Interactions vs classic Directory)
  • Slide to meet your desired node depth to display
  • Switch between different node size factors (Connections vs Line count)
  • Switch between different base color palette (D3 vs Random)
  • Variety of D3 base palettes
  • Variety of D3 force sliders to change graph physics
  • Variety of options to hide / display different features within the graph
  • Analyzed table view of directory contents with color overrides
  • Entirely built on Vite & D3

Collapse Gif

Node Graph

CodeGraphy's main feature is its ability to display the file hierarchy in a completely new perspective. Look within your current directory and visualize the connections between your files. Many of the commonly used features in a normal file hierarchy apply here too!

  • Ability to open files directly from nodes
  • See the what classic directory mode looks like when graphed

screenshot

Settings

You can customize the blacklist of any files or folders you want ignored. Add this configuration to your vscode settings.json

"codegraphy.blacklist": [
    ".spec.",
    ".vscode",
    ".git",
    ".github",
    "node_modules",
    "dist",
	...
],

All the customizable settings in Codegraphy can also be added into your workspace settings.json to save state in-between sessions.

Nodes

  • connectionType: "Interaction" | "Directory"
  • nodeSize: "Lines" | "Connections"
  • showNodeModules: boolean
  • showOrphans: boolean
  • showLabels: boolean
  • showOutlines: boolean
  • showArrows: boolean
  • doCollisions: boolean
  • favorites: Array of paths to files

D3 Forces

  • chargeForce: number
  • linkDistance: number

Colors

  • nodeColor: "D3" | "Random"
  • selectedD3Color: string
  • selectedNodeColor: string
  • favoriteNodeColor: string
  • outlineColor: string

Known Issues

  • This extension is currently being developed for the JS programming language, hopefully more support will come soon.
  • This extension does not support custom import paths ex: import x from '@/src/components'

Contributing

Contributions are always welcome for CodeGraphy! Please make sure to read the Contributing Guide before making a pull request.

License

MIT

Copyright (c) 2022-present, Joe Soboleski

codegraphyv2's People

Contributors

joesobo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

codegraphyv2's Issues

How to use the CodeGraphy plugin?

I'm sorry to disturb you. I have some question in using CodeGraphy plugin. When I install this in my vscode, I don't understand how to use it. I run my code, but it is nothing happened. I would appreciate it if you can help me!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.