Overview
The Primebrick frontend (primebrick-fe-v3) is the web administration
application for the Primebrick platform. It is built with SvelteKit™,
Svelte™ 5 (runes mode), and TypeScript®, and uses a layered UI stack:
Tailwind CSS™ → BITS UI™ → shadcn-svelte™ → more-shadcn-svelte™ and
shadcn-svelte-extras™ → Primebrick's own custom and wrapped components. See
UI stack for the full layering and official links.
What the frontend does
- Renders the application shell — sidebar, topbar, command palette, health and version badges, global side sheets — for all authenticated routes.
- Talks to the Primebrick backend (
primebrick-be-v3) over a REST API (/api/v1/...) and to registered microservices (primebrick-us-v3) through a backend proxy (/ws/<SERVICE>/...). - Provides a generic, reusable entity list table system used by every module to render lists with table/card views, filtering, sorting, bulk actions, export, and inline preview.
- Hosts the System Settings area (modules, organizations, users, profile,
security, email providers, templates) under
/system/settings. - Implements MCP (Model Context Protocol) OAuth consent so AI agents can request scoped access to the platform on behalf of a user.
Architecture at a glance
The frontend is the only user-facing surface. It has no auto-deploy CI —
deployment follows GitFlow: a release branch is closed, merged to main, and
tagged. The docs site (docs.primebrick.dev) is a separate repo that pulls
these docs/user-guide/ MDX files in its own CI pipeline.
Quick start
Code
Open http://localhost:5173 in your browser. The login page renders
<LoginForm> which POSTs to the backend at http://localhost:3001/api/v1/auth/login.
If the backend is not running, the health badge in the sidebar will show
"backend offline" and re-probe every 5 seconds until it recovers.
To verify the production build:
Code
Next steps
- UI stack — the five layered UI technologies and official links
- Getting started — stack, commands, project layout
- App shell & sidebar — layout, navigation, modules
- Authentication & sessions — login, session expiry, password policy
- Entity list table — the reusable list/table/card system
- System settings — modules, orgs, users, profile, email providers
- UI components — custom components on top of Shadcn-Svelte™
- Component catalog — every custom/wrapped component, grouped by origin
- API reference — every exported Svelte™ component