critesjosh/noir-claude-plugin/noir-web

Claude Code and agent skill by critesjosh/noir-claude-plugin

Trust tier 3
  • community
  • ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Source check pending

Checking that the SKILL.md file is still in the repository.

Web integration for Noir circuits. Covers React integration, Web Worker proving, WASM setup, and UX patterns for browser-based ZK applications.

Install

npx vskill@latest install critesjosh/noir-claude-plugin/noir-web

Semi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard

SKILL.md

The same SKILL.md was published earlier as critesjosh/noir-claude-plugin/noir-web.

Noir Web Integration

Build browser-based ZK applications with Noir circuits using React, Web Workers, and WASM.

Architecture Overview

React Component (main thread)
|
| postMessage({ type: 'prove', circuit, inputs })
v
Web Worker (background thread)
|
| noir.execute(inputs) --> backend.generateProof(witness)
v
WASM (barretenberg, running inside worker)
|
| postMessage({ type: 'proof-generated', proof })
v
React Component (updates UI with proof)
  • React/UI component handles user interaction and state
  • Web Worker runs proving in a background thread
  • WASM modules (barretenberg) run inside the Web Worker
  • Message passing connects the main thread and worker

Critical Rule: Always Prove in a Web Worker

Proving is CPU-intensive and will freeze the browser if run on the main thread. A medium-sized circuit can block the UI for 5-30 seconds. Large circuits can take minutes.

Never do this:

typescript
// BAD: blocks the main thread
const { proof, publicInputs } = await backend.generateProof(witness);

Always delegate to a Web Worker:

typescript
// GOOD: runs in background thread
worker.postMessage({ type: 'prove', circuit, inputs });

WASM Requirements

SharedArrayBuffer is required by barretenberg and needs Cross-Origin-Isolation HTTP headers:

Cross-Origin-Opener-Policy: same-origin
Cross-Origin-Embedder-Policy: require-corp

Without these headers, SharedArrayBuffer is undefined and WASM initialization will fail. See WASM Setup for framework-specific configuration.

Quick Start

typescript
// App.tsx
import { useState, useRef, useEffect } from "react";
import circuit from "../target/my_circuit.json";
function ProveButton() {
const [status, setStatus] = useState<"idle" | "proving" | "done" | "error">("idle");
const workerRef = useRef<Worker | null>(null);
useEffect(() => {
const worker = new Worker(new URL("./proof-worker.ts", import.meta.url));
worker.onmessage = (e) => {
if (e.data.type === "proof-generated") setStatus("done");
if (e.data.type === "error") setStatus("error");
};
workerRef.current = worker;
return () => worker.terminate();
}, []);
const prove = () => {
setStatus("proving");
workerRef.current?.postMessage({
type: "prove",
circuit,
inputs: { x: "3", y: "4" },
});
};
return (
<div>
<button onClick={prove} disabled={status === "proving"}>
{status === "proving" ? "Proving..." : "Generate Proof"}
</button>
{status === "done" && <p>Proof generated successfully.</p>}
{status === "error" && <p>Proving failed. Try refreshing the page.</p>}
</div>
);
}

Detailed Guides

  • [React Integration](./react-integration.md) -- Custom hooks, component lifecycle, SSR considerations
  • [Web Worker Proving](./web-worker-proving.md) -- Worker setup, message passing, Comlink, error handling
  • [WASM Setup](./wasm-setup.md) -- Cross-Origin-Isolation headers for Vite, Webpack, Next.js
  • [UX Patterns](./ux-patterns.md) -- Progress indicators, error design, mobile, input forms

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
1
7-day trend score
0

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Extension points

  • hookPre/post lifecycle hooks

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/critesjosh/noir-claude-plugin/noir-web/badge)](https://verified-skill.com/skills/critesjosh/noir-claude-plugin/noir-web)

Something wrong with this skill or its page? Tell us.