sparrow_kit 1.1.0-experimental.1
sparrow_kit: ^1.1.0-experimental.1 copied to clipboard
A DOM-first Dart web framework with fine-grained reactivity, SSR, and SEO.
Sparrow Kit #
Sparrow Kit is a Dart web framework for building real HTML interfaces, with
server rendering and browser hydration. It requires Dart >=3.6.0 <4.0.0.
Version 1.1.0-experimental.1 · MIT License
Install #
dart pub add sparrow_kit:1.1.0-experimental.1
Get started #
Create web/index.html:
<div id="app"></div>
<script defer src="main.dart.js"></script>
Create web/main.dart:
import 'package:sparrow_kit/ui.dart';
import 'package:sparrow_kit/ui_browser.dart';
void main() {
mountUi(
Column(children: const [Text('Hello from Sparrow Kit')]),
);
}
Compile the browser entry point. If Python 3.7 or later is installed, serve
the web/ directory with its local HTTP server:
dart compile js web/main.dart -o web/main.dart.js
python -m http.server 8000 --directory web
Open http://localhost:8000.
Documentation #
See the UI contract and build guide for supported UI components and rendering details.