[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-112490":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":9,"totalLinesOfCode":9,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":9,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":9,"rankLanguage":9,"license":9,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":22,"hasPages":22,"topics":9,"createdAt":9,"pushedAt":24,"updatedAt":25,"readmeContent":26,"aiSummary":27,"trendingCount":16,"starSnapshotCount":16,"syncStatus":28,"lastSyncTime":29,"discoverSource":30},112490,"jarvis","adewaskar\u002Fjarvis","adewaskar","J.A.R.V.I.S for automating your daily tasks using Claude Code",null,"https:\u002F\u002Fgithub.com\u002Fadewaskar\u002Fjarvis","TypeScript",996,432,21,5,0,7,60,153,36,92.9,false,"main","2026-11-07 09:08:10","2026-11-23 20:16:12","# J.A.R.V.I.S.\n\nA browser voice assistant with an Iron Man holographic interface. Say\n**\"Hey Jarvis\"**, he wakes, listens, and does real things through your tools —\nsearches the web, generates images, drives your phone, reads your mail. The face\nis a web page (React + Vite + Three.js + custom GLSL). The brain is Claude Code,\nrun headless as a library.\n\n**The only subscription you need is Claude Code.** No API keys, no OpenAI\naccount, no cloud bill — the brain runs on your existing Claude Code login, and\nthe heavy work (the model itself) runs on Anthropic's servers, so even a low-end\nlaptop only has to draw the interface. **ElevenLabs is an optional add-on** that\ngives JARVIS a much better voice and sharper hearing; without it he speaks and\nlistens through the browser's own speech, and everything still works.\n\n---\n\n## Requirements\n\n**In one line:** a Claude Code subscription, plus two free things every computer\ncan have — Node.js and Chrome. That's the whole list.\n\n- **Claude Code, installed and logged in** — this is the only account you need.\n  Install it with the official method — `npm install -g @anthropic-ai\u002Fclaude-code`,\n  or the platform installer at \u003Chttps:\u002F\u002Fdocs.claude.com\u002Fen\u002Fdocs\u002Fclaude-code> —\n  then run `claude` once and complete login. The bridge reuses that login. **No\n  API key**, and usage is billed to your existing Claude account.\n- **Node.js 20 or newer** — free, one installer from \u003Chttps:\u002F\u002Fnodejs.org>. This\n  is a Node web app, so it is the one unavoidable tool.\n- **Google Chrome or Microsoft Edge**, in a **real browser window** — not an\n  embedded preview pane. Preview panes (including the one inside editors and\n  Claude Code) block microphone access, so the page loads and looks right but\n  never hears you. JARVIS also needs WebGL, which these browsers provide.\n- **Optional: an ElevenLabs API key** — a good add-on, not a requirement. It\n  gives a better voice and sharper transcription; the free tier is plenty for a\n  demo. Without it, everything runs on the browser's own speech.\n\nRun `npm run setup` after cloning and it checks all of this for you, in plain\nlanguage.\n\n---\n\n## Quick start\n\nFirst, install, then start it:\n\n```bash\nnpm install\nnpm start          # runs the brain and the face together\n```\n\nThen open the URL it prints (http:\u002F\u002Flocalhost:5173) in **Chrome**, click **INITIALISE**, and say **“Hey Jarvis”**.\n\nPrefer two terminals? Run them separately instead:\n\n```bash\nnpm install\n```\n\nTerminal 1 — the brain:\n\n```bash\nnpm run bridge\n```\n\nTerminal 2 — the face:\n\n```bash\nnpm run dev\n```\n\nThen open the app in a **real Chrome or Edge window**:\n\n```bash\nopen http:\u002F\u002Flocalhost:5173\n```\n\nClick **INITIALISE**, allow the microphone when asked, and say **\"Hey Jarvis\"**.\n\n> It has to be a real browser window. Embedded preview panes block the\n> microphone, so JARVIS will look perfectly alive and simply never respond.\n\n---\n\n## How it works\n\nJARVIS is two processes. The browser is the face and the voice; the bridge is\nthe brain and the hands.\n\n```\n  ┌─ browser (the face) ───────────────┐        ┌─ bridge (the brain) ─────────────┐\n  │  \"Hey Jarvis\" wake word            │        │  Node · bridge\u002Fserver.mjs        │\n  │  local VAD  →  speech to text      │   ws   │  Claude Agent SDK                │\n  │  reactor UI (Three.js + GLSL)      │◄─────► │   = Claude Code, headless        │\n  │  text to speech                    │  8787  │  spawns your MCP servers         │\n  │  heads-up display                  │        │  permission gate (decideTool)    │\n  └────────────────────────────────────┘        └──────────────────────────────────┘\n```\n\nEverything you see and hear happens in the browser. The bridge is a single Node\nprocess (`bridge\u002Fserver.mjs`) that runs the **Claude Agent SDK**\n(`@anthropic-ai\u002Fclaude-agent-sdk`) — this spawns the real `claude` CLI as a child\nprocess, so **the brain literally is Claude Code, headless.** They talk over a\nWebSocket (plus a few HTTP endpoints) on `ws:\u002F\u002Flocalhost:8787`.\n\n**Why a bridge at all?** A browser tab cannot spawn the local stdio MCP servers —\n`higgsfield`, `elevenlabs`, `android`, `playwright`, `exa`, `serper`, and the\nrest. The bridge can. And because it is the Agent SDK, it authenticates off your\nexisting Claude Code login: no API key, billed to that same Claude account.\n\n**The model.** `claude-opus-5` at effort `medium` by default. Override with the\n`JARVIS_MODEL` and `JARVIS_EFFORT` environment variables. On startup the bridge\nprints its choice, e.g. `[jarvis] model claude-opus-5 · effort medium`.\n\n### The voice pipeline\n\nThe loop is designed so that nothing silently dies and barge-in feels natural.\n\n- **Detection is local.** An energy-based voice-activity detector\n  (`src\u002Flib\u002Fvad.ts`) decides when you are speaking. It is instant, cannot quietly\n  fail, and is what makes **barge-in** work — speak while JARVIS is talking and he\n  stops.\n- **Transcription has two tiers, chosen automatically at boot.** The browser asks\n  the bridge `\u002Fhealth` and picks the best available:\n  - **ElevenLabs key present** → ElevenLabs Scribe, via the bridge `\u002Fstt` endpoint.\n  - **Nothing configured** → the browser's own `SpeechRecognition` (Chrome\u002FEdge),\n    guarded by a heartbeat so it recovers when Chrome throttles it.\n- **Speaking** uses the **ElevenLabs voice when a key is present**, and the\n  browser's `speechSynthesis` otherwise. If a cloud call fails it falls back to\n  the browser voice, and if the OS voice itself is broken it latches over to the\n  cloud voice.\n\nSo it works with no keys and auto-upgrades when a key appears — there is no flag\nto set. Capability detection lives in `src\u002Flib\u002Fcapabilities.ts`, which probes the\nbridge's `GET \u002Fhealth` (returning `{ ok, tts, stt }`, both tracking the\nElevenLabs key) once at boot and picks the engines.\n\n---\n\n## What JARVIS can do\n\nBeyond answering, JARVIS reaches every MCP server in your Claude Code\nconfiguration, and can drive his own interface.\n\n### Your tools\n\nEvery server in your `~\u002F.claude.json` is handed to the SDK explicitly, or only the\nones you name in `JARVIS_MCP_SERVERS`. Depending on what you have installed, that\nis roughly:\n\n- **Web & search** — `exa`, `serper`, `serpapi`\n- **Images & video** — `higgsfield`, `openrouter-image`, `palmier-pro`\n- **Voice** — `elevenlabs`\n- **Your phone** — `android`\n- **The browser** — `playwright`\n\nA few things you can say:\n\n- *\"What's happening in AI this week?\"*\n- *\"Generate an image of the Mark VII suit.\"*\n- *\"Take a screenshot of my phone.\"*\n- *\"Open my GitHub notifications.\"*\n\n> **Note on account connectors.** Servers you added through your **claude.ai\n> account** (mail, drive, calendar and other account connectors) are not in `~\u002F.claude.json`,\n> but the CLI fetches them on its own and they join the session from the second\n> turn. The bridge keeps them out by default; set `JARVIS_ACCOUNT_CONNECTORS=1`\n> to let them in, and `JARVIS_MCP_SERVERS` to choose which `~\u002F.claude.json`\n> servers JARVIS gets.\n\n### JARVIS controls the interface\n\nHe drives the UI through MCP tools the bridge exposes:\n\n- `ui_theme` — accent, background, per-phase colours\n- `ui_reactor` — colour, scale, intensity, spin, and style (`ring` | `sphere` | `wire`), visibility\n- `ui_orbit` — put images in orbit around the reactor\n- `ui_chrome` — show or hide rails, transcript, badges\n- `ui_effect` — `glitch` | `pulse` | `scan` | `shake` | `flash`\n- `ui_screen` — clear\n- `ui_reset` — back to defaults\n\nSo *\"make it red, hide the systems list, put that render in orbit\"* is a spoken\ncommand.\n\n### The heads-up display\n\nJARVIS authors panels with a `display` tool against a fixed `.hud-*` design\nsystem. The browser sanitises the markup (DOMPurify, a class allowlist and a\nstrict CSP) before rendering. Rich media works — images, `\u003Cvideo>`, and\nYouTube\u002FVimeo embeds. Remote images and video are fetched **server-side** through\nthe bridge (`\u002Fimg` and `\u002Fmedia`, both SSRF-guarded), so hotlink-blocked news\nthumbnails still appear and the page never beacons your IP to a host the model\nchose.\n\n---\n\n## Controls\n\n| Key \u002F phrase | Does |\n|---|---|\n| **\"Hey Jarvis\"** | Wake him |\n| **Space** | Talk without the wake word |\n| Just speak | Interrupt him mid-sentence (barge-in) |\n| **V** | Cycle the browser voice |\n| **Escape** | Stand down |\n| **D** | Live diagnostics panel |\n| **T** | One-line audio self-test |\n\n---\n\n## The boot sequence\n\nPower-up plays a four-beat Iron Man start-up (`src\u002Fui\u002FBoot.tsx`): an\n\"INITIATING SYSTEM\" status bar with a segmented progress bar and boot log; then\nconcentric reticle rings resolving into \"J.A.R.V.I.S\"; then a suit schematic;\nthen the triangular arc reactor lighting up — with a start-up sound under it\n(`public\u002Faudio\u002Fboot-music.mp3`).\n\n---\n\n## Configuration\n\nEverything is optional in bridge mode. Frontend settings live in `.env.local`\n(copy `.env.example`); bridge settings are environment variables.\n\n### Bridge\n\n| Variable | Default | Effect |\n|---|---|---|\n| `JARVIS_BRIDGE_PORT` | `8787` | Port for the WebSocket + HTTP endpoints |\n| `JARVIS_BRIDGE_HOST` | `127.0.0.1` | Interface to listen on. Any other address puts the agent on your network |\n| `JARVIS_ALLOWED_HOSTS` | none | Extra hostnames the bridge answers to; a request for any other name gets a 403 |\n| `JARVIS_MODEL` | `claude-opus-5` | Model to run |\n| `JARVIS_EFFORT` | `medium` | Reasoning effort |\n| `JARVIS_ALLOW_WRITES` | off | `1` allows effectful tools (see below) |\n| `JARVIS_MCP_SERVERS` | all configured | Comma-separated `~\u002F.claude.json` servers to pass on; empty passes none |\n| `JARVIS_ACCOUNT_CONNECTORS` | off | `1` lets your claude.ai account's connectors join the session |\n| `JARVIS_DISABLE` | none | Comma-separated capabilities to leave out: `browser`, `camera`, `interface` |\n| `JARVIS_ALLOWED_ORIGINS` | local dev | Extra WebSocket origins to accept |\n| `JARVIS_ALLOW_NO_ORIGIN` | off | Accept connections with no `Origin` header |\n| `JARVIS_WORKSPACE` | `~\u002F.jarvis\u002Fworkspace` | The agent's working directory; file tools are confined to it and the temp directory |\n| `JARVIS_FILE_ROOTS` | none | Extra folders the file tools and the `\u002Ffile` endpoint may use |\n| `JARVIS_KEEP_TRANSCRIPTS` | off | `1` keeps the SDK's session transcripts in `~\u002F.claude\u002Fprojects` |\n| `JARVIS_CLAUDE_EXECUTABLE` | bundled CLI | Run the agent through this executable instead, e.g. a sandbox wrapper that execs the real CLI |\n| `JARVIS_CHROME_PIPE` | none | WSL only: the Windows pipe name the browser relay connects to |\n| `JARVIS_DEBUG` | off | `1` logs every agent message to the bridge terminal, answer text and tool calls included |\n| `JARVIS_VOICE_ID` | none | ElevenLabs voice id |\n| `ELEVENLABS_API_KEY` | none | Optional; enables the ElevenLabs voice + Scribe |\n\n### Frontend (`.env.local`)\n\n| Variable | Effect |\n|---|---|\n| `VITE_BACKEND` | `bridge` (default) or `direct` |\n| `VITE_BRIDGE_URL` | Where to reach the bridge |\n| `VITE_TTS_ENGINE` | `system` or `kokoro` |\n| `VITE_KOKORO_VOICE` | Voice for the Kokoro engine |\n| `VITE_USE_ELEVENLABS` | Force the ElevenLabs voice on |\n| `VITE_ANTHROPIC_API_KEY` | Direct mode only |\n\n### Adding an ElevenLabs key\n\nYou do not have to touch a flag. Either:\n\n- Set `ELEVENLABS_API_KEY` on the bridge before starting it, **or**\n- Add the key to your `elevenlabs` MCP server's env in `~\u002F.claude.json` — the\n  bridge reads it from there too.\n\nEither way, `\u002Fhealth` starts reporting the capability, the browser picks it up on\nthe next boot, and both the voice and transcription upgrade automatically.\n\n---\n\n## Enabling actions\n\nThe tool gate starts **read-only**. Search, generation and lookups run freely;\nanything effectful — send, tap, delete, install, pay — is denied. Voice is a poor\ninterface for a confirmation dialog, so the decision is made ahead of time, in\n`decideTool()` in `bridge\u002Fpolicy.mjs`. The bridge sets\n`settingSources: []`, which makes its own gate the only authority — filesystem\nsettings and any global `bypassPermissions` cannot override it.\n\nA `PreToolUse` hook applies that policy to every call, including the reads the\nClaude Code CLI would otherwise approve by itself. In read-only mode the agent\nhas no shell, and its file tools reach only its workspace (`~\u002F.jarvis\u002Fworkspace`),\nthe temp directory and any folders in `JARVIS_FILE_ROOTS`. Paths that hold\ncredentials, such as `~\u002F.ssh`, `~\u002F.claude` and `.env` files, stay refused even\ninside those folders.\n\nTo allow effectful tools (phone, browser driving, sending), run the bridge this\nway instead:\n\n```bash\nnpm run bridge:writes\n```\n\nThe script passes `--writes` to the bridge, so it works in Windows `cmd` and\nPowerShell too. With `npm start`, use `npm start -- --writes`. Writes add `Bash`,\n`Write`, `Edit` and `NotebookEdit` to the agent's tools. The file tools stay\ninside the same folders; the shell can reach anything your user account can.\n\n> Read `decideTool()` before you do. *\"Hey Jarvis, clean up my downloads folder\"*\n> means something rather different with writes enabled.\n\n---\n\n## Troubleshooting\n\n**I can't hear him, or he can't hear me.** Press **D** for the diagnostics panel\n— it states plainly whether he is hearing you and whether he is producing sound.\nPress **T** for a one-line audio self-test.\n\n**No voice at all.** You must be in **Chrome or Edge**, in a **real browser\nwindow** (not an embedded preview), and you must have **allowed the microphone**.\n\n**Bridge not reachable.** Check that `npm run bridge` is still running in its\nterminal, and that nothing else is holding port `8787`. If the port is taken,\nthe bridge says so in one line at startup and exits. It listens on `127.0.0.1`\nonly. Reaching it from another machine takes `JARVIS_BRIDGE_HOST` and\n`JARVIS_ALLOWED_HOSTS`, and your own authentication in front of it first.\n\n**Browser control on Windows.** The bridge finds the Claude extension's named\npipe, `\\\\.\\pipe\\claude-mcp-browser-bridge-\u003Cuser>`, by itself. If the boot log\nsays the extension is not running, open Chrome with the extension signed in.\nEach browser request looks for the pipe again, so the bridge does not need a\nrestart.\n\n**Running the bridge in WSL, with Chrome on Windows.** Browser control works:\nthe Windows native host exposes a named pipe rather than a Unix socket, and the\nbridge reaches it through a short PowerShell relay (WSL interop must be on,\nwhich it is by default). Open the app at `http:\u002F\u002F127.0.0.1:5173` if\n`localhost` is slow to load — Windows tries IPv6 loopback first, and WSL does\nnot forward it.\n\n---\n\n## Tests\n\n`npm test` runs the bridge's tests with Node's built-in runner. They cover the\nnetwork binding, the tool policy, the MCP server allowlist and the WSL browser\nrelay, which runs only under WSL. The network and allowlist tests start the\nbridge on a random loopback port, and none of the tests opens an agent session.\n\n---\n\n## Security\n\nThe bridge's defences live in `bridge\u002Fserver.mjs` and `bridge\u002Fpolicy.mjs`:\n\n- It listens on `127.0.0.1` and answers only requests addressed to `localhost`,\n  `127.0.0.1` or `[::1]`, which blocks DNS rebinding.\n- The WebSocket accepts only local dev origins (add more with\n  `JARVIS_ALLOWED_ORIGINS`).\n- `\u002Ffile`, `\u002Fimg` and `\u002Fmedia` validate the scheme, confine to allowed roots,\n  resolve the real path, and refuse private and loopback addresses (SSRF guard).\n- The tool gate (`decideTool`) is default-deny for effectful MCP tools.\n- A `PreToolUse` hook enforces the tool policy on every call. File tools stay\n  inside the workspace, the temp directory and `JARVIS_FILE_ROOTS`, and\n  `WebFetch` cannot reach loopback, LAN or cloud metadata addresses.\n- claude.ai account connectors stay out of the session unless\n  `JARVIS_ACCOUNT_CONNECTORS=1`, and `JARVIS_MCP_SERVERS` narrows which\n  `~\u002F.claude.json` servers the agent gets.\n- Session transcripts are written to `~\u002F.claude\u002Fprojects` only when\n  `JARVIS_KEEP_TRANSCRIPTS=1`.\n- `JARVIS_DISABLE` removes browser control, the camera or the interface tools\n  entirely, and `JARVIS_CLAUDE_EXECUTABLE` can run the agent inside a sandbox\n  wrapper.\n- A strict CSP in `index.html`; model-authored panel HTML is sanitised.\n\n---\n\n## Credits & licence\n\nMIT.\n\nThe boot sound and any tracks in `public\u002Faudio\u002F` ship with the project for the\ndemo. If you go on to monetise something built on this, clearing the rights to\nthat audio is your responsibility.\n","J.A.R.V.I.S. 是一个基于浏览器的语音助手，通过本地运行的 Claude Code 实现日常任务自动化。其核心由两部分组成：前端采用 React、Vite 与 Three.js 构建 Iron Man 风格全息交互界面（含自定义 GLSL 渲染），后端通过轻量级 Node.js 桥接程序调用已登录的 Claude Code 服务执行指令；支持语音唤醒（“Hey Jarvis”）、网页搜索、图像生成、邮件读取、手机控制等操作。依赖仅需 Claude Code 订阅、Node.js 20+ 及 Chrome\u002FEdge 浏览器，无需 API 密钥或额外云账单；ElevenLabs 为可选增强模块。适用于个人效率提升、AI 助手原型开发及本地化语音交互实验场景。",2,"2026-11-24 04:43:37","trending"]