> ## Documentation Index
> Fetch the complete documentation index at: https://docs.shoppex.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Hosted Runtime And Storefront SDK

> Choose between the hosted ThemeDocument runtime and the Storefront SDK.

# Hosted Runtime And Storefront SDK

| You are building                 | Use                                      |
| -------------------------------- | ---------------------------------------- |
| Storefront hosted by Shoppex     | Theme Builder and ThemeDocument settings |
| Browser storefront hosted by you | `@shoppexio/storefront`                  |
| Trusted server integration       | `@shoppexio/sdk` and `/dev/v1/*`         |

Hosted pages include the platform commerce runtime automatically. Blocks do not
initialize their own cart SDK or duplicate checkout logic.

A self-hosted Next.js storefront can import `@shoppexio/storefront` and owns its
own application rendering and deployment. It still uses Shoppex APIs for
canonical commerce data and buyer actions.
