Midnight x Cardano ecosystem Live builder

Certify every prompt on Midnight. Build live without leaking the chain.

Midnight Vibecode Certifier is a hackathon builder for AI-assisted apps. Each prompt becomes an onchain receipt first, the builder waits for confirmation, and the web UI streams status in real time while keeping the prompt trail private.

Midnight Foundation-ready OpenCode-style agent flow Judge-safe selective reveal
1

Onchain-first prompts

Every prompt is committed before execution, so the transcript has a verifiable order.

2

Realtime status

The web app streams pending, confirming, confirmed, and failed states as the transaction moves.

3

Reveal only winners

Prompt chains stay private during the hackathon and are revealed only for selected winning projects.

Why realtime works without refresh

The browser should never wait on chain calls directly. The backend watches Midnight and pushes state updates to the page.

1

Builder sends prompt intent

OpenCode-style adapter hashes the prompt and submits a transaction intent to Midnight.

2

Backend tracks the transaction

A server process listens for pending and confirmed status changes from the chain or indexer.

3

Web UI receives live events

SSE or WebSocket pushes the status change into the page so the prompt card updates immediately.

4

Execution unlocks on confirmation

Only after confirmation does the agent run the prompt and continue the build flow.

Live builder

Code on the left, preview on the right, and onchain receipts in the middle.

Builder code
const receipt = await adapter.onPrompt({
  contestId,
  runId,
  promptIndex,
  promptText,
  agent: 'opencode',
});

if (receipt.status !== 'confirmed') {
  throw new Error('Wait for Midnight confirmation');
}

await runPrompt(receipt.promptText);
App preview
Midnight Builder connected

Prompt queued for onchain confirmation

The app is ready to continue, but execution is paused until the receipt is confirmed on Midnight.

pending → confirming → confirmed streamed live, no refresh

Why this is the right UX

  • It feels like a real builder, not a toy certificate page.
  • The prompt execution rule becomes a visible product feature.
  • Judges can watch progress live while the prompt chain stays private.
  • The UI can update the second the backend sees confirmation.
  • It is a better story for Midnight because it shows privacy plus real-time UX together.

Prototype stack

Agent layer

OpenCode fork or wrapper that intercepts prompts and emits intent receipts.

Realtime layer

Backend watcher using SSE or WebSocket to push confirmation states to the browser.

Midnight layer

Commit prompt intent first, confirm second, execute only after the chain says yes.

Contest layer

Registration, submissions, winner announcement, and reveal mode for the selected project.

Built for the ecosystem

Midnight Foundation, Intersect, Cardano builders, and hackathon judges.

Privacy-first

Selective disclosure is the point, not an afterthought.

Production-shaped

The UX looks like a product launch, not a demo widget.

Verifiable

Every revealed prompt can be recomputed and checked against the root.