Yesterday, we announced that KODA Code Jam Season 3: Hacker Stage is officially LIVE.
Since then, Iβve gotten incredible questions from senior engineers asking: "How does this actually work under the hood? Is it secure? How do you handle the infrastructure?"
Today, Iβm pulling back the curtain. Here is the exact technical architecture of HYNA-Stage.
ποΈ The Core Stack
-
CLI: Node.js (ES Modules), distributed via NPM (
@hynaweb/stage). Usescommanderfor routing andorafor beautiful terminal spinners. - Backend Orchestration: Supabase Edge Functions (Deno runtime) + PostgreSQL.
- Compute Provider: E2B SDK (provisioning secure Firecracker MicroVMs).
- Frontend Dashboard: Vanilla JS + TailwindCSS, hosted on Netlify.
π Security & Access Control (The Hard Part)
We take security seriously, especially when AI agents are executing code.
-
Row Level Security (RLS): Enabled on all tables. The
environmentstable is strictly locked soSELECTis restricted toauth.uid() = user_id. You can only see your own sandboxes. -
API Gateway Bypass: Supabaseβs default API Gateway pattern-matches standard
apikeyheaders, which can cause false rejections for custom Edge Functions. We solved this by passing authentication via a customx-hyna-keyheader, which the Deno function validates before executing any E2B logic. -
Ephemeral Isolation: Every
hyna-stage upcommand spins up a single-tenant Firecracker MicroVM. When the TTL expires, the entire machine is permanently wiped. No residual data.
β‘ The Execution Flow (hyna-stage up)
- CLI reads your local file (e.g.,
index.htmlorapp.py). - Sends a secure POST request to the
/deploy-stageEdge Function with your JWT. - Edge Function calls
Sandbox.create()via the E2B SDK. - Code is injected into
/home/user/, and a lightweight web server starts automatically. - The Edge Function logs the environment to the
environmentsdatabase table. - CLI outputs your live, globally accessible URL in ~5 seconds.
π Full Documentation & User Guidelines ( TL;DR : β οΈ the auth flow has been changed so the docs is outdated we will change it in a bit)
We believe that for a CLI product, the documentation is the product.
Weβve published our full Technical Report and User Guidelines, including database schemas, security policies, and a complete troubleshooting FAQ.
π Read the Full Docs & Try It: https://hyna-stagetemp.netlify.app/
π― Join the Hacker Stage Jam
The sandbox is warm, the architecture is solid, and the AI-powered leaderboard is waiting for your submissions.
Install the CLI: npm install -g @hynaweb/stage
Submit your build: https://hackerstage.netlify.app/
Letβs build the future, securely and transparently. π―βοΈπ
Top comments (0)