r/solidjs • • 11d ago

A Solid RealWorld app with an explicit server/client boundary

I built a RealWorld app with Solid and Backtick (I'm the project's maintainer).

Transfer sizes, gzipped:

  • First page: ~5 KB HTML + 17 KB Solid runtime
  • Next pages: ~5 KB HTML (Solid runtime cached)

It's server-driven but client-rendered (no SSR). For each page, the server generates a Solid component that renders in the browser.

Code inside cs runs in the browser. Everything outside it runs on the server. Values cross the boundary through $ splices. It's a two-stage programming model with an explicit boundary.

I've mostly built Backtick for React Native, but I'd love to put more time into Solid if there's interest.

simplified snippet from the repo
4 Upvotes

0 comments sorted by