Skip to content

metacall/metassr

Warning
this project under development, Using it is your responsibility.

MetaSSR

SSR framework for React.js built on MetaCall

MetaSSR is a powerful Server-Side Rendering (SSR) framework crafted for high-performance, dynamic web applications. Built on Rust and leveraging the Axum web framework, MetaSSR integrates seamlessly with the Metacall Runtime, showcasing a real-world use case for polyglot programming. It was created as part of Google Summer of Code 2024 by Mohamed Emad, to demonstrate the capabilities of polyglot programming.

Why MetaSSR?

MetaSSR delivers exceptional performance that sets it apart from traditional SSR solutions. Built with Rust and optimized for speed, it significantly outperforms conventional Node.js-based SSR frameworks.

Here's how MetaSSR compares to Next.js under high load (12 threads, 1000 connections, 30s):

Metric MetaSSR Next.js Performance Gain
Requests/sec 98,420.11 3,170.95 31x faster
Average Latency 8.63ms 119.90ms 14x lower
Transfer/sec 4.98GB 37.95MB 134x higher
Total Requests 2,962,418 95,326 31x more
Max Latency 65.22ms 1.99s 30x lower
Socket Errors 0 239 timeouts Zero errors

Key Features

  • Rust-Powered Performance: Enjoy the speed and safety of Rust in your server-side rendering tasks.
  • High Performance: Achieve fast load times and excellent user experiences with optimized server-side rendering.
  • Comprehensive CLI: Manage your MetaSSR projects effortlessly using our powerful command-line interface.
  • API Route with Polyglot Programming (SOON): Integrate multiple languages seamlessly with Metacall's support.

Getting Started

To get started with MetaSSR, follow these steps:

  1. Installation: Review our Installation Guide to install MetaSSR on your system.
  2. CLI Documentation: Learn how to utilize the MetaSSR CLI with our CLI Documentation.

Contributing

We welcome contributions from the community! If you’re interested in helping out, please check out our Contributing Guide for information on how to get involved.

Development

For running a development environment:

Docker

docker build -t metacall/metassr:dev -f Dockerfile.dev .
docker run --rm -it metacall/metassr:dev bash

Nix

TODO

Code of Conduct

To ensure a positive and inclusive environment, please review our Code of Conduct.

Community

License

MetaSSR is licensed under the MIT License. See the LICENSE file for more details.

About

High-performance server side rendering framework built with Metacall and Rust

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published