llama-stack-mirror/llama_stack/ui
ehhuang d96f6ec763
chore(ui): use proxy server for backend API calls; simplified k8s deployment (#2350)
# What does this PR do?
- no more CORS middleware needed


## Test Plan
### Local test
llama stack run starter --image-type conda
npm run dev
verify UI works in browser

### Deploy to k8s
temporarily change ui-k8s.yaml.template to load from PR commit
<img width="604" alt="image"
src="https://github.com/user-attachments/assets/87fa2e52-1e93-4e32-9e0f-5b283b7a37b3"
/>

sh ./apply.sh
$ kubectl get services
go to external_ip:8322 and play around with UI
<img width="1690" alt="image"
src="https://github.com/user-attachments/assets/5b7ec827-4302-4435-a9eb-df423676d873"
/>
2025-06-03 14:57:10 -07:00
..
app chore(ui): use proxy server for backend API calls; simplified k8s deployment (#2350) 2025-06-03 14:57:10 -07:00
components feat(ui): add views for Responses (#2293) 2025-05-28 09:51:22 -07:00
hooks feat: Adding dark mode, cleaning the UI a small bit, adding a link to the API documentation, and linting the code. (#2182) 2025-05-16 10:48:26 -07:00
lib chore(ui): use proxy server for backend API calls; simplified k8s deployment (#2350) 2025-06-03 14:57:10 -07:00
public feat: scaffolding for Llama Stack UI (#2149) 2025-05-14 17:22:46 -07:00
.gitignore feat: scaffolding for Llama Stack UI (#2149) 2025-05-14 17:22:46 -07:00
.prettierignore feat(ui): implement chat completion views (#2201) 2025-05-22 22:05:54 -07:00
.prettierrc feat(ui): implement chat completion views (#2201) 2025-05-22 22:05:54 -07:00
components.json feat: scaffolding for Llama Stack UI (#2149) 2025-05-14 17:22:46 -07:00
eslint.config.mjs feat: scaffolding for Llama Stack UI (#2149) 2025-05-14 17:22:46 -07:00
jest.config.ts feat(ui): implement chat completion views (#2201) 2025-05-22 22:05:54 -07:00
next.config.ts feat: scaffolding for Llama Stack UI (#2149) 2025-05-14 17:22:46 -07:00
package-lock.json chore: revert llama-stack-client dep (#2342) 2025-06-02 16:05:21 -07:00
package.json chore: revert llama-stack-client dep (#2342) 2025-06-02 16:05:21 -07:00
postcss.config.mjs feat: scaffolding for Llama Stack UI (#2149) 2025-05-14 17:22:46 -07:00
README.md feat(ui): implement chat completion views (#2201) 2025-05-22 22:05:54 -07:00
tsconfig.json feat: scaffolding for Llama Stack UI (#2149) 2025-05-14 17:22:46 -07:00

This is WIP.

We use shadcdn/ui Shadcn UI for the UI components.

Getting Started

First, install dependencies:

npm install

Then, run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev

Open http://localhost:8322 with your browser to see the result.