|
A modern C++ runtime for real-world systems. Build HTTP, WebSocket, and peer-to-peer applications with predictable performance and offline-first reliability. |
sudo apt update
sudo apt install -y \
build-essential cmake ninja-build pkg-config \
libssl-dev libsqlite3-dev zlib1g-devbrew install cmake ninja pkg-config openssl@3curl -fsSL https://vixcpp.com/install.sh | bashirm https://vixcpp.com/install.ps1 | iexVerify installation:
vix --versiongit clone --recurse-submodules https://github.com/vixcpp/vix.git
cd vix
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build -j
# Install for current user (recommended)
cmake --install build --prefix "$HOME/.local"
# Ensure PATH contains ~/.local/bin then restart your terminal
vix --version
vix doctorCreate a file called server.cpp:
#include <vix.hpp>
using namespace vix;
int main() {
App app;
app.get("/", [](Request&, Response& res) {
res.send("Hello, world!");
});
app.run(8080);
}Run it:
vix run server.cppOpen http://localhost:8080 That’s it.
Run C++ like a script:
vix run main.cppMost systems assume perfect conditions. Vix is built for when things are not.
- predictable under load
- no GC pauses
- offline-first by design
- deterministic execution
- minimal setup
Stable under sustained load.
| Metric | Value |
|---|---|
| Requests/sec | ~66k – 68k |
| Avg Latency | ~13–20 ms |
| P99 Latency | ~17–50 ms |
- Local-first execution
- Network is optional
- Deterministic behavior
- Failure-tolerant
- Built for unreliable environments
- Docs: https://vixcpp.com/docs
- Registry: https://vixcpp.com/registry
- Examples: https://vixcpp.com/docs/examples
Contributions are welcome.
- performance
- reliability
- networking
- offline-first systems
MIT License
