{"id":28989834,"url":"https://github.com/codeitlikemiley/tauri-leptos-ssr","last_synced_at":"2026-01-18T02:38:42.015Z","repository":{"id":301055378,"uuid":"1003811189","full_name":"codeitlikemiley/tauri-leptos-ssr","owner":"codeitlikemiley","description":"Tauri v2 with Leptos SSR and Tailwind v4 Starter Template","archived":false,"fork":false,"pushed_at":"2025-06-19T01:52:11.000Z","size":524,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-25T00:02:15.575Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/codeitlikemiley.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}},"created_at":"2025-06-17T17:47:17.000Z","updated_at":"2025-06-20T13:36:45.000Z","dependencies_parsed_at":"2025-06-25T00:02:17.606Z","dependency_job_id":"f84d2c2a-2b1d-458b-9cfa-c474fdcc017a","html_url":"https://github.com/codeitlikemiley/tauri-leptos-ssr","commit_stats":null,"previous_names":["codeitlikemiley/tauri-leptos-ssr"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/codeitlikemiley/tauri-leptos-ssr","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeitlikemiley%2Ftauri-leptos-ssr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeitlikemiley%2Ftauri-leptos-ssr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeitlikemiley%2Ftauri-leptos-ssr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeitlikemiley%2Ftauri-leptos-ssr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codeitlikemiley","download_url":"https://codeload.github.com/codeitlikemiley/tauri-leptos-ssr/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeitlikemiley%2Ftauri-leptos-ssr/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28526583,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T00:39:45.795Z","status":"online","status_checked_at":"2026-01-18T02:00:07.578Z","response_time":98,"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":"2025-06-25T00:01:21.370Z","updated_at":"2026-01-18T02:38:41.994Z","avatar_url":"https://github.com/codeitlikemiley.png","language":"Rust","funding_links":[],"categories":["Starter Templates","Getting Started"],"sub_categories":["Unofficial","Templates"],"readme":"# Tauri Leptos SSR and Tailwind 4 Template\n\nThis uses leptos ssr embedded as external binary (sidecar) on tauri.\n\n## Getting Started\n\n1. Generate the Template\n\nNote: [cargo-generate](https://cargo-generate.github.io/cargo-generate/installation.html) or [cargo-leptos](https://github.com/leptos-rs/cargo-leptos) must be installed on your system\n\nIf it is not yet installed.\n\n```sh\ncargo install --locked cargo-generate\ncargo install --locked cargo-leptos\n```\n\n```sh\n# you will be prompted to enter project name\ncargo generate --git git@github.com:codeitlikemiley/tauri-leptos-ssr\n# or with cargo leptos\ncargo leptos new --git git@github.com:codeitlikemiley/tauri-leptos-ssr\n\n# example output:\n# you will be prompted for project name\n🤷   Project Name: pikachu\n🔧   Destination: /Users/uriah/Code/pikachu ...\n🔧   project-name: pikachu ...\n🔧   Generating template ...\n# you will be prompted to choose an operating system\n# this is important to pick the correct build script\n✔ 🤷   Operating system (windows/linux/macos) · windows\n\n# change directory to your workspace root directory\ncd {{ project-name }}\n```\n\n2. Generate Tauri Icons\n\nNote: Without Icons you will have issue with running cargo tauri `{dev | build}`\n\n```sh\n# assuming your are on the workspace root directory\ncd src-tauri\ncargo tauri icon /path/to/icon.png\n```\n\n3. Run Build Script\n\nNote: this is required at least to be run once since during tauri compilation it would look for the `server` binary listed on your [tauri.conf.json](./src-tauri/tauri-conf.json)\n\n```json\n \"externalBin\": [\n      \"../target/release/server\"\n    ]\n```\n\nDuring the First Run of `cargo tauri dev` , your `target/release/server` is not found\n\nbut if your running `cargo tauri build` that would be generated as the script `build-binaries.sh` would be run\n\n- Linux / MacOS\n\n```sh\n# if the script isnt executable yet then run\nchmod +x ./build-binaries.sh\n# Run the script\n./build-binaries.sh\n```\n\n- Windows\n\n```powershell\n.\\build-binaries.ps1\n```\n\n4. Development\n\n```sh\ncargo tauri dev\n```\n\n5. Production Build\n\n```sh\ncargo tauri build\n```\n\n## Project Structure\n\n```sh\n- app # where you add your UI, components and routes\n- server # Leptos SSR (sidecar)\n- src-tauri # add all your tauri good stuff here and commands\n- style # tailwind stuff\n```\n\nIf you need to run sidecar app process (LEPTOS SSR SERVER) on different port please check [sidecar.rs](./src-tauri/src/sidecar.rs) and update `leptos_address` and `leptos_reload_port`\n\n## Testing Your Project\n\nInstall dependencies\n\nNote: add this to your shell configuration file:\n\n- Linux/macOS: .bashrc, .zshrc\n\n```sh\n# Linux/MacOS\nexport PLAYWRIGHT_BROWSER_PATH=0\n```\n\n- Windows: PowerShell profile (typically C:\\Users\\\u003cusername\u003e\\Documents\\PowerShell\\Microsoft.PowerShell_profile.ps1)\n\n```powershell\n# edit profile\ncode $PROFILE\n# Windows PowerShell\n$env:PLAYWRIGHT_BROWSER_PATH=0\n```\n\nThis will ensure that artifacts like `Chromium`, `ffmpeg` , `webkit`, and `firefox` is scoped under `node_modules/playwright-core/.local-browsers/` instead of global cache directories on Linux/Windows or `$HOME/Library/Caches/ms-playwright/` on macOS\n\n```sh\ncd end2end\nnpm install\nnpx playwright install\n```\n\nCargo-leptos uses [Playwright](https://playwright.dev) as the end-to-end test tool. \n\nPrior to the first run of the end-to-end tests run Playwright must be installed. \nIn the project's `end2end` directory run `npm install -D playwright @playwright/test` to install playwright and browser specific APIs.\n\nTo run the tests during development in the project root run:\n```bash\n# back to project root directory\ncargo leptos end-to-end\n```\n\nTo run tests for release in the project root run:\n```bash\ncargo leptos end-to-end --release\n```\nThere are some examples tests are located in `end2end/tests` directory that pass tests with the sample Leptos app.\n\nA web-based report on tests is available by running `npx playwright show-report` in the `end2end` directory.\n\nFor Tauri Test using Web Driver [check this out](https://v2.tauri.app/develop/tests/webdriver/)\n\n\n\n## Licensing\n\nThis template itself is released under the Unlicense. You should replace the LICENSE for your own application with an appropriate license if you plan to release it publicly.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeitlikemiley%2Ftauri-leptos-ssr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodeitlikemiley%2Ftauri-leptos-ssr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeitlikemiley%2Ftauri-leptos-ssr/lists"}