Repository navigation
Dars Framework v1.8.7(DEPRECATED)
For security reasons all versions behind 1.8.8 are deprecated due to critical vulnerabilities in the dars.min.js runtime, also DSC(Dars server components) are in apha so in 1.8.8 stable release they are not available.
Release Notes v1.8.7
Dars Server Components & FastAPI Integration
Installation
pip install --upgrade dars-frameworkWhat's New
Dars Server Components
v1.8.7 introduces first-class Server Components, allowing individual components to be fully rendered on the server while maintaining client-side interactivity.
- Simple Usage: Just add
use_server=Trueto any component inheriting from the baseComponentclass. - Full Support: All standard Dars components (Text, Button, Container, etc.) support server-side rendering out of the box.
- Seamless Hydration: Components are rendered on the backend (FastAPI) and hydrated on the client, preserving events and state.
Button("Server Rendered Button", use_server=True, on_click=...)FastAPI Integration Plugin
The new version of create_dars_app plugin provides tight integration with FastAPI, making it easier than ever to build full-stack SSR applications.
- Backend-Driven: The Dars frontend is served and managed by your FastAPI backend.
- API Co-location: Define your API routes and your UI components in the same project structure.
SSR Project Template
Scaffold a complete SSR project and then add Server Components support in seconds:
dars init my-app --type ssrThis template sets up:
- A FastAPI backend using
create_dars_app. - A Dars frontend configured for SSR.
- Best practices for project structure and deployment.