jaspr
0.23.5, released 8 weeks ago by schultek.dev
A web framework for building websites in Dart with Flutter-like syntax and server-side rendering.
What it does
Jaspr allows developers to build web applications using a component model that feels like Flutter, supporting both client-side and server-side rendering, automatic state syncing, and optimized DOM updates.
AI-written summary of version 0.23.5, based on the package's README and metadata. Report an inaccuracy
Use it when
- You want to build websites in Dart with a Flutter-like component model.
- You need server-side rendering (SSR) for web applications written in Dart.
- You prefer writing web layouts using component composition and HTML element components.
Skip it when
- You are building a standard mobile or desktop application rather than a website.
- You require a vast out-of-the-box library of pre-styled Material or Cupertino components.
Strengths
- Familiar component model for Flutter developers.
- Built-in server-side rendering and automatic state sync between server and client.
- Optimized DOM updates and CLI tool support with hot reloading.
Weaknesses
- Does not include pre-styled Material or Cupertino components.
- Styling relies on CSS/stylesheets rather than property-based widget styling.
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 10
Activate the jaspr_cli globally and use `jaspr create` to scaffold a new project.
div([
h1([text('Welcome to Jaspr')]),
p([text('This is some basic html!')]),
]);Alternatives
Packages that do the same job and could replace jaspr.
- a2ui_flutter
Renders AI-generated A2UI surfaces as Flutter widgets.
84Compare - yaru
Flutter widgets and theme following the Yaru design language for desktop and web.
83Compare - velocity_x
A minimalist Flutter framework for rapidly building custom designs inspired by Tailwindcss and SwiftUI.
64Compare - family_bottom_sheet
Multi-page bottom sheet library with internal navigation and smooth transitions.
60Compare
Works with
Packages commonly used together with jaspr: ones it builds on, ones built on it, and its own family.
- shelfjaspr depends on itComposable web server middleware for Dart
- shelf_staticjaspr depends on itServe static files over HTTP with the shelf package
- htmljaspr depends on itA Dart implementation of an HTML5 parser for strings and bytes.
- shelf_proxyjaspr depends on itA shelf handler for proxying HTTP requests to another server.
- hotreloaderjaspr depends on itAutomatic hot code reloader for Dart projects that applies file changes to the running process.
- shelf_gzipjaspr depends on itShelf middleware to GZIP encode HTTP responses.
- universal_webjaspr depends on itWrapper that allows importing web APIs in non-web environments
- jaspr_lintsSame familyA collection of lints and code assists for Jaspr projects.