Skip to content
المشاريع

حول

A web application that lets the end users create graphs and visualize algorithms on them.

تطوير الويب والتطبيقات

كيف تُقاس هذه الأرقام

ما يمكنك فعله

  • Create, move, and delete nodes and edges directly on canvas
  • Directed and undirected edges with configurable weights (-999 to 999)
  • Graph templates: path, cycle, complete, star, binary tree, grid, DAG, weighted random
  • Pan, zoom, undo/redo, keyboard shortcuts

النمو المقاس للنجوم

خلال 24 ساعة
٠
خلال 7 أيام
٠
خلال 15 يومًا
+١
خلال شهر
جارٍ جمع السجل

تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.

README.md

الأصل

Graphisual

React Doctor

An interactive graph editor and algorithm visualizer. Draw graphs, run algorithms, and step through their execution with real-time data structure visualization.

Features

Graph Editor

  • Create, move, and delete nodes and edges directly on canvas
  • Directed and undirected edges with configurable weights (-999 to 999)
  • Graph templates: path, cycle, complete, star, binary tree, grid, DAG, weighted random
  • Pan, zoom, undo/redo, keyboard shortcuts

Algorithm Visualization

  • Auto-play with adjustable speed (0.5x–4x) or manual step-through
  • Real-time trace panel showing algorithm messages and data structures (queue, stack, priority queue, distance table)
  • Visual highlighting of visited nodes, current path, and cycles

Rendering

  • Two render modes: SVG (default) and Canvas (optimized for large graphs)

PWA

  • Installable as a standalone app with offline support

Algorithms

Category Algorithm
Traversal BFS, DFS, Cycle Detection
Shortest Path Dijkstra's, Bellman-Ford, BFS Pathfinding, DFS Pathfinding
Minimum Spanning Tree Prim's

Architecture

Algorithm Adapter Pattern — Each algorithm implements an AlgorithmAdapter interface and registers itself in a plugin registry. Adding a new algorithm doesn't require modifying core code.

Multi-Renderer Abstraction — A GraphRenderer abstraction layer supports SVG and Canvas rendering behind a unified interface.

Custom Vite Plugins — The build pipeline uses 5 custom Vite plugins:

  • prerender — Pre-renders algorithm landing pages to static HTML at build time for SEO, with Zod-validated page metadata and dev server support via ssrLoadModule
  • pwa — Progressive Web App configuration with workbox service worker
  • jsonld — Injects structured data into HTML
  • bundle-analyzer — Generates bundle visualization (enabled with ANALYZE=true)
  • react-scan — Performance monitoring integration

UI layer — Controls are built on ui-sdk (headless behaviours + ARIA) with a token-driven component stylesheet; three themes (Paper, Tungsten, Blueprint) are pure token sets. /theme-playground renders every control in every theme side by side.

State Management — Zustand stores for graph data, undo/redo history (snapshot-based), and persisted user settings (theme, render mode).

Tech Stack

React 19 · React Compiler · TypeScript · Vite · Zustand · Tailwind CSS v4 · ui-sdk · Zod

Getting Started

pnpm install
pnpm dev

License

MIT

استكشف مشاريع مشابهة ومرتبطة

جارٍ التحميل…