Leptos is a full-stack, isomorphic Rust web framework that leverages fine-grained reactivity to build declarative user interfaces.
Leptos addresses the challenge of building modern web applications by unifying server and client logic within a single Rust codebase. The framework uses fine-grained reactivity as its core mechanism, meaning that when a reactive signal changes, only the specific DOM elements that depend on it update—eliminating virtual DOM overhead. It supports multiple rendering strategies: client-side rendering in the browser, server-side rendering, and server-side rendering with hydration. The framework provides isomorphic server functions that can be called with the same syntax on both client and server but execute only on the server, allowing developers to write database queries and authentication logic alongside the components that consume them without maintaining a separate REST API.
Leptos suits teams building full-stack applications who want to write both frontend and backend in Rust and avoid the complexity of managing separate client and server codebases. It works well for projects requiring server-side rendering, streaming HTML responses, or sophisticated client-side interactivity. The framework is built on web standards and fundamentals rather than replacing them, with a router designed to work with links and forms as first-class primitives. Developers should choose Leptos if they value type safety across the full stack and want fine-grained control over reactivity without virtual DOM abstraction layers.
The project maintains active development with regular updates to its core framework and ecosystem. The maintainers actively engage with the community through documented common bugs and their fixes, suggesting ongoing refinement based on real-world usage. The framework continues to expand its capabilities, including support for HTTP streaming of both data and HTML components. Documentation is being actively developed, with a work-in-progress book alongside API documentation and examples.