Public release source snapshots for xtrape-panel-ce
  • TypeScript 88.4%
  • Shell 7.4%
  • Python 2.1%
  • CSS 1.1%
  • JavaScript 0.6%
  • Other 0.4%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Codex a81bdd4b0a
All checks were successful
Validate / validate (push) Successful in 1m20s
Validate / dependency-audit (push) Successful in 24s
Validate / secret-scan (push) Successful in 25s
Merge pull request 'fix: promote accepted OCI index without conversion' (#4) from fix/release-0.8.7-oci-index into main
2026-10-19 13:07:47 +00:00
.forgejo/workflows feat: promote accepted public 0.8.7 manifest 2026-10-19 14:33:32 +03:00
.github/ISSUE_TEMPLATE Publish reviewed snapshot 125ab56 2026-10-18 22:47:47 +00:00
apps/panel-ui Publish reviewed snapshot 125ab56 2026-10-18 22:47:47 +00:00
changelog Publish reviewed snapshot 125ab56 2026-10-18 22:47:47 +00:00
deploy Publish reviewed snapshot 125ab56 2026-10-18 22:47:47 +00:00
docs Publish reviewed snapshot 125ab56 2026-10-18 22:47:47 +00:00
release fix: verify image config descriptor length 2026-10-19 15:44:13 +03:00
scripts Publish reviewed snapshot 125ab56 2026-10-18 22:47:47 +00:00
.dockerignore Publish reviewed snapshot 125ab56 2026-10-18 22:47:47 +00:00
.env.example Publish reviewed snapshot 125ab56 2026-10-18 22:47:47 +00:00
.gitignore Publish reviewed snapshot 125ab56 2026-10-18 22:47:47 +00:00
.npmrc Publish reviewed snapshot 125ab56 2026-10-18 22:47:47 +00:00
.secretlintignore Publish reviewed snapshot 125ab56 2026-10-18 22:47:47 +00:00
.secretlintrc.json Publish reviewed snapshot 125ab56 2026-10-18 22:47:47 +00:00
ACCEPTANCE.md Publish reviewed snapshot 125ab56 2026-10-18 22:47:47 +00:00
AGENTS.md Publish reviewed snapshot 125ab56 2026-10-18 22:47:47 +00:00
CHANGELOG.md Publish reviewed snapshot 125ab56 2026-10-18 22:47:47 +00:00
CODE_OF_CONDUCT.md Publish reviewed snapshot 125ab56 2026-10-18 22:47:47 +00:00
CONTRIBUTING.md Publish reviewed snapshot 125ab56 2026-10-18 22:47:47 +00:00
eslint.config.js Publish reviewed snapshot 125ab56 2026-10-18 22:47:47 +00:00
LICENSE Publish reviewed snapshot 125ab56 2026-10-18 22:47:47 +00:00
NOTICE Publish reviewed snapshot 125ab56 2026-10-18 22:47:47 +00:00
package.json Publish reviewed snapshot 125ab56 2026-10-18 22:47:47 +00:00
pnpm-lock.yaml Publish reviewed snapshot 125ab56 2026-10-18 22:47:47 +00:00
pnpm-workspace.yaml Publish reviewed snapshot 125ab56 2026-10-18 22:47:47 +00:00
prettier.config.js Publish reviewed snapshot 125ab56 2026-10-18 22:47:47 +00:00
README.md Publish reviewed snapshot 125ab56 2026-10-18 22:47:47 +00:00
RELEASE.md Publish reviewed snapshot 125ab56 2026-10-18 22:47:47 +00:00
SECURITY.md Publish reviewed snapshot 125ab56 2026-10-18 22:47:47 +00:00
SUPPORT.md Publish reviewed snapshot 125ab56 2026-10-18 22:47:47 +00:00
tsconfig.base.json Publish reviewed snapshot 125ab56 2026-10-18 22:47:47 +00:00
VERSION Publish reviewed snapshot 125ab56 2026-10-18 22:47:47 +00:00

Xtrape Panel CE

React Web operator UI for Xtrape Platform CE.

Xtrape Panel CE 是访问 Xtrape Platform CE open API 的 Web 运维前端;生产通过同源 canonical /platform-ce 反向代理访问内部 platform-ce(/server-ce 仅作 deprecated 兼容路径保留)。

Repository role

Repository Role
xtrape-platform-ce Headless control plane — open API, business data, auth/authz
xtrape-panel-ce React Web operator UI
xtrape-demo Reference Worker / demo Service (not part of the public set)
xtrape-telegram Telegram interaction adapter
browser -> panel-ui (React SPA + Nginx /platform-ce proxy) -> xtrape-platform-ce open API

Panel CE does not include a BFF, business backend, or Panel-owned database. Operator identity and durable state live in platform-ce.

Layout

apps/panel-ui    # React SPA (CE Runtime and future pages)

Quick start

pnpm install
cp apps/panel-ui/.env.example apps/panel-ui/.env
# for local dev only, set VITE_XTRAPE_SERVER_URL if platform-ce is not proxied at /platform-ce (or the deprecated /server-ce leg)
pnpm dev        # http://localhost:5173

For a static container:

docker compose -f deploy/compose/docker-compose.yml up --build

Primary development commands

pnpm install
pnpm typecheck
pnpm build
pnpm test
pnpm contracts:check

Panel capabilities

The UI currently exposes CE Runtime (/ce-runtime):

  • Services, instances, messages
  • Registration tokens and control clients
  • Telegram operator link

New product surfaces should be added as frontend routes backed by platform-ce APIs.

API boundary

apps/panel-ui/src/api/
  platformCeAuthClient.ts # Browser-side platform-ce auth/session helper
  platformCeClient.ts     # Typed calls to platform-ce open API
  types.ts

Runtime configuration is loaded from /runtime-config.js. Nginx serves the canonical same-origin /platform-ce path plus the deprecated /server-ce compatibility leg, both proxying to PLATFORM_CE_INTERNAL_URL (canonical name; SERVER_CE_INTERNAL_URL remains a deprecated alias), so platform-ce can remain internal-only; production should set PANEL_PLATFORM_CE_PUBLIC_BASE_URL=/platform-ce (the image's built-in default is still the compat leg — the serverCeBaseUrl runtime-config key name is a frozen wire key). Direct cross-origin VITE_XTRAPE_SERVER_URL is a local/dev fallback and requires platform-ce CORS.

Panel login is per-operator: the browser exchanges an operator principal's username/password at POST /v1/auth/login for a short-lived operator session token (the Panel's JS client keeps it in tab-scoped sessionStorage and sends it as Authorization: Bearer without depending on cookies — though Platform CE may additionally set an httpOnly same-origin session cookie; validated via GET /v1/auth/whoami; the server-side session terminates via POST /v1/auth/logout, expiry, or revocation — closing the tab clears only the tab-local token; first login forces a password change). It must not use shared XTRAPE_ADMIN_USERNAME / XTRAPE_ADMIN_PASSWORD credentials. Control-client tokens are provisioning/automation credentials for non-browser control-plane clients — managed on the Provisioning pages, never pasted into the Panel login. Do not put Telegram bot tokens, server-side secrets, or unrelated internal credentials in VITE_* variables.

See docs/operator-identity.md.

Repo Purpose
Documentation Architecture and product documentation
xtrape-platform-ce Headless CE control plane and open API
xtrape-demo Reference Worker / demo Service (not part of the public set)
xtrape-stack Public integrated compose: quickstart, demo/nightly channels, public stack pins

License

Apache-2.0. "Xtrape" is a trademark of its respective owner; the open-source license does not grant trademark rights.