Developed by Zrnge | TRY IT NOW
A stunning, comprehensive, browser-based neural network simulator built entirely from scratch in vanilla JavaScript. This project serves as an educational tool to understand the inner workings, mathematics, and architectures of powerful AI models.
No external libraries (like TensorFlow or PyTorch) are used. Every matrix multiplication, forward pass, and backpropagation step is implemented by hand to demystify how these black-box models work.
- Modern UI Redesign: A beautiful "Glassmorphism" aesthetic with animated gradients, frosted-glass panels, and glowing neon accents.
- Layman Explanations: Every model now features a "TL;DR" summary, making complex math accessible to beginners.
- Cutting-Edge Models: Added interactive simulators for Diffusion Models (Stable Diffusion) and Mixture of Experts (GPT-4 architecture).
- Vanilla RNN: Learn how recurrent neural networks process sequential data.
- LSTM: Interactive visualization of Forget, Input, Cell, and Output gates.
- CNN: Draw on a canvas and watch convolutional filters extract features in real-time.
- Vanilla GAN: Observe the minimax game between a Generator and Discriminator.
- DCGAN / Pix2Pix / CycleGAN: Educational diagrams on image-to-image translation.
- StyleGAN: Advanced generation demonstrating mapping networks and AdaIN.
- Diffusion Models: Interactive slider showing Forward Diffusion (adding noise) and an animated Reverse Diffusion (denoising generation).
- Transformer: Visualizing Self-Attention mechanisms (Query, Key, Value matrices) and attention heatmaps.
- Mixture of Experts (MoE): Animated routing of tokens to specialized "Expert" networks, demonstrating how massive LLMs achieve efficiency.
- Clone or download this repository.
- Simply open
index.htmlin any modern web browser, or host it directly via GitHub Pages. - No server setup, no npm installs, no dependencies required. Everything runs locally in your browser.
- HTML5 / CSS3 (Glassmorphism, CSS Variables, CSS Animations)
- Vanilla JavaScript (ES6)
- HTML5 Canvas API for high-performance matrix visualizations.
MIT License. Feel free to use this for educational purposes, adapt it, and learn from it!