15 releases

0.2.0 Nov 30, 2024
0.2.0-rc3 Nov 28, 2024
0.2.0-rc0 Oct 22, 2024
0.2.0-gamma Sep 30, 2024
0.1.0 Apr 27, 2024

#313 in HTTP server

Download history 154/week @ 2024-08-24 826/week @ 2024-08-31 759/week @ 2024-09-07 790/week @ 2024-09-14 972/week @ 2024-09-21 1445/week @ 2024-09-28 1074/week @ 2024-10-05 1175/week @ 2024-10-12 1146/week @ 2024-10-19 708/week @ 2024-10-26 1825/week @ 2024-11-02 1037/week @ 2024-11-09 943/week @ 2024-11-16 946/week @ 2024-11-23 2192/week @ 2024-11-30 2408/week @ 2024-12-07

6,592 downloads per month
Used in 30 crates (7 directly)

MIT license

38KB
712 lines

Isomorphic web applications that run on the server to render HTML, then add interactivity in the client, need to accomplish two tasks:

  1. Send HTML from the server, so that the client can "hydrate" it in the browser by adding event listeners and setting up other interactivity.
  2. Send data that was loaded on the server to the client, so that the client "hydrates" with the same data with which the server rendered HTML.

This crate helps with the second part of this process. It provides a SharedContext type that allows you to store data on the server, and then extract the same data in the client.


lib.rs:

Isomorphic web applications that run on the server to render HTML, then add interactivity in the client, need to accomplish two tasks:

  1. Send HTML from the server, so that the client can "hydrate" it in the browser by adding event listeners and setting up other interactivity.
  2. Send data that was loaded on the server to the client, so that the client "hydrates" with the same data with which the server rendered HTML.

This crate helps with the second part of this process. It provides a SharedContext type that allows you to store data on the server, and then extract the same data in the client.

Dependencies

~1–2MB
~40K SLoC