thanos Svelte Themes

Thanos

perfectly balanced sorting visualizer

ThanosSort

Interactive, lightweight visualization of the "Thanos Sort" idea: the app repeatedly removes roughly half of the array until perfectly balanced; as all things should be.

https://farzanuddin.github.io/thanos/

Objective

Just a small focused interactive visualization built on Svelte and Vite. Kind of a gimmick, but also an opportunity to just explore Svelte docs.

Features

  • Interactive visualizer: Click Snap to balance step-by-step until the array is sorted.
  • Reset & controls: Regenerate arrays and re-run the demo with a single click.
  • Small footprint: No heavy libraries — built with Svelte and a tiny icon set.

Tech Stack

Technology Version Role
Svelte ^4.0.0 UI framework
Vite ^4.4.9 Build tool & dev server
@sveltejs/vite-plugin-svelte ^2.0.0 Svelte integration for Vite

Getting Started

  1. Install dependencies:
npm install
  1. Start the dev server:
npm run dev

Top categories

Loading Svelte Themes