Skip to content
DataKnifeAIPublic

About

Freya Studio UI — Vite/React frontend for freya-api

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Freya Web

Freya Studio UI

Freya Studio UI — the Vite/React frontend for DataKnifeAI Freya. Natural-language image sessions, gallery, LoRA/community browse, worker setup, and Settings live here. This repo builds Harbor image library/freya-web.

Talks to freya-api over HTTP /v1/* (plus /healthz). This repo also hosts meta Compose pins, stack docs, and the FOO-48 channel/compat scaffold (moved here from the freya monorepo).

What it is

  • Brand-forward Studio shell (sessions, Plan / Auto / YOLO, gallery, Guidelines ack)
  • Dev mock mode for UI work without keys or a live API
  • Production image: static Vite build served by nginx, proxying /v1 and /healthz to freya-api

Meta (Compose, stack docs, channels)

Single-box Compose, stack documentation, and the channel/compat manifest live here so peels share one pin/docs home:

Path Contents
deploy/compose/ Harbor image-pin Compose (compose.yaml, GPU overlay, .env.example)
docs/stack/ ARCHITECTURE, AUTH, COMPOSE, LOCAL, GITLAB_DEPLOY, OPENROUTER, CONCEPTS
channels/ FOO-48 schema + manifest.json (current peel tags)
cp deploy/compose/.env.example deploy/compose/.env
# set OPENROUTER_API_KEY + FREYA_ADMIN_PASSWORD (+ optional FREYA_*_IMAGE pins)
make compose-up          # UI :8080
# make compose-up-gpu    # requires FREYA_WORKER_GPU_IMAGE
# make compose-up-mcp

See docs/stack/COMPOSE.md. Image pins stay on Harbor peel tags (harbor.dataknife.net/library/freya-*).

API contract

Expectation Detail
Backend freya-api (OpenAPI-shaped JSON under /v1)
Local Vite Proxies /v1 and /healthz → http://127.0.0.1:8080
Docker FREYA_API_UPSTREAM (default http://freya-api:8080) rewritten into nginx via envsubst
Auth Browser sends Authorization from Settings / VITE_FREYA_API_TOKEN — nginx does not inject a bearer
Compat channels/manifest.json — web ^0.1 requires api ^0.1

Sister components: freya-api, freya-worker, freya-mcp, freya-operator.

Quick start

cp .env.example .env   # optional
npm ci

# UI mock only (no freya-api)
npm run dev:mock       # http://127.0.0.1:5173

# Live API — run freya-api on :8080 first
npm run dev

Build artifacts:

npm run build          # → dist/
npm run preview

Docker / Harbor

docker build -t freya-web:local .
docker run --rm -p 8080:80 \
  -e FREYA_API_UPSTREAM=http://host.docker.internal:8080 \
  freya-web:local

Published image name: library/freya-web (Harbor). Operator pins Studio uiImage; single-box pins live under deploy/compose/. Cluster CRDs stay in freya-operator.

Guidelines

Freya is a tool: you supply keys and hardware, and you are liable for prompts and outputs. Third-party terms (OpenRouter, Civitai, Hugging Face) still apply. The in-app Guidelines tab is authoritative for operators of an instance.

License

Apache License 2.0 — see LICENSE.

About

Freya Studio UI — Vite/React frontend for freya-api

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages