PagieraDocs Back to website

docs / architecture

System architecture

How the studio, documents, backend and published runtime fit together.

The system at a glance

Pagiera is embedded in your application. The browser hosts the studio, your server handles persistence and data requests, PostgreSQL stores documents, and Redis provides caches and rate limiting. Authentication and deployment belong to the host application.

Follow a document through the system

  1. Load editor bootstrap on the server and pass it to the full studio.
  2. Edit native layers in the browser. A document contains elements, root styles and data source definitions.
  3. Save through the backend with the page's expected revision. Saving changes the draft, not the public page.
  4. Preview the draft through an authenticated route, resolving request data on the server.
  5. Publish explicitly. The public runtime reads the published document and renders HTML.

Package boundaries

Entry pointResponsibility
pagiera/fullComplete studio interface
pagiera/providerHost font registration
pagiera/serverBackend handlers, persistence and server loading
pagiera/runtimePublished page rendering
pagiera/dataData integration exports
pagieraSmaller editor, client and document APIs

Import server code only in server modules. Import pagiera/full.css for the full studio; pagiera/styles.css is for the smaller editor.

Choose your next step

Start with installation, mount Next.js routes, then follow the studio workflow. Read deployment before exposing the application to users.