{"id":46793509,"url":"https://github.com/aryprogrammer/rust-chatbot","last_synced_at":"2026-03-10T03:04:48.929Z","repository":{"id":333026355,"uuid":"1122943012","full_name":"ARYPROGRAMMER/Rust-Chatbot","owner":"ARYPROGRAMMER","description":"Using Rust for Frontend and Backend. Leptos and Rustformer Demonstrations","archived":false,"fork":false,"pushed_at":"2026-01-16T23:15:34.000Z","size":47,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-01-17T11:11:39.480Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ARYPROGRAMMER.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-25T21:57:06.000Z","updated_at":"2026-01-16T23:15:38.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/ARYPROGRAMMER/Rust-Chatbot","commit_stats":null,"previous_names":["aryprogrammer/rust-chatbot"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/ARYPROGRAMMER/Rust-Chatbot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ARYPROGRAMMER%2FRust-Chatbot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ARYPROGRAMMER%2FRust-Chatbot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ARYPROGRAMMER%2FRust-Chatbot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ARYPROGRAMMER%2FRust-Chatbot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ARYPROGRAMMER","download_url":"https://codeload.github.com/ARYPROGRAMMER/Rust-Chatbot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ARYPROGRAMMER%2FRust-Chatbot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30322654,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T01:36:58.598Z","status":"online","status_checked_at":"2026-03-10T02:00:06.579Z","response_time":106,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2026-03-10T03:04:47.261Z","updated_at":"2026-03-10T03:04:48.924Z","avatar_url":"https://github.com/ARYPROGRAMMER.png","language":"PowerShell","readme":"# Rust Chatbot\n\nA full-stack web application built with [Leptos](https://leptos.dev/) and [Actix Web](https://actix.rs/), featuring server-side rendering (SSR) with client-side hydration.\n\n## Features\n\n- 🦀 **Rust Full-Stack** - Both server and client written in Rust\n- ⚡ **Server-Side Rendering** - Fast initial page loads with SSR\n- 💧 **Hydration** - Seamless client-side interactivity via WebAssembly\n- 🎨 **SCSS Styling** - Modern styling with Sass\n- 🔄 **Reactive UI** - Fine-grained reactivity with Leptos signals\n\n## Prerequisites\n\n- [Rust](https://rustup.rs/) (nightly)\n- [cargo-leptos](https://github.com/leptos-rs/cargo-leptos): `cargo install cargo-leptos`\n- [wasm-bindgen-cli](https://rustwasm.github.io/wasm-bindgen/): `cargo install wasm-bindgen-cli`\n- WASM target: `rustup target add wasm32-unknown-unknown`\n\n## Quick Start\n\n### Automated Setup (Recommended)\n\n**Windows (PowerShell):**\n\n```powershell\n.\\scripts\\setup.ps1\n```\n\n**Linux/macOS:**\n\n```bash\nchmod +x scripts/setup.sh \u0026\u0026 ./scripts/setup.sh\n```\n\nThe setup script will:\n\n- Install Rust nightly toolchain\n- Add wasm32-unknown-unknown target\n- Install matching wasm-bindgen-cli version\n- Install cargo-leptos\n- Set up e2e test dependencies (if npm available)\n\n### Option 1: Using cargo-leptos (Recommended)\n\n```bash\ncd rust-chatbot\ncargo leptos serve\n```\n\nThis builds both WASM and server, then runs the dev server with hot reload at http://127.0.0.1:3000\n\nFor production build:\n\n```bash\ncargo leptos build --release\n```\n\n### Option 2: Manual Build\n\nIf cargo-leptos has issues, use the build scripts:\n\n**Windows (PowerShell):**\n\n```powershell\n.\\scripts\\build.ps1\n.\\target\\debug\\rust-chatbot.exe\n```\n\n**Linux/macOS:**\n\n```bash\n./scripts/build.sh\n./target/debug/rust-chatbot\n```\n\nOr run the commands manually:\n\n```bash\n# 1. Build WASM\ncargo build --lib --target wasm32-unknown-unknown --features hydrate --no-default-features\n\n# 2. Generate JS bindings\nwasm-bindgen --target web --out-dir target/site/pkg --out-name rust-chatbot target/wasm32-unknown-unknown/debug/rust_chatbot.wasm\n\n# 3. Copy CSS\ncp style/main.scss target/site/pkg/rust-chatbot.css\n\n# 4. Build server\ncargo build --bin rust-chatbot --features ssr --no-default-features\n\n# 5. Run\n./target/debug/rust-chatbot\n```\n\nThen open http://127.0.0.1:3000\n\n## Project Structure\n\n```\nrust-chatbot/\n├── scripts/\n│   ├── setup.ps1   # Windows setup script\n│   ├── setup.sh    # Unix setup script\n│   ├── build.ps1   # Windows build script\n│   └── build.sh    # Unix build script\n├── src/\n│   ├── app.rs      # Main application component\n│   ├── lib.rs      # WASM hydration entry point\n│   └── main.rs     # Server entry point\n├── style/\n│   └── main.scss   # Styles\n├── assets/         # Static assets\n├── end2end/        # Playwright e2e tests\n├── Cargo.toml      # Dependencies and metadata\n├── rust-toolchain.toml  # Rust version specifier\n└── README.md\n```\n\n## Running Tests\n\n```bash\ncd end2end\nnpm install\nnpx playwright test\n```\n\n## Troubleshooting\n\n**wasm-bindgen version mismatch:**\n\nMake sure the CLI version matches your `Cargo.toml` dependency:\n\n```bash\nwasm-bindgen --version\ncargo tree -p wasm-bindgen\n```\n\nIf they differ, install the matching CLI version:\n\n```bash\ncargo install wasm-bindgen-cli --version \u003cVERSION\u003e\n```\n\n## Author\n\n**ARYPROGRAMMER**\n\n## License\n\nThis project is released into the public domain under the [Unlicense](LICENSE).\n\nSee the [LICENSE](LICENSE) file for details.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faryprogrammer%2Frust-chatbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faryprogrammer%2Frust-chatbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faryprogrammer%2Frust-chatbot/lists"}