Skip to Content
Delmare Digital

Entry points

Every import path the package exports and what belongs in each one.

The package is ESM-only and split by where code runs, so the proxy never loads Payload and route handlers never load admin views.

Import pathRuns inMain exports
@delmaredigital/payload-experimentsPayload config, collectionscreateExperimentsPlugin, createExperimentBlock, xpGoalField, createArmSelectField, defineFlagPoint, defineMetricSource, contentDone, EXPERIMENT_BLOCK_SLUG, all public types
/runtime/proxyProxy runtime moduledefineExperimentsProxyRuntime, createPostgresManifestLoader, createHttpManifestLoader
/runtime/serverServer runtime moduledefineExperimentsServerRuntime
/proxyproxy.tscreateExperimentProxy, resolveExperiments, applyExperiments
/rscServer Components, route handlers, hooksSee Server helpers
/clientClient componentsSee Client exports
/blocksBlock rendererscontrolOnlyBlocks, segmentExperimentBlocks, EXPERIMENT_BLOCK_SLUG
/puckPuck render configSee Puck and field exports
/puck/editorPuck editor config (client)See Puck and field exports
/admin/clientAdmin client componentsForm-state helpers for the Experiment block, XP_IF_UPDATED_AT_HEADER
/admin/rscAdmin server viewsThe Tests views, registered through the import map
/puck/editor.css, /admin/theme.css, /admin/ui.cssStylesheetsSee Puck

The /admin/* entry points are wired by payload generate:importmap; you rarely import them yourself. Regenerate the import map after every upgrade that changes them.

Edit this page on GitHub