0 5 0/feat/second readme update#11
Conversation
| <link rel="icon" href={favicon} /> | ||
| <meta property="og:title" content="BrowserCode" /> | ||
| <meta property="og:description" content="Run AI coding CLIs in-browser." /> | ||
| <meta name="description" content={pageDescription} /> |
There was a problem hiding this comment.
This is redundant. There is already a description tag coming from elsewhere. In the page there will be two tags which might confuse crawlers
| <br /> | ||
|
|
||
| <h2 id="about">What is BrowserCode?</h2> | ||
| # Build web apps that embed AI coding CLIs |
There was a problem hiding this comment.
This is not correct and confusing
| # Build web apps that embed AI coding CLIs | ||
|
|
||
| BrowserCode is a browser runtime for AI coding CLIs. BrowserCode is a working example of [BrowserPod](https://browserpod.io/), it includes: | ||
| BrowserCode is an open source project built on [BrowserPod](https://browserpod.io/), a serverless runtime with a POSIX filesystem, `bash`, `git`, `npm`, and live previews, all running client-side via WebAssembly. |
There was a problem hiding this comment.
'Serverless' means "run on edge server". Does not mean run in a browser.
|
|
||
| <h2 id="breaking-browsercode">Breaking BrowserCode</h2> | ||
| This is BrowserCode beta. Don't be kind to it. Stretch it, bend it, find out what breaks. Here are a few walls you might hit: | ||
| BrowserCode is a runtime for AI coding CLIs. Using [BrowserPod](https://browserpod.io/), the POSIX filesystem, the dev server, and the network proxy all run **inside the user's browser tab** via WebAssembly. It boots instantly. |
There was a problem hiding this comment.
I would not agree with this. It's an demo or integration of BrowserPod to run coding CLIs maybe?
There was a problem hiding this comment.
The network proxy also by definition does not run in the browser
| | [`/codex`](https://browsercode.io/codex) | Codex *(coming soon)* | | ||
| | [`/opencode`](https://browsercode.io/opencode) | OpenCode *(coming soon)* | | ||
|
|
||
| Depending on your auth method, you may be asked to copy a code from a separate tab. After that, prompt the agent like you would on your laptop — except the filesystem it edits, the `npm install` it runs, and the dev server it spins up are all living in the same tab. |
| │ └──────────────┘ │ BrowserPod portal ──── public URL ──┼──┐ | ||
| │ │ │ │ | ||
| │ ┌──────────────┐ └─────────────────────────────────────────┘ │ | ||
| │ │ Portal pane │◀──────────── iframe ──────────────────────────── │ |
There was a problem hiding this comment.
Extend the art on 3-4 cols to be able to see the iframe arrow separate from the browser tab box
| | **Real Node.js, in the browser** | Node 22 compiled to Wasm. Run `node`, `npm install`, `npm run build` against an actual POSIX filesystem — no shims, no fake VFS. | | ||
| | **POSIX-like filesystem** | Pods are ephemeral, but files can persist via OPFS / IndexedDB. The agent's project state is yours, scoped to the tab. | | ||
| | **Instant previews via portal URLs** | Any port the agent opens gets a public preview URL through BrowserPod's portal. | | ||
| | **Cross-origin isolated** | `COOP`/`COEP`/`CORP` headers configured for both Vite dev and Cloudflare prod (see [_headers](_headers) and [vite.config.ts](vite.config.ts)). Required for `SharedArrayBuffer` and Wasm threads. | |
There was a problem hiding this comment.
This is not a feature, it's a requirement
| export const cliConfigs: Record<string, CLIConfig> = { | ||
| // ... | ||
| mytool: { | ||
| userImage: 'wss://disks.browserpod.io/mytool_YYYYMMDD.ext2', |
There was a problem hiding this comment.
Users cannot load images there. We should either remove this section or document how to use images hosted locally or on user servers.
|
|
||
| This is BrowserCode's second beta. Don't be kind to it. Here are the walls you'll hit: | ||
|
|
||
| - **The agent may ignore its primer on the first turn.** The `CLAUDE.md` / `GEMINI.md` shipped into the Pod tells the model it's running on Wasm, but it can default to its usual behavior before consulting the file. Re-prompt or remind it. |
There was a problem hiding this comment.
I don't think this is true at all
Deploying browsercode with
|
| Latest commit: |
f3ad8b8
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://89fd24b7.browsercode.pages.dev |
| Branch Preview URL: | https://0-5-0-feat-second-readme-upd.browsercode.pages.dev |
No description provided.