Skip to content

vixcpp/vix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

412 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Vix.cpp

Remove the friction from C++.

A modern runtime for building C++ applications.

Website · Docs · Install · Download

Install

curl -fsSL https://vixcpp.com/install.sh | bash
irm https://vixcpp.com/install.ps1 | iex

Run C++ instantly

#include <iostream>

int main(){
  std::cout << "Hello, world!" << std::endl;
}
vix run main.cpp

Done.

Build a server

#include <vix.hpp>

using namespace vix;

int main(){
  App app;

  app.get("/", [](Request&, Response& res){
    res.send("Hello, world!");
  });

  app.run(8080);
}
vix run server.cpp

http://localhost:8080


Install a framework in 1 command

vix install -g cnerium/app
#include <cnerium/app/app.hpp>
using namespace cnerium::app;

int main(){
  App app;

  app.get("/", [](AppContext &ctx){
    ctx.text("Hello from Cnerium");
  });

  app.listen("127.0.0.1", 8080);
}
vix run main.cpp

WebSocket

#include <memory>
#include <vix/executor/RuntimeExecutor.hpp>
#include <vix/websocket.hpp>

int main(){
  auto exec = std::make_shared<vix::executor::RuntimeExecutor>();

  vix::websocket::App app{"config/config.json", exec};
  auto &ws = app.server();

  ws.on_typed_message([](auto &,
                         const std::string &type,
                         const vix::json::kvs &payload)
  {
    if (type == "chat.message")
      return payload;
  });

  app.run_blocking();
}

What Vix.cpp gives you

  • Run a single .cpp file instantly
  • No CMake required for simple apps
  • Native C++ performance
  • HTTP, WebSocket, P2P ready
  • Offline-first architecture support
  • Deterministic execution

Why Vix exists

C++ is powerful.

But:

  • too much setup
  • too much friction
  • too slow to start

Vix removes that.

Performance

Stable under sustained load.

Metric Value
Requests/sec ~66k – 68k
Avg Latency ~13–20 ms
P99 Latency ~17–50 ms

Learn more

Contributing

Contributions are welcome.

Focus areas

  • performance
  • reliability
  • networking
  • offline-first systems

MIT License