Agent-JAE/packages/web-ui/example
JAE a2227c7659
Some checks failed
CI / build-check-test (push) Has been cancelled
feat: browser use - element extraction + index-based clicking for text models
- tool-server.mjs: extractElements() scrapes all interactive elements with coordinates
- tool-server.mjs: formatElements() returns numbered list for LLM to read
- tool-server.mjs: click/type now support {index: N} for element-based interaction
- tool-server.mjs: new /api/browser/elements and /api/browser/keypress endpoints
- browser-tool.ts: updated schema with index, key params and elements/keypress actions
- browser-tool.ts: elementsText included in every LLM response so model can see the page
- browser-tool.ts: detailed workflow instructions in tool description
- Enables text-only models (Llama 3.3 etc) to navigate and interact with web pages
2026-03-27 23:17:24 +00:00
..
public fix: add SES lockdown diagnostics and Vite cache busting 2026-03-27 18:25:53 +00:00
server feat: browser use - element extraction + index-based clicking for text models 2026-03-27 23:17:24 +00:00
src fix: model icons use inline opacity, DDG search upgrade, session save/load/sidebar persistence, header z-index 2026-03-27 19:11:35 +00:00
.gitignore Initial commit: Agent JAE CLI - AI coding assistant 2026-03-23 09:17:58 +01:00
docker-compose.yml fix: Docker build uses monorepo root context for workspace links 2026-03-27 03:08:54 +00:00
Dockerfile fix: install all deps from monorepo root so tsgo + bins are hoisted 2026-03-27 03:17:41 +00:00
index.html fix: add SES lockdown diagnostics and Vite cache busting 2026-03-27 18:25:53 +00:00
package.json fix: stronger no-tool system prompt + dev script starts tool-server 2026-03-27 04:01:21 +00:00
README.md Initial commit: Agent JAE CLI - AI coding assistant 2026-03-23 09:17:58 +01:00
tsconfig.json Initial commit: Agent JAE CLI - AI coding assistant 2026-03-23 09:17:58 +01:00
vite.config.ts fix: add SES lockdown diagnostics and Vite cache busting 2026-03-27 18:25:53 +00:00

Pi Web UI - Example

This is a minimal example showing how to use @jaeswift/jae-web-ui in a web application.

Setup

npm install

Development

npm run dev

Open http://localhost:5173 in your browser.

What's Included

This example demonstrates:

  • ChatPanel - The main chat interface component
  • System Prompt - Custom configuration for the AI assistant
  • Tools - JavaScript REPL and artifacts tool

Configuration

API Keys

The example uses Direct Mode by default, which means it calls AI provider APIs directly from the browser.

To use the chat:

  1. Click the settings icon (⚙️) in the chat interface
  2. Click "Manage API Keys"
  3. Add your API key for your preferred provider:

API keys are stored in your browser's localStorage and never sent to any server except the AI provider's API.

Project Structure

example/
├── src/
│   ├── main.ts       # Main application entry point
│   └── app.css       # Tailwind CSS configuration
├── index.html        # HTML entry point
├── package.json      # Dependencies
├── vite.config.ts    # Vite configuration
└── tsconfig.json     # TypeScript configuration

Learn More