openzoo 0.51.2 → 0.51.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,6 @@
1
+ {
2
+ "name": "openzoo-transmute-site",
3
+ "private": true,
4
+ "description": "The explainer for openzoo-transmute, itself a transmuted Vercel-shaped app: static frontend in asset accounts, /api/* as a Pinocchio program.",
5
+ "version": "1.0.0"
6
+ }
@@ -63,13 +63,13 @@ input{padding:.4rem .6rem;font:inherit;border:1px solid #8884;border-radius:.4re
63
63
  <tr><td>Middleware / edge</td><td>yes</td><td>no (gateway does routing/rewrites/redirects from <code>vercel.json</code>)</td></tr>
64
64
  <tr><td>Image optimization</td><td>yes</td><td>no</td></tr>
65
65
  <tr><td>Domains / TLS</td><td>built in</td><td>via a gateway host (this one or your own); the chain has no HTTP</td></tr>
66
- <tr><td>Previews / rollbacks / git integration</td><td>yes</td><td>no. Each deploy is a program (new rent) or an upgrade in place</td></tr>
66
+ <tr><td>Previews / rollbacks / git integration</td><td>yes</td><td>no. Each deploy updates the site's accounts in place (or, with a dedicated program, upgrades it)</td></tr>
67
67
  <tr><td>Observability</td><td>logs, analytics, tracing</td><td>transaction logs, compute-unit counts, block explorers</td></tr>
68
68
  <tr><td>Latency</td><td>~50–300 ms</td><td>reads 300–800 ms, writes 1–3 s</td></tr>
69
69
  <tr><td>Read cost</td><td>metered</td><td>free, unlimited, no account needed</td></tr>
70
70
  <tr><td>Write cost</td><td>free</td><td>~0.000005 SOL per transaction + rent for new state; a signer is required (your wallet, a bounded hub signer, or x402 pay-per-write once built)</td></tr>
71
- <tr><td>Deploy cost</td><td>free tier</td><td>rent up front (~1 SOL for a small app today; ~0.05 SOL once the shared runtime lands)</td></tr>
72
- <tr><td>Toolchain</td><td>node</td><td>node + Rust + <code>cargo-build-sbf</code> (goes away with the shared runtime)</td></tr>
71
+ <tr><td>Deploy cost</td><td>free tier</td><td>rent up front: ~0.03–0.1 SOL for a small app on the shared <code>zoo-vm</code> runtime (this site: 0.095 SOL); ~1 SOL+ with a dedicated program per site</td></tr>
72
+ <tr><td>Toolchain</td><td>node</td><td>node only on the shared runtime (bytecode, no cargo); node + Rust + <code>cargo-build-sbf</code> for a dedicated program</td></tr>
73
73
  <tr><td>Who can take it down</td><td>Vercel, DNS, a card on file</td><td>nobody, if the upgrade authority is burned; any RPC + any gateway serves it</td></tr>
74
74
  <tr><td>Verifiability</td><td>trust the platform</td><td>the code and every state change are public and replayable</td></tr>
75
75
  <tr><td>Composability</td><td>HTTP APIs</td><td>other programs and wallets can call your routes as instructions</td></tr>
@@ -80,7 +80,7 @@ input{padding:.4rem .6rem;font:inherit;border:1px solid #8884;border-radius:.4re
80
80
  <h2>Put your own app here</h2>
81
81
  <pre>npx openzoo inspect . # your app, in Vercel terms + what is eligible
82
82
  npx openzoo build . # Rust program + asset plan (needs cargo-build-sbf)
83
- npx openzoo deploy . --cluster mainnet --yes # rent quoted first; paid by ~/.openzoo/wallet.json
83
+ npx openzoo deploy . --cluster mainnet --runtime &lt;zoo-vm id&gt; --yes # rent quoted first; paid by ~/.openzoo/wallet.json
84
84
  # → https://sites.openzoo.fun/s/&lt;programId&gt;
85
85
  npx openzoo serve &lt;programId&gt; # local gateway that signs writes with your wallet</pre>
86
86
  <p class="muted">Eligible today: handlers using query/body/headers, JSON, string and array methods, <code>@vercel/kv</code>, <code>Date.now()</code>, <code>process.env</code>. Not eligible: network calls, the filesystem, <code>Math.random</code>, streaming, <code>waitUntil</code>, ISR, middleware. Bodies must fit in one transaction (~900 bytes), responses in the log buffer (~8 KB). Reads are free; writes cost a transaction fee plus rent for new KV accounts.</p>