Agent-JAE/packages/web-ui/example
JAE 97cef8b4d3
Some checks are pending
CI / build-check-test (push) Waiting to run
feat: add embedded terminal (xterm.js) and playwright browser panel
- Fix empty state overlay covering chat input (bottom:130px offset)
- Fix suggestion chips click-through with corrected z-layering
- Fix handleSuggestion to use chatPanel.agentInterface.setInput()
- Add JaeTerminalPanel: xterm.js + WebSocket bash shell (port 7701)
- Add JaeBrowserPanel: Playwright chromium screenshots (port 7702)
- Add terminal/browser toggle buttons in header toolbar
- Add collapsible right panel with Terminal/Browser tabs
- Add server/terminal-server.mjs and server/browser-server.mjs
- Add npm run dev:all script (Vite + terminal + browser servers)
2026-03-26 20:10:57 +00:00
..
public/mascot feat: add mascot images, empty state, and utility message toggle 2026-03-26 01:55:59 +00:00
server feat: add embedded terminal (xterm.js) and playwright browser panel 2026-03-26 20:10:57 +00:00
src feat: add embedded terminal (xterm.js) and playwright browser panel 2026-03-26 20:10:57 +00:00
.gitignore Initial commit: Agent JAE CLI - AI coding assistant 2026-03-23 09:17:58 +01:00
index.html Initial commit: Agent JAE CLI - AI coding assistant 2026-03-23 09:17:58 +01:00
package.json feat: add embedded terminal (xterm.js) and playwright browser panel 2026-03-26 20:10:57 +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 Initial commit: Agent JAE CLI - AI coding assistant 2026-03-23 09:17:58 +01: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