{"id":21186840,"url":"https://github.com/patrickroberts/sort-viz","last_synced_at":"2025-03-14T20:18:56.505Z","repository":{"id":57366333,"uuid":"100066334","full_name":"patrickroberts/sort-viz","owner":"patrickroberts","description":"Sorting Algorithm Visualizations","archived":false,"fork":false,"pushed_at":"2017-09-12T18:38:15.000Z","size":751,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-21T13:07:05.223Z","etag":null,"topics":["demo-url","educational","javascript","library","object-oriented-programming","sort","sorting-algorithm-visualizations","sorting-algorithms","umd","visualization"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/patrickroberts.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-08-11T20:02:26.000Z","updated_at":"2022-11-08T22:05:27.000Z","dependencies_parsed_at":"2022-08-23T20:10:39.153Z","dependency_job_id":null,"html_url":"https://github.com/patrickroberts/sort-viz","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrickroberts%2Fsort-viz","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrickroberts%2Fsort-viz/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrickroberts%2Fsort-viz/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrickroberts%2Fsort-viz/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/patrickroberts","download_url":"https://codeload.github.com/patrickroberts/sort-viz/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243639558,"owners_count":20323511,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["demo-url","educational","javascript","library","object-oriented-programming","sort","sorting-algorithm-visualizations","sorting-algorithms","umd","visualization"],"created_at":"2024-11-20T18:26:28.838Z","updated_at":"2025-03-14T20:18:56.474Z","avatar_url":"https://github.com/patrickroberts.png","language":"JavaScript","readme":"# ![logo](https://i.imgur.com/Z7OeWcu.png) sort-viz\r\n\r\nSorting Algorithm Visualizations\r\n\r\n[![NPM Version][npm-image]][npm-url] [![Node Version][node-image]][npm-url] [![devDependencies][devdep-image]][npm-url] [![License][license-image]][license-url] [![Standard][style-image]][style-url] [![Github File Size][filesize-image]][filesize-url]\r\n\r\n## About\r\n\r\nThis library of utilities for visualizing sorting algorithms is intended for educational purposes. Using an object-oriented approach, each algorithm is implemented by extending the native `Array` object with an overriden `Array#sort()` generator function, for interruptable control-flow. This allows each fundamental step in the process to be displayed and facilitate learning through observation.\r\n\r\n### Contributions\r\n\r\nCurrently, this does not implement all sorting algorithms, nor does it visualize operations on auxillary data structures within any of the implementations that are not in-place.\r\n\r\nPlease help to make this project even better by submitting pull-requests with additional algorithms or support for arbitrary visualizations of operations other than `compare`, `swap`, `put`, and `key`.\r\n\r\n#### To Do\r\n\r\n- [x] `AbstractSortArray` base classes for core functionality of interruptable sorting algorithms.\r\n- [x] Support for generic, externally supplied `compare` and `key` methods.\r\n- [x] Displays the state of the array at each step.\r\n- [ ] Displays the state of auxillary data structures at each step.\r\n- [ ] Support for arbitrary extensions to interruptable operations.\r\n\r\n## Installation\r\n\r\n#### Via [`npm`][npm-url]\r\n\r\n```bash\r\n$ npm i sort-viz\r\n```\r\n\r\n#### Via [`git`][git-url]\r\n\r\n```bash\r\n$ git clone https://github.com/patrickroberts/sort-viz.git\r\n$ cd sort-viz\r\n$ npm i # install dependencies\r\n```\r\n\r\n### Demo\r\n\r\nAvailable on [Heroku][demo-url].\r\n\r\n### Documentation\r\n\r\nAvailable on [gh-pages][docs-url].\r\n\r\n\r\n## License\r\n\r\nAvailable under the MIT License\r\n(c) 2017 Patrick Roberts\r\n\r\n[npm-url]: https://www.npmjs.com/package/sort-viz\r\n[npm-image]: https://img.shields.io/npm/v/sort-viz.svg\r\n\r\n[node-image]: https://img.shields.io/node/v/sort-viz.svg\r\n\r\n[devdep-image]: https://img.shields.io/david/dev/patrickroberts/sort-viz.svg\r\n\r\n[license-url]: https://github.com/patrickroberts/sort-viz/blob/master/LICENSE\r\n[license-image]: https://img.shields.io/badge/license-MIT-blue.svg\r\n\r\n[style-url]: https://standardjs.com/\r\n[style-image]: https://img.shields.io/badge/style-standard-brightgreen.svg\r\n\r\n[filesize-url]: https://github.com/patrickroberts/sort-viz/blob/master/umd/sort.min.js\r\n[filesize-image]: https://img.shields.io/github/size/patrickroberts/sort-viz/umd/sort.min.js.svg\r\n\r\n[git-url]: https://git-scm.com/\r\n\r\n[demo-url]: https://sorts.herokuapp.com/\r\n[docs-url]: https://patrickroberts.github.io/sort-viz\r\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatrickroberts%2Fsort-viz","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpatrickroberts%2Fsort-viz","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatrickroberts%2Fsort-viz/lists"}