Developer Reference Overview
An index of Sellrn's developer-facing features — Scripts, Script Endpoints, Mobile Manifest, Brick SDK, and the storefront query API.
Sellrn exposes several extension points for developers who need to go beyond what the no-code builder provides. This page maps out what is available and when to use each.
Scripts
Write small TypeScript functions inside the Sellrn dashboard. No external server needed. Three types: Endpoint (callable via HTTP), Webhook (runs on store events), and Scheduled (runs on a cron schedule).
Requires Developer mode to be enabled in Settings → Advanced.
Script Endpoints
HTTP endpoints hosted on your Sellrn store. URL format: /api/scripts/v1/endpoint-name. Secured with a bearer token. Callable from external apps, your mobile app, POS systems, or automation tools like Zapier and Make.
Mobile Manifest
A JSON document generated by Sellrn that describes your store's pages in a format the Expo mobile starter can render natively. Published to a URL in Supabase Storage. The manifest is the only coupling between the Sellrn web platform and the mobile app — no shared code, no shared packages.
Manifest URL format: https://[storage-url]/manifests/[store-id]/manifest.json
The manifest includes page tree, brick render nodes, theme tokens, and navigation structure.
Brick SDK
Build custom bricks for the Sellrn Page Builder. A brick is a React component that exports:
meta— brick ID, name, category, render target.schema— Zod schema for the brick's props.Component— the React component rendered in the builder and storefront.toRenderNode()— serialises the brick for mobile export (required for universal bricks).
Submit custom bricks via Dashboard → Bricks → Submit a brick. Private bricks are available only to your store; public bricks can be listed in the Brick Marketplace.
Storefront query API
Read your store's public data (products, collections, pages) via a REST API:
| Endpoint | Returns |
|---|---|
GET /api/v1/products | Paginated list of published products. |
GET /api/v1/products/:slug | Single product with variants, images, and metadata. |
GET /api/v1/collections | List of product collections. |
GET /api/v1/pages | List of published storefront pages. |
The query API is public (no auth required) for published data. Use it to build custom storefronts, PWAs, or data pipelines.
Webhooks
Configure outbound webhooks in Scripts → New script → Webhook type. Supported events:
order.placedproduct.created,product.updated
TypeScript types
Sellrn ships TypeScript types for all SDK interfaces. Install the types package:
npm install @sellrn/typesThe types package includes MobileManifest, RenderNode, BrickMeta, ThemeTokens, and all API response shapes.