Episode 6 of the Gupti series from Aarambh Dev Hub. We build the frontend in Rust.
Leptos compiles to WebAssembly and runs in the browser. Same language as the backend. Same type safety. Same tooling.
What you will learn:
Why Leptos and WASM for frontend development
Project setup with Trunk build tool
App structure with leptos_router (3 routes)
Typed API client with gloo_net
Create page: form, validation, submission
Created page: shareable link, copy button
Reveal page: loading, display, countdown, burn notice
Key Leptos concepts:
Signals for reactive state (like React hooks)
Components and props
Two-way binding for forms
Client-side routing
Async actions with create_action
Dependencies explained:
leptos (core framework)
leptos_router (routing)
gloo_net (HTTP fetch)
gloo_timers (countdown)
web_sys (browser APIs)
After this episode, the app works end to end. Create secret, get link, reveal once.
Files explained:
ui/src/main.rs
ui/src/app.rs
ui/src/api/client.rs
ui/src/pages/create.rs
ui/src/pages/created.rs
ui/src/pages/reveal.rs
Full Series:
Ep 1: Project Intro + Setup
Ep 2: DTOs, Validation, Errors
Ep 3: AES-256-GCM Encryption
Ep 4: DashMap Store + TTL Cleanup
Ep 5: Axum Handlers + Routes
Ep 6: Leptos Frontend (this video)
Ep 7: Spanda Animations
Ep 8: Animated Landing Page
Ep 9: Polish + Wrap Up
Links:
Full Playlist: • Build a One-Time Secret Sharing App in Rus...
Previous Episode: • Axum Handlers, Routes, and Middleware - Bu...
Next Episode: Coming soon
Get Full Source Code (Buy Me a Coffee): https://buymeacoffee.com/aarambhdevhu...
Buy Me a Coffee: https://buymeacoffee.com/aarambhdevhub
Discord: / discord
Razorpay: https://razorpay.me/@aarambhdevhub
#rust #leptos #wasm #webassembly #frontend #programming #rustlang #webdev #tutorial #2026