Skip to content

Commit d2dffac

Browse files
committed
Merge branch 'dev'
2 parents dd80b0c + 0295e91 commit d2dffac

File tree

7 files changed

+337
-374
lines changed

7 files changed

+337
-374
lines changed

assets/index-B6B0xw5I.js

Lines changed: 241 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/index-Di1g2_co.js

Lines changed: 0 additions & 256 deletions
This file was deleted.

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@
7474
}
7575
}
7676
</script>
77-
<script type="module" crossorigin src="/assets/index-Di1g2_co.js"></script>
78-
<link rel="stylesheet" crossorigin href="/assets/index-BnszfoTu.css">
77+
<script type="module" crossorigin src="/assets/index-B6B0xw5I.js"></script>
78+
<link rel="stylesheet" crossorigin href="/assets/index-BeAA8FVY.css">
7979
</head>
8080

8181
<body>

vix-site/src/App.vue

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,15 @@ import SiteFooter from "./components/SiteFooter.vue";
1414
</script>
1515

1616
<style scoped>
17-
/* hauteur approximative du header (desktop + mobile) */
1817
.app {
1918
--header-h: 64px;
2019
}
2120
22-
/* ✅ pousse toutes les pages sous le header fixed */
2321
.main {
2422
padding-top: calc(var(--header-h) + 18px);
2523
min-height: calc(100vh - var(--header-h));
2624
}
2725
28-
/* mobile: header souvent plus “épais” */
2926
@media (max-width: 900px) {
3027
.app {
3128
--header-h: 76px;

vix-site/src/data/home.js

Lines changed: 91 additions & 110 deletions
Original file line numberDiff line numberDiff line change
@@ -1,103 +1,104 @@
1-
// src/data/home.js
2-
31
export const HOME = {
42
hero: {
5-
title: "A modern C++ backend runtime.",
3+
title: "Offline-first. Peer-to-peer. Ultra-fast C++ runtime.",
64
subtitle:
7-
"Vix.cpp is a modern C++ runtime for HTTP and WebSocket services, focused on performance, clean developer experience, and practical workflows.",
5+
"Vix.cpp is a modern C++ runtime built as a serious alternative to Node.js, Deno, and Bun. It is designed for unreliable networks, offline-first workflows, peer-to-peer systems, and extreme native performance.",
86
ctas: [
97
{ label: "Install", to: "/install", kind: "primary" },
108
{ label: "See examples", to: "/examples", kind: "secondary" },
119
],
1210
badges: [
13-
"Modern C++ runtime",
14-
"HTTP + WebSocket",
15-
"Script mode",
16-
"Dev hot-reload",
11+
"Offline-first runtime",
12+
"Peer-to-peer ready",
13+
"HTTP and WebSocket",
14+
"Script mode and dev hot-reload",
1715
],
1816
terminal: {
19-
title: "vix run (script mode)",
17+
title: "Script mode",
2018
code: `~$ vix run server.cpp
21-
1:17:34 PM ● Vix.cpp READY v1.16.2 (1 ms) run
22-
23-
› HTTP: http://localhost:8080/
24-
i Threads:8/8
25-
i Mode: run
26-
i Status: ready
27-
i Hint: Ctrl+C to stop the server`,
28-
note: "Run a single .cpp file like a script. Zero boilerplate, instant server.",
19+
● Vix.cpp READY v1.21.1 (1 ms)
20+
21+
› HTTP: http://localhost:8080/
22+
i Threads: 8/8
23+
i Mode: run
24+
i Status: ready
25+
i Hint: Ctrl+C to stop`,
26+
note: "Run a single .cpp file like a script. Minimal boilerplate. Instant server.",
2927
},
3028
},
3129

3230
workflow: {
33-
title: "A simple, complete workflow",
34-
subtitle: "Write routes, iterate fast, then package for safe distribution.",
31+
title: "A simple and complete workflow",
32+
subtitle:
33+
"Write routes, iterate fast, then package and verify for safe distribution.",
3534
items: [
3635
{
3736
title: "1) Write",
38-
text: "Define HTTP routes or WebSocket handlers in modern C++ with minimal boilerplate and a predictable structure.",
37+
text: "Define HTTP routes or WebSocket handlers in modern C++ with a predictable structure and minimal boilerplate.",
3938
},
4039
{
41-
title: "2) Run / Dev",
42-
text: "Use vix run for one-shot execution, or vix dev for hot-reload while you iterate.",
40+
title: "2) Run or Dev",
41+
text: "Use vix run for one-shot execution or vix dev for hot-reload while you iterate.",
4342
},
4443
{
45-
title: "3) Pack & Verify",
46-
text: "Package and verify apps with built-in tooling for safe, reproducible distribution.",
44+
title: "3) Pack and Verify",
45+
text: "Package applications and verify artifacts for safe and reproducible distribution.",
4746
},
4847
],
4948
},
5049

5150
demo: {
52-
title: "A tiny HTTP route",
53-
subtitle: "Minimal code, run, expected output.",
51+
title: "It really is this simple",
52+
subtitle: "A tiny HTTP route you can run immediately.",
5453
code: `#include <vix.hpp>
54+
5555
using namespace vix;
5656
57-
int main()
58-
{
57+
int main() {
5958
App app;
6059
61-
app.get("/api/ping", [](Request&, Response& res) {
62-
res.json({ "ok", true, "message", "pong" });
60+
app.get("/", [](Request&, Response& res) {
61+
res.send("Hello, world");
6362
});
6463
6564
app.run(8080);
6665
return 0;
6766
}`,
68-
run: `vix run server.cpp`,
69-
out: `http :8080/api/ping
67+
run: "vix run server.cpp",
68+
out: `~$ http :8080
7069
HTTP/1.1 200 OK
71-
{
72-
"ok": true,
73-
"message": "pong"
74-
}`,
75-
note: "Core Vix.cpp style: vix.hpp, Request/Response handlers, app.run(port).",
70+
Content-Type: text/plain
71+
Server: Vix/master
72+
73+
Hello, world
74+
75+
~$`,
76+
note: "Core Vix style with vix.hpp, App, Request and Response handlers, and app.run(port).",
7677
},
7778

7879
why: {
79-
title: "Why Vix.cpp feels different",
80-
subtitle: "Three reasons developers stick with it after the first run.",
80+
title: "Why Vix exists",
81+
subtitle: "Most runtimes assume stable internet. That is not reality.",
8182
items: [
8283
{
83-
title: "Performance-first",
84-
text: "Designed for low overhead and predictable behavior under load, tuned for server-side throughput.",
84+
title: "Built for real conditions",
85+
text: "Designed for unstable networks, offline-first environments, edge deployments, and peer-to-peer systems.",
8586
},
8687
{
87-
title: "Developer Experience",
88-
text: "Clear errors, code frames, structured logs, and a CLI that behaves like a tool, not a puzzle.",
88+
title: "Predictable performance",
89+
text: "Native performance with control and consistency. No garbage collector pauses. No surprise overhead.",
8990
},
9091
{
91-
title: "Practical runtime",
92-
text: "HTTP, WebSocket, middleware, packaging, and registry workflows in one coherent system.",
92+
title: "Developer experience",
93+
text: "Clear errors, code frames, structured logs, and a CLI that behaves like a real tool.",
9394
},
9495
],
9596
},
9697

9798
proof: {
9899
title: "Trust, not hype",
99100
subtitle:
100-
"Built to be verifiable: behavior, performance, and distribution.",
101+
"Built to be verifiable in behavior, performance, and distribution.",
101102
items: [
102103
{
103104
title: "Open-source",
@@ -108,72 +109,68 @@ HTTP/1.1 200 OK
108109
text: "Benchmarks and behavior are tied to commits and can be reproduced.",
109110
},
110111
{
111-
title: "Real usage",
112-
text: "Built to power real services: APIs, realtime, and tooling workflows.",
112+
title: "Safe distribution",
113+
text: "Packaging and verification make delivery deterministic and secure.",
113114
},
114115
],
115116
},
116117

117118
batteries: {
118-
title: "Batteries included",
119-
subtitle: "Everything you need to build, run, and ship backend services.",
119+
title: "What you get",
120+
subtitle:
121+
"Everything needed to build, run, and ship backend services in one system.",
120122
items: [
121123
{
122124
title: "Unified CLI",
123-
text: "One workflow: new, build, run, dev, check, tests, pack, verify.",
125+
text: "One workflow covering new, build, run, dev, check, tests, pack, verify, and registry.",
124126
},
125127
{
126128
title: "Script mode",
127-
text: "Run a single .cpp file like a script with vix run file.cpp.",
129+
text: "Run a single C++ file like a script using vix run file.cpp.",
128130
},
129131
{
130-
title: "WebSocket runtime",
131-
text: "Typed events, broadcast patterns, realtime-friendly building blocks.",
132+
title: "HTTP and WebSocket runtime",
133+
text: "Build APIs and realtime systems with a shared execution model.",
132134
},
133135
{
134136
title: "Middleware pipeline",
135-
text: "Composable request handling with predictable control flow.",
136-
},
137-
{
138-
title: "Structured logging",
139-
text: "JSON-friendly logs and debug/trace levels for production diagnosis.",
137+
text: "Composable request handling with deterministic control flow.",
140138
},
141139
{
142140
title: "Packaging and verification",
143-
text: "Package apps and verify artifacts for safer distribution.",
141+
text: "Create distributable artifacts and verify them before installation.",
144142
},
145143
{
146144
title: "Registry workflow",
147-
text: "Discover, add, and publish reusable C++ libraries with a clean CLI flow.",
145+
text: "Discover, add, and publish reusable C++ libraries with an offline-friendly flow.",
148146
},
149147
],
150148
},
151149

152150
showcase: {
153-
title: "Real-time systems built with Vix.cpp",
151+
title: "Real-time systems with WebSocket",
154152
subtitle:
155-
"A real WebSocket chat example with rooms, message history, typed events, and shared execution with HTTP routes.",
153+
"A WebSocket chat example with rooms, broadcast, message history, and shared runtime with HTTP routes.",
156154
bullets: [
157155
"Rooms and broadcast",
158156
"Message history",
159-
"Typed WebSocket events",
160-
"Shared runtime with HTTP",
157+
"Typed events",
158+
"HTTP and WebSocket in one runtime",
161159
],
162160
media: {
163161
image: "/assets/images/vix-ws-chat.png",
164-
alt: "Vix.cpp WebSocket chat example (rooms + history)",
165-
caption:
166-
"Example chat running on the Vix.cpp WebSocket runtime (rooms + history + typed events).",
162+
alt: "Vix.cpp WebSocket chat example",
163+
caption: "Example chat running on the Vix.cpp WebSocket runtime.",
167164
},
168165
},
169166

170167
getStarted: {
171168
title: "Get started in under a minute",
172-
subtitle: "Create a project, start dev mode, iterate with hot-reload.",
169+
subtitle: "Create a project, start dev mode, and iterate with hot-reload.",
173170
code: `vix new api
174171
cd api
175172
vix dev`,
176-
note: "Start in dev mode with hot-reload, then switch to run or package when ready.",
173+
note: "Start with dev hot-reload, then switch to run or package when ready.",
177174
ctas: [
178175
{ label: "Install Vix.cpp", to: "/install", kind: "primary" },
179176
{
@@ -184,17 +181,17 @@ vix dev`,
184181
},
185182
],
186183
},
184+
187185
cli: {
188186
title: "CLI at a glance",
189187
subtitle:
190-
"One tool for the full workflow: scaffold, run, hot-reload, packaging, verification, registry.",
188+
"One tool for the full workflow including scaffolding, running, hot-reload, packaging, verification, and registry.",
191189
code: `~$ vix -h
192-
Vix.cpp Modern C++ backend runtime
190+
Vix.cpp Modern C++ backend runtime
193191
Version: 1.21.1
194192
195193
Usage:
196194
vix <command> [options] [args...]
197-
vix help <command>
198195
199196
Quick start:
200197
vix new api
@@ -203,48 +200,32 @@ Quick start:
203200
204201
Commands:
205202
Project:
206-
new <name> Create a new Vix project in ./<name>
207-
build [name] Configure + build (root project or app)
208-
run [name] [--args] Build (if needed) then run
209-
dev [name] Dev mode (watch, rebuild, reload)
210-
check [path] Validate a project or compile a single .cpp (no execution)
211-
tests [path] Run project tests (alias of check --tests)
203+
new <name> Create a new Vix project
204+
build [name] Configure and build
205+
run [name] [--args] Build if needed then run
206+
dev [name] Dev mode with hot-reload
207+
check [path] Validate a project or compile a single .cpp
208+
tests [path] Run tests
212209
repl Start interactive Vix REPL
213210
214-
Project structure:
215-
modules <subcommand> Opt-in module system (init/add/check)
216-
217211
Registry:
218-
registry <subcommand> Sync/search registry index (git-based)
219-
add <pkg>@<version> Add a dependency from registry (pins commit)
220-
search <query> Search packages in local registry index (offline)
221-
remove <pkg> Remove a dependency from vix.lock
222-
list List project dependencies from vix.lock
223-
store <subcommand> Manage local store cache (gc/path)
224-
publish <version> Publish current repo to registry (JSON + PR)
225-
deps Install deps from vix.lock (generate .vix/vix_deps.cmake)
226-
227-
Packaging and security:
228-
pack [options] Create dist/<name>@<version> (+ optional .vixpkg)
229-
verify [options] Verify dist/<name>@<version> or a .vixpkg artifact
230-
install [options] Install dist/<name>@<version> or a .vixpkg into the local store
231-
232-
Database (ORM):
233-
orm <subcommand> Migrations/status/rollback
234-
235-
Info:
236-
help [command] Show help for CLI or a specific command
237-
version Show version information
212+
registry <subcommand> Manage registry index
213+
add <pkg>@<version> Add dependency
214+
search <query> Search packages
215+
remove <pkg> Remove dependency
216+
list List dependencies
217+
publish <version> Publish to registry
218+
219+
Packaging:
220+
pack Create a distributable artifact
221+
verify Verify an artifact
222+
install Install an artifact
238223
239224
Global options:
240-
--verbose Enable debug logs (equivalent to --log-level debug)
241-
-q, --quiet Only show warnings and errors
242-
--log-level <level> trace|debug|info|warn|error|critical
243-
-h, --help Show CLI help (or: vix help)
244-
-v, --version Show version info
245-
246-
Links:
247-
GitHub: https://github.com/vixcpp/vix`,
225+
--verbose Enable debug logs
226+
--log-level <level> trace debug info warn error critical
227+
-h, --help Show help
228+
-v, --version Show version info`,
248229
},
249230
};
250231

vix-site/src/pages/Home.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ import CodeBlock from "@/components/CodeBlock.vue";
8989

9090

9191
<!-- SHOWCASE -->
92-
<!-- <Section
92+
<Section
9393
:title="HOME.showcase.title"
9494
:subtitle="HOME.showcase.subtitle"
9595
>
@@ -114,7 +114,7 @@ import CodeBlock from "@/components/CodeBlock.vue";
114114
</figcaption>
115115
</figure>
116116
</div>
117-
</Section> -->
117+
</Section>
118118

119119
<!-- GET STARTED -->
120120
<Section

0 commit comments

Comments
 (0)