Skip to content

A minimal boilerplate for Astro / Vite with the Nannou creative framework (Rust → WASM). Supports multiple sketches + hot-reload.

License

Notifications You must be signed in to change notification settings

JulianCataldo/astro-nannou-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

6194e8e · Jan 4, 2023

History

30 Commits
Dec 29, 2022
Dec 15, 2022
Dec 29, 2022
Dec 15, 2022
Dec 29, 2022
Dec 15, 2022
Dec 29, 2022
Dec 29, 2022
Dec 29, 2022
Jan 4, 2023
Jan 4, 2023
Dec 29, 2022
Jan 4, 2023
Dec 29, 2022
Dec 29, 2022
Dec 15, 2022
Dec 15, 2022

Repository files navigation

Astro x Nannou Starter

astro-nannou-demo-1c.mov

🕹  Try it online!


# 0a. Rust language tools
open https://www.rust-lang.org/tools/install

# 0b. wasm-pack
open https://rustwasm.github.io/wasm-pack/installer

# 1. rsw = rs(rust) → w(wasm)
cargo install rsw

# 2. Install NodeJS dependencies
pnpm i

# 3a. Launch AstroJS + rsw (dev.)
pnpm dev:rsw

# 3b. Build all (prod.)
pnpm build:rsw

See also the full GitHub workflow: ./.github/workflows/release.yml.
Can be tested locally with Act, a GitHub workflow runner.

🍾  Result

astro-nannou-starter-1

References

Would be nice to have

  • Dynamic sketch switcher
  • Multiple sketch per page (without iframe)

🔗  JulianCataldo.com

About

A minimal boilerplate for Astro / Vite with the Nannou creative framework (Rust → WASM). Supports multiple sketches + hot-reload.

Topics

Resources

License

Stars

Watchers

Forks