搜尋套件、儲存庫與 APP 分類

套件詳情v0.23.5

jaspr

一個現代的Web框架,用於以Dart建構網站,感覺像Flutter,但支援伺服器端渲染。

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
6萬
喜歡數
773
Pub 分數
160

安裝套件

flutter pub add jaspr

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

Jaspr 是一個現代的 Dart 網頁框架,為網頁應用帶來熟悉的 Flutter 開發體驗,讓開發者能以反應式 UI 建構互動式網站。它支援伺服器端渲染,進而提升效能與搜尋引擎優化。Jaspr 設計時注重簡潔性與跨平台的一致性,可在 Web、Android、iOS、macOS、Windows 及 Linux 上順暢運作。開發者可運用 Dart 的強型別與熱重載功能,打造可擴展且易於維護的網路應用。

適用情境

  • 建構支援伺服器端渲染的Web應用程式
  • 建立跨平台網頁介面
  • 開發響應式單頁應用
  • 實施SEO友好的網站
  • 使用熱重載進行UI原型設計

主要特色

  • 伺服器端渲染支援
  • 類似 Flutter 的 widget 語法
  • 跨平台相容性
  • 熱重新載入以實現快速開發
  • 響應式狀態管理
  • 輕量且模組化的設計

適合對象

  • 熟悉 Flutter 的 Dart 開發人員
  • 尋求在 Web 應用中實現 SSR 的團隊
  • 使用 Dart 的全端開發人員
  • 需要跨平台一致 UI 的專案
  • 希望快速進行網頁應用開發的新創企業

使用建議

  • 與成熟框架相比,生態系統有限
  • 更小的社群和更少的第三方套件
  • 早期專案,API持續演進
  • 需要理解 Dart 和 Flutter 概念
  • 不適合非Dart團隊

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

Banner

sponsor

pub github tests codecov discord contributors

Website • Quickstart • Documentation • Playground • Community & Support • Benchmarks

Jaspr

A modern web framework for building websites in Dart with support for both client-side and server-side rendering, as well as static site generation.

  • 🔮 Why?: Jaspr was made with the premise to make a web-framework that looks and feels just like Flutter, but renders normal HTML and CSS.
  • 👥 Who?: Jaspr is targeted mainly at Flutter developers that want to build any type of websites (especially ones that are not suitable for Flutter Web).
  • 🚀 What?: Jaspr wants to push the boundaries of Dart on the web and server, by giving you a thought-through fullstack web framework written completely in Dart.

Want to contribute to Jaspr? Join our open Discord Community of developers around Jaspr and check out the Contributing Guide.

Core Features
  • 💙 Familiar: Works with a similar component model to Flutter widgets.
  • 🚀 Powerful: Comes with server side rendering out of the box.
  • ♻️ Easy: Syncs component state between server and client automatically.
  • ⚡️ Fast: Performs direct DOM updates only where needed.
  • 🎛 Flexible: Runs on the server, client or both with manual or automatic setup. You decide.

If you want to say thank you, star the project on GitHub and like the package on pub.dev 🙌💙

Online Editor & Playground

Inspired by DartPad, Jaspr has it's own online editor and playground, called JasprPad.

Check it out here!

You can check out the samples, take the tutorial or try out Jaspr for yourself, all live in the browser. When you want to continue coding offline, you can quickly download the current files bundled in a complete dart project, ready to start coding locally.

JasprPad is also built with Jaspr itself, so you can check out its source code to get a feel for how Jaspr would be used in a larger app.

JasprPad Screenshot

Differences to Flutter Web - Design Principles

Jaspr is an alternative to Flutter Web, when you want to build any kind of website with Dart.

The Flutter team itself has stated on multiple occasions that

Flutter Web is for building Web-Apps, not Web-Sites.

That just means that while Flutter Web is a great technology for sharing your apps across multiple platforms including the web, it may not be suited for all types of websites that you want to build.

Jaspr works by giving you the familiar look and feel of the Flutter framework, while using native web technologies, like HTML, the DOM and CSS to enable you to build all kinds of websites using Dart.

Instead of trying to mirror every little thing from Flutter, Jaspr tries to give a general Fluttery feeling by matching features where it makes sense without compromising on the unique properties of the web platform. Rather, it embraces these differences to give the best of both worlds.

Learn more.

Directories

  • /apps: Production apps built with Jaspr.
    • /jaspr_pad: Online Editor and Playground inspired by DartPad, built with Jaspr. Hosted at playground.jaspr.site.
    • /website: The Jaspr website, built with Jaspr itself. Hosted at jaspr.site.
  • /assets: Branding images and other assets for Jaspr.
  • /docs: Documentation hosted at docs.jaspr.site.
  • /examples: Examples for showcasing different Jaspr features.
  • /packages:
    • /jaspr: The core framework package.
    • /jaspr_builder: Code-generation builders for Jaspr.
    • /jaspr_cli: The command line interface of Jaspr.
    • /jaspr_content: Jaspr plugin for building content-driven sites like documentation, blogs, or marketing pages. Documented at docs.jaspr.site/content.
    • /jaspr_flutter_embed: Flutter element embedding bindings for Jaspr.
    • /jaspr_lints: A collection of lints and assists for Jaspr projects.
    • /jaspr_riverpod: An unofficial Riverpod implementation for Jaspr.
    • /jaspr_router: A router implementation for Jaspr.
    • /jaspr_serverpod: An official Jaspr integration for Serverpod.
    • /jaspr_test: A testing package for Jaspr.

所屬分類

依賴

依賴清單 10 項

原始碼儲存庫

使用此套件的專案

所在榜單