API reference
Server, client and package exports in one place.
Server API
Import server-only functions from pagiera/server. Never include this entry point in a client component.
createPagieraRouteHandlers
Creates the GET, POST, PUT, PATCH and DELETE handlers used by the catch-all backend route.
pagieraConfigFromEnv
Builds server configuration from the documented environment variables and validates required values.
getPagieraServer
Returns the server facade used to load editor bootstraps, drafts and published pages.
const server = await getPagieraServer(pagieraConfigFromEnv());
const bootstrap = await server.getEditorBootstrap(pageId);
const published = await server.getPublishedPage(slug, context);
Runtime API
Import RenderedPage from pagiera/runtime to render approved elements. Pass request context to the server before rendering so dynamic blocks resolve into the initial HTML.
Client API
The studio client receives the server-produced bootstrap. Keep navigation callbacks and editor-only state in this boundary; credentials and database configuration remain on the server.
Package exports
pagiera/server— database, cache, route handlers and document loading.pagiera/runtime— production page rendering.pagiera/full.css— complete studio styles.- Lightweight exports — use only when embedding a reduced editing surface.