Bangladeshshajidhasan/mobile-fluid-sim
A real-time fluid simulation that runs in your browser and reacts to mobile device sensors.
Featured achievements
The project's latest awards
#1 Repository of the week
#1 Repository of the week
#2 Repository of the week
mobile-fluid-sim
A real-time fluid simulation that runs in your browser and reacts to mobile device sensors. Built using the FLIP (Fluid-Implicit-Particle) technique for realistic fluid dynamics.
Try it live at fluid.sh4jid.me
Demo

About
This project implements fluid simulation techniques taught by the amazing Ten Minute Physics YouTube channel, particularly from this video.
The initial inspiration for this project came from Nicholas L. Johnson's flip-card project.
Since creating this simulation, it has become my go-to digital fidget toy. You can install it as a PWA too!
Todo
- Add more interaction options
- Change color with shake
- Control flow with finger
- Add viscosity control
Support
If you enjoy this project, consider buying me a coffee!
Development
pnpm install
pnpm dev
License
MIT License - see LICENSE file for details.
Contributing
Pull requests are welcome! Feel free to contribute improvements or new features.
Similar Projects
Discover other similar projects and AI models.
Play with fluids in your browser (works even on mobile)
React Flow | Svelte Flow | Vue Flow - Powerful open source libraries for building node-based UIs with React (https://reactflow.dev), Svelte (https://svelteflow.dev) and Vue (https://vueflow.dev). Ready out-of-the-box and infinitely customizable.
The AI Toolkit for TypeScript. From the creators of Next.js, the AI SDK is a free open-source library for building AI-powered applications and agents
⚡ Write Native with TypeScript ✨ Best of all worlds (TypeScript, Swift, Objective C, Kotlin, Java, Dart). Use what you love ❤️ Angular, React, Solid, Svelte, Vue with: iOS (UIKit, SwiftUI), Android (View, Jetpack Compose), Flutter and you name it compatible.
The next-generation file converter. Open source, fully local* and free forever.
🔵 Make TypeScript errors prettier and human-readable in VSCode 🎀