5 unstable releases

0.3.0 Sep 2, 2023
0.2.0 Jul 16, 2023
0.1.4 Jan 16, 2023
0.1.3 Jan 15, 2023
0.1.1 Jan 15, 2023

#28 in #ssr

Download history 4/week @ 2024-02-05 10/week @ 2024-02-12 9/week @ 2024-02-19 24/week @ 2024-02-26 19/week @ 2024-03-04 35/week @ 2024-03-11 19/week @ 2024-03-18 71/week @ 2024-03-25 45/week @ 2024-04-01 19/week @ 2024-04-08 15/week @ 2024-04-15

151 downloads per month
Used in 7 crates (6 directly)

MIT/Apache

49KB
1.5K SLoC

Stellation

A framework experience for Yew.

Stellation provides a development stack with:

  1. Tooling around Server-side Rendering Support.
  2. An easy-to-use, SSR-transparent RPC Implementation.
  3. A development server that automatically rebuild upon changes.
  4. A single binary distribution with embedded frontend.

Quickstart Guide

  1. Install required tools

    Stellation uses the following tools:

    • Trunk
    • cargo-generate
    • cargo-make

They can be installed with cargo install trunk cargo-generate cargo-make

  1. Create project

    Run cargo generate futursolo/stellation-templates and follow the prompt.

  2. Start development server

    Run cargo make --quiet start in the project directory.

    (This may take a couple minutes when the project is building for the first time.)


lib.rs:

Bridge between the frontend and backend.

This module is a RPC implementation that facilitates communications between frontend and backend.

It supports the following routines:

Bridge has 2 connection methods local and remote. When a LocalLink is used, routines will be connected with the local method and can process requests with resolvers. This can be used for server-side rendering and processing requests from a bridge connected with the remote method. If the FetchLink is used, it will send the request to the bridge endpoint which will process the routine at the server-side. This is usually used for client-side rendering.

You can check out the example for how to implement resolvers.

Dependencies

~12–16MB
~279K SLoC