PrimeBrickPrimeBrick
  • Docs
  • Contact
  • MIT License
  • Documentation
  • MCP Server
  • API Catalog
  • Services
  • Libraries
PrimeBrickPrimeBrick

© 2026 PrimeBrick. MIT License. v3.8.0

github
Backend
Frontend
    OverviewGetting startedUI stackApp shell & sidebarAuthentication & sessionsSystem settingsUI componentsUI patterns
    Components
    API Reference
Microservices
powered by Zudoku
Frontend

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

TerminalCode
pnpm install pnpm run dev # starts Vite on http://localhost:5173

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:

TerminalCode
pnpm run check # typecheck (svelte-check + tsc) pnpm run build # SvelteKit production build pnpm run preview # preview the production build locally

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
Last modified on July 26, 2026
RBACGetting started
On this page
  • What the frontend does
  • Architecture at a glance
  • Quick start
  • Next steps