{"id":27099319,"url":"https://github.com/medakk/spherro","last_synced_at":"2025-04-06T12:20:29.218Z","repository":{"id":35032367,"uuid":"193727966","full_name":"medakk/spherro","owner":"medakk","description":"Smooth particle hydrodynamics fluid simulator","archived":false,"fork":false,"pushed_at":"2023-03-03T01:30:14.000Z","size":1336,"stargazers_count":48,"open_issues_count":22,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-05T02:03:26.554Z","etag":null,"topics":["rust","smooth-particle-hydrodynamics","wasm","webgl"],"latest_commit_sha":null,"homepage":"https://apps.karthikkaranth.me/spherro/","language":"Rust","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/medakk.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":"2019-06-25T14:50:07.000Z","updated_at":"2025-03-04T08:11:34.000Z","dependencies_parsed_at":"2023-01-15T12:25:05.672Z","dependency_job_id":null,"html_url":"https://github.com/medakk/spherro","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/medakk%2Fspherro","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/medakk%2Fspherro/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/medakk%2Fspherro/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/medakk%2Fspherro/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/medakk","download_url":"https://codeload.github.com/medakk/spherro/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247479089,"owners_count":20945403,"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":["rust","smooth-particle-hydrodynamics","wasm","webgl"],"created_at":"2025-04-06T12:20:27.851Z","updated_at":"2025-04-06T12:20:28.895Z","avatar_url":"https://github.com/medakk.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# spherro\n[![Crates.io](https://img.shields.io/crates/v/spherro.svg)](https://crates.io/crates/spherro)\n\nA smoothed particle hydrodynamics fluid simulator. Built with rust, and compiled to wasm. Check out the demo [here](https://apps.karthikkaranth.me/spherro/).\n\n\u003cp align=\"center\"\u003e\n   \u003ca href=\"https://giant.gfycat.com/JovialBabyishBalloonfish.webm\"\u003e\u003cimg src=\"https://thumbs.gfycat.com/JovialBabyishBalloonfish-small.gif\" alt=\"gif\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n## Building\n\n### Dependencies\nAll instructions have been tested on Ubuntu 18.04, with the versions:\n* rust 1.63.0\n* wasm-pack 0.8.1\n* npm 6.9.0\n* node v10.16.0\n\n### Steps to build\n* Install:\n    * [The standard rust toolchain](https://www.rust-lang.org/tools/install)\n    * [wasm-pack](https://rustwasm.github.io/wasm-pack/installer/)\n    * [npm](https://www.npmjs.com/get-npm)\n* Clone this repo: `git clone https://github.com/medakk/spherro`\n* In the root folder of the repo, run `wasm-pack build`\n* In the `www` folder, run: \n\n```\nnpm install\nnpm run start\n```\n\nThis will start a server(defaults to http://localhost:8080) serving spherro.\n\n## Debugging\n\nRunning `cargo run --bin spherro-bin --release` starts a [kiss3d](https://docs.rs/kiss3d/0.20.1/kiss3d/)-based viewer that can be used to debug the simulator without going through the browser.\n\nRunning `cargo bench` starts a headless dambreak simulation with a fixed time step. This can be used to test performance changes.\n\n## References\n\n* [SPH Fluids in Computer Graphics](https://cg.informatik.uni-freiburg.de/publications/2014_EG_SPH_STAR.pdf), _EUROGRAPHICS 2014_\n\n## License\n\n[MIT License](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmedakk%2Fspherro","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmedakk%2Fspherro","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmedakk%2Fspherro/lists"}