{"id":18695053,"url":"https://github.com/rybla/leptos-experiment-1","last_synced_at":"2025-08-31T20:10:29.729Z","repository":{"id":219999384,"uuid":"722643006","full_name":"rybla/leptos-experiment-1","owner":"rybla","description":null,"archived":false,"fork":false,"pushed_at":"2023-11-23T15:35:13.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-07-22T01:02:14.822Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/rybla.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}},"created_at":"2023-11-23T15:35:11.000Z","updated_at":"2023-11-23T15:35:18.000Z","dependencies_parsed_at":"2024-02-06T04:15:36.150Z","dependency_job_id":null,"html_url":"https://github.com/rybla/leptos-experiment-1","commit_stats":null,"previous_names":["riib11/leptos-experiment-1","rybla/leptos-experiment-1"],"tags_count":0,"template":false,"template_full_name":"srid/leptos-fullstack","purl":"pkg:github/rybla/leptos-experiment-1","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rybla%2Fleptos-experiment-1","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rybla%2Fleptos-experiment-1/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rybla%2Fleptos-experiment-1/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rybla%2Fleptos-experiment-1/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rybla","download_url":"https://codeload.github.com/rybla/leptos-experiment-1/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rybla%2Fleptos-experiment-1/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273032934,"owners_count":25034067,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-31T02:00:09.071Z","response_time":79,"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":"2024-11-07T11:13:44.833Z","updated_at":"2025-08-31T20:10:29.696Z","avatar_url":"https://github.com/rybla.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# leptos-fullstack\n\nA Nix template for [full-stack web apps](https://srid.ca/nojs) in Rust using Leptos. Tech used:\n\n- [Leptos](https://leptos.dev/) full-stack framework \n    - [server functions](https://docs.rs/leptos/latest/leptos/attr.server.html)\n    - [ssr + hydration](https://leptos-rs.github.io/leptos/ssr/index.html)\n- [Axum](https://github.com/tokio-rs/axum) as backend framework\n- [Tailwind CSS](https://tailwindcss.com/) for styling\n- Build system\n  - [cargo-leptos](https://github.com/leptos-rs/cargo-leptos)\n  - [Nix Flakes](https://zero-to-flakes.com/) + [crane](https://github.com/ipetkov/crane)\n- Autoformatting using `rustfmt` and `leptosfmt`\n\n## Running locally\n\nEnter the Nix shell, and run:\n\n```\n# To spin up the dev server\njust watch\n\n# To run tests\njust test\n```\n\n## Building\n\n```\nnix build\n\n# To build the rust doccs\nnix build .#leptos-fullstack-docs\n```\n\nYou can also `nix run` the app directly.\n\n## Using as flake-parts module\n\nImport `./nix/flake-module.nix` from this repos as a flake-parts module. For an example project, see [nix-browser](https://github.com/juspay/nix-browser).\n\nIn the future, we might create a standalone flake-parts module for Leptos.\n\n## Notes\n\n### Single-crate model\n\nThis repo uses the single-crate model primarily because the backend-common-frontend split (prior to PR #5; similar to [start-axum-workspace](https://github.com/leptos-rs/start-axum-workspace) template) is not suitable when using [server functions](https://docs.rs/leptos/latest/leptos/attr.server.html) in leptos. Consequently, expect a bunch of `cfg` attributes or macros that make backend-only code conditional upon the `ssr` flag (which is set when compiling the crate for the backend, as opposed to the wasm frontend, which uses `csr`)\n\n## Credits\n\nThe Rust code is largely based on [start-axum](https://github.com/leptos-rs/start-axum). Also, credit goes [to @benwis](https://github.com/benwis/benwis_leptos/blob/928ea7e7c20a86be91ad27e75cf297a2fbef681d/flake.nix#L148-L153) for pointers to how `crane` can be made to work with `cargo-leptos`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frybla%2Fleptos-experiment-1","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frybla%2Fleptos-experiment-1","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frybla%2Fleptos-experiment-1/lists"}