- This repo will help in visualizing complex data structure algorithms
- This is developed based on the my visualizing capabilities.
- This repo is made by me to help git and github learners .
- This is made with basic javaScript , CSS and html majorly .
- Interactive visualization
- Light/ Dark theme
I welcome contributions from beginners who are just getting started with Git and GitHub! If you have a new algorithm to visualize or want to improve the existing project, here is a simple step-by-step guide on how to contribute:
Click the Fork button at the top right corner of this repository's GitHub page. This will create a copy of this project in your own GitHub account.
Open your terminal and clone the forked repository to your local machine:
git clone https://github.com/YOUR-USERNAME/DSA_Visualizer.git(Make sure to replace YOUR-USERNAME with your actual GitHub username)
Navigate into the project folder, install dependencies, and start the local development server:
cd DSA_Visualizer
npm install
npm run devOpen the provided local URL (e.g., http://localhost:5173) in your browser to see the app!
Before making changes, create a new branch for your work. Giving your branch a descriptive name helps us understand what you are working on:
git checkout -b add-new-algorithmIf you are adding a new Algorithm visualization, follow these 3 exact steps:
- Register it: Open
scripts/registry.jsand add a new entry to theDSA_REGISTRYarray with your problem details (id, title, icon). - Add UI: Open
index.htmland create a new section for your algorithm (e.g.,<section id="sectionYourId" class="algo-section">...</section>). Also add the<script>tag referencing your new JavaScript file at the bottom of the body. - Add Logic: Create a
.jsfile inside thescripts/folder containing the logic for your specific visualization.
(If you are just fixing a bug or changing CSS, make the changes directly in the relevant files).
Once you've tested your changes in the browser, commit them:
git add .
git commit -m "Add [Name of Algorithm] visualization"Then, push your new branch to your forked repository on GitHub:
git push origin add-new-algorithm- Go back to your forked repository page on GitHub.
- You will see a banner prompting you to "Compare & pull request". Click it!
- Add a title and describe the changes you made (bullet points are highly encouraged!). Explain what feature you added or what bug you fixed so that we can review it easily.
Once submitted, your PR will be reviewed and merged. Thank you for contributing and happy coding!