Developers
Start building
Apps/Examples

Examples

Example apps and a theme section to start from, what each one shows, and how to run them.

On this page

The examples are not on GitHub yet. Until they are, every page that uses them shows their code in full.

Start here

ExampleWhat it showsRead with
Parcel helper (examples/native-widgets)Two native admin panels, on orders and products, that call the app's server through signed actions. No OAuth.Manifest, Signed actions
Catalog glance (examples/hosted-app)The /connect route, a hosted admin page, session tokens, App API calls and token refreshAuthentication
USP strip (examples/theme-section)A theme section with child blocks, a starting preset and Hungarian labelsBuild a theme section

Each one has a README with its files, the environment variables it reads and the commands to run it. None of them holds a secret: keys, ids and addresses come from the environment.

The complete example

Recommendations by Poltura Labs (packages/app-sdk/examples/complete-app) uses most of the platform at once: five native workers in the admin and on the storefront, admin and storefront pages, actions, webhooks, app storage, the connection routes and a session check, with tests. The example app walkthrough goes through it file by file.

Run them

You need Node.js 22 or later and the @poltura packages, which are not on npm yet Not on npm yet. Then, in an example:

CommandWhat it does
npm run buildBundles the workers and writes the release into dist/
npm run validateChecks the release the way the review queue does
npm startStarts the example's server on port 8787
npx poltura app publish --api "$POLTURA_API" --app <app id>Publishes a release for review

The CLI's test suite builds both app examples and runs their servers against a stand-in for Poltura, so they keep working as the platform changes. The theme section passes poltura theme check on the default theme.

To start a new app instead, poltura app create my-app writes a native project and --template hosted adds a server with the connection routes. See Build your first app.

Next

Last updated