Skip to content

feat: add Jaspr SSR framework support - #13710

Merged
Meldiron merged 2 commits into
appwrite:mainfrom
jaysomani:feat/jaspr-framework
Sep 19, 2026
Merged

Meldiron merged 2 commits into
appwrite:mainfrom
jaysomani:feat/jaspr-framework

Conversation

@jaysomani

@jaysomani jaysomani commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

Adds a jaspr entry to frameworks.php, reusing the flutter-3.44 runtime image. Matches the open-runtimes helper scripts merged in open-runtimes/open-runtimes#563 (dart pub get / jaspr build / helpers/jaspr/server.sh, output at ./build/jaspr). Only an ssr adapter is defined — no static adapter and no site.php template, since neither is wired up on the open-runtimes side yet.

Screenshots

Screenshot 2026-09-19 110950 Screenshot 2026-09-19 110917 Screenshot 2026-09-19 110903 Screenshot 2026-09-19 110853

Test Plan

(Write your test plan here. If you changed any code, please provide us with clear instructions on how you verified your changes work. Screenshots may also be helpful.)

Related PRs and Issues

  • (Related PR or issue)

Checklist

  • Have you read the Contributing Guidelines on issues?
  • If the PR includes a change to an API's metadata (desc, label, params, etc.), does it also include updated API specs and example docs?

Adds a jaspr entry to frameworks.php, reusing the flutter-3.44 runtime
image. Matches the open-runtimes helper scripts merged in
open-runtimes/open-runtimes#563 (dart pub get / jaspr build /
helpers/jaspr/server.sh, output at ./build/jaspr). Only an ssr adapter
is defined — no static adapter and no site.php template, since neither
is wired up on the open-runtimes side yet.
@greptile-apps

greptile-apps Bot commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

The PR appears safe to merge, with no new actionable defects identified in the changes since the previous review.

Summary

Adds Jaspr as a supported server-rendered Sites framework.

  • Uses Flutter 3.44 as the build runtime.
  • Installs dependencies with dart pub get, builds with the runtime-provided jaspr command, and starts through the Jaspr server helper.
  • Defines only the SSR adapter and emits artifacts from ./build/jaspr.

Reviews (2) · Last reviewed commit: "fix: use preinstalled Jaspr CLI for buil..."

Comment thread app/config/frameworks.php Resolved
`dart run jaspr_cli:jaspr build` only resolves jaspr_cli from the project's
own dependency graph, and `jaspr create` does not add it to pubspec.yaml --
Jaspr treats the CLI as part of the environment. A stock Jaspr project
therefore failed to build with:

    Could not find package `jaspr_cli` or file `jaspr_cli:jaspr`

The Flutter runtime now preinstalls the CLI and puts it on PATH
(open-runtimes/open-runtimes#572), so the plain binary is the correct call.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@Meldiron
Meldiron merged commit d6b820e into appwrite:main Sep 19, 2026
49 checks passed
Meldiron added a commit to utopia-php/detector that referenced this pull request Sep 19, 2026
Jaspr now extends Flutter, so the two share the pubspec markers and the
detector's specificity tie-break picks Flutter for a pubspec that names
neither framework, whatever order the options were registered in. Flutter
claims the flutter package and Jaspr the jaspr ones, so either wins on its
own dependencies.

Package matching accepts quoted and flow-mapping YAML keys, adapter
detection parses the jaspr mapping in either YAML style and maps client
mode to static, and a jaspr server build is recognised as SSR from its
compiled app executable.

Build command is now `jaspr build`, matching the jaspr adapter merged in
appwrite/appwrite#13710 and the CLI preinstalled in the open-runtimes
flutter runtime.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants