Warning
this project under development, Using it is your responsibility.
SSR framework for React.js built on MetaCall
MetaSSR is a powerful experimental Server-Side Rendering (SSR) framework crafted for high-performance, dynamic web applications. MetaSSR uses Metacall Runtime, exploring web-based use cases for polyglot programming.
MetaSSR has a great performance potential, performing significantly better than other more mature production 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 |
- 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.
- API Route with Polyglot Programming: Integrate multiple languages in the backend with Metacall's support.
To get started with MetaSSR, follow these steps:
- Installation: Review our Installation Guide to install MetaSSR on your system.
- CLI Documentation: Learn how to utilize the MetaSSR CLI with our CLI Documentation.
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.
For running a development environment:
docker build --target build_debug -t metacall/metassr:dev -f Dockerfile.dev .
docker run --rm -it metacall/metassr:dev bash-
Install Nix (if not already installed):
sh <(curl --proto '=https' --tlsv1.2 -L https://nixos.org/nix/install) --daemon -
Enable Nix Flakes:
mkdir -p ~/.config/nix echo "experimental-features = nix-command flakes" >> ~/.config/nix/nix.conf
-
Enter Development Shell:
nix develop
This will automatically set up Rust, MetaCall, and all required dependencies, same dependencies for all of us developing.
To ensure a positive and inclusive environment, please review our Code of Conduct.
MetaSSR is essentially a community project, initially created as part of Google Summer of Code 2024 by Mohamed Emad, to demonstrate the capabilities of polyglot programming.
- Discussion Forum: Join the Conversation
- Twitter: Follow US
- Metacall Community:
MetaSSR is licensed under the MIT License. See the LICENSE file for more details.