Skip to content

Rewrite frontend in Rust + ratatui + WASM (Ratzilla) ✨#2

Open
mkljczk wants to merge 1 commit into
hakierspejs:masterfrom
mkljczk:claude/hakierspejs-dday-pr-rylsw1
Open

Rewrite frontend in Rust + ratatui + WASM (Ratzilla) ✨#2
mkljczk wants to merge 1 commit into
hakierspejs:masterfrom
mkljczk:claude/hakierspejs-dday-pr-rylsw1

Conversation

@mkljczk

@mkljczk mkljczk commented Jul 23, 2026

Copy link
Copy Markdown
Member

The landing page is now a terminal UI rendered in the browser: a Rust crate in frontend/ draws the whole page with ratatui through Ratzilla's DOM backend, compiled to wasm32-unknown-unknown. Same behaviour as the old index.html — pre-open countdown to registration, countdown to the event once open, the /api/count seats gauge with waitlist/full states, the how-to steps and the info cells — and memory safe.

Details

  • Build artifacts committed: frontend/dist (index.html shell + wasm-bindgen output) is committed and embedded by the Go binary, so go build, CI and the Docker image need no Rust toolchain. Rebuild with make frontend (scripts/build-frontend.sh).
  • Server: the two asset paths are whitelisted by exact name (serveStatic still takes no path input, so STATIC_DIR cannot leak), and the CSP gains 'wasm-unsafe-eval' so the browser may compile the module.
  • CI: gains a frontend job (fmt + clippy + wasm build).

🤖 Generated with Claude Code

https://claude.ai/code/session_01QPCMzG6nxf19QugmD8jPix

The landing page is now a terminal UI rendered in the browser: a Rust
crate in frontend/ draws the whole page with ratatui through Ratzilla's
DOM backend, compiled to wasm32-unknown-unknown. Same behaviour as the
old index.html — pre-open countdown to registration, countdown to the
event once open, the /api/count seats gauge with waitlist/full states,
the how-to steps and the info cells — and memory safe.

The built artifacts (frontend/dist: index.html shell + wasm-bindgen
output) are committed and embedded by the Go binary, so go build, CI
and the Docker image need no Rust toolchain. Rebuild with
'make frontend' (scripts/build-frontend.sh).

Server: the two asset paths are whitelisted by exact name (serveStatic
still takes no path input, so STATIC_DIR cannot leak), and the CSP
gains 'wasm-unsafe-eval' so the browser may compile the module. CI
gains a frontend job (fmt + clippy + wasm build).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01T3hKpyUVosNCRUZVJnB883
@mkljczk
mkljczk requested a review from Copilot July 23, 2026 17:57

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants