Product architecture

Product architecture

This is the product level view: the major building blocks, what each one is responsible for, and how they combine to deliver the product's capabilities. For how custom code calls Apex and the runtime context it can read, see Technical architecture and request flow.

What the product is

3B Portals is a managed Salesforce package (namespace b3p, "3B Portals & Mobile Apps") that lets an organisation build branded, installable web portals and mobile apps directly on top of its Salesforce data, without hand coding a front end for every page. An admin designs pages visually, binds them to Salesforce records, publishes them to a Salesforce Site or Experience Cloud site, and end users open them in a browser or install them to a phone home screen as a Progressive Web App.

The building blocks

The product is five cooperating pieces. Three of them are user facing surfaces, one is the reusable component library they share, and one is the Salesforce backend that stores and serves everything.

Building block What it is Responsibility
The builder A visual, drag and drop page editor delivered to admins Design pages, bind data, drop in components, publish
The runtime A single page web app plus a service worker Render published pages to end users, handle login, navigation, offline, and push
The component library A set of standard interactive components Charts, forms, iframes, screen flows, login and custom component hosting, shared by builder and runtime
The backend Salesforce Apex classes and custom objects Authentication, data access, page storage, push, configuration
The styling system Tailwind CSS and the 3B design system, compiled to a static resource Consistent utility and component styling, live in the builder and on the live portal

See Technical architecture and request flow for the packaged apps and how components call Apex.

How a page comes to life

The product has two distinct phases, design time and runtime, and one artifact that connects them: the saved page.

Design time

  1. An admin opens a Page__c record and clicks Builder. The builder loads that page's editable model into a live canvas.
  2. They drag in layout, text, images, and components, style them with the branding system, and bind them to Salesforce data with merge tags. An optional AI copilot can generate whole pages from a prompt. See The page builder and The AI page builder.
  3. Saving compiles the design and stores it against the Page record. Saving publishes the page immediately; there is no separate deploy step. See Publishing pages.

Runtime

  1. An end user opens the portal URL. The runtime resolves the URL to a page, downloads that page's compiled content, and renders it.
  2. Before display, the runtime injects any shared fragments, substitutes merge tags with live record data, and applies conditional display rules. See Merge tags and dynamic data and Conditional display.
  3. Guest pages render immediately. Protected pages trigger a passwordless login first. See Login and registration.

The connecting artifact

A page's content is not stored in a database field. Each saved page produces two compressed files attached to the Page record: an editable model the builder reloads, and a compiled bundle the runtime serves. This is why publishing is instant and why the runtime never needs the builder. See Web portals and pages.

Capabilities and which blocks deliver them

Capability Delivered by
Visual page design, no front end code The builder + the styling system
Data binding from any Salesforce object Merge tags (runtime) + the backend data loaders
Static and record driven pages, reusable fragments Page model + sub templates. See Static and dynamic pages
Charts, forms, screen flows, iframes, login The component library. See Standard components
Bring your own components with no package change Org defined blocks from custom metadata. See Custom components
Passwordless and magic link access The backend auth layer. See Magic links and session keys
Installable mobile app, offline, push The runtime service worker + Firebase push. See PWA and Push notifications
Custom fonts and branding The styling system + the fonts picker. See Custom fonts and Styling and branding

Deployment model

Data stores

Everything lives in Salesforce. The core records are the portal container, its pages, the portal user (a Contact, not a Salesforce User), an activity and push registration log, and sent push messages. Page content is stored as attached files. Configuration is a hierarchy custom setting; block definitions and service credentials are custom metadata. The full schema is in the Object model and data dictionary.

External dependencies

Each is optional to the core page building and rendering flow, and each is configured through Salesforce, not code. See Configuration reference.

Security posture in one paragraph

Portal users authenticate with a session key rather than a Salesforce login. With Secure Session Keys enabled in 12.5, tokens are signed with an org-specific key, always expire and are revoked on logout. Keep the guest profile bare, restrict the builder to admins and scope every component to the signed-in Contact. See the Security hardening checklist.