---
title: "Storeful for developers · Store data your theme can use"
description: "Storeful keeps every store in a documented Shopify metaobject your theme reads in Liquid, with snippets, JavaScript events for search, selection and directions, and Shopify Flow. A public REST API is coming soon."
url: https://storeful.app/developers
locale: en
---

For developers and agencies

# Store data your theme can use.

Every store, stockist and pop-up is a Shopify metaobject entry with a documented contract, so your theme reads it in Liquid like any other Shopify data. Storeful's blocks are a starting point, never a wall.

[Join the waitlist](#waitlist) [Pricing→](https://storeful.app/pricing)

How it works

## Stores are metaobjects. Store pages are metaobject templates.

Storeful keeps each location as an entry of its app-owned store definition, with the online store capability on, so every entry has its own URL and a metaobject template the merchant edits in the theme editor. The locator list is built in Liquid from those entries and is in the page before any JavaScript runs; the map loads after it. Storeful writes every entry through Shopify, so what your theme reads is always the source of truth.

One definition for every kind of location

Stores, stockists and pop-ups share the $app:store type, told apart by its kind field.

Store pages on a metaobject template

templates/metaobject/store.json, at /pages/stores/<handle> by default, with SEO fields and LocalBusiness structured data.

Merchants' own fields included

Custom fields are added to the same definition, so they're there for your Liquid and for dynamic sources in the theme editor.

A store page section, in Liquid

```
{%- comment -%} sections/store-details.liquid,
  on templates/metaobject/store.json {%- endcomment -%}
{%- assign store = metaobject -%}
{%- assign place = store.address_data.value -%}

<h1>{{ store.name.value }}</h1>
<p>{{ place.lines | join: ', ' }}, {{ place.city }}</p>

{%- if store.kind.value == 'popup' -%}
  <p>Until {{ store.ends_at.value | date: '%-d %B' }}</p>
{%- endif -%}

<a href="tel:{{ store.phone.value }}">{{ store.phone.value }}</a>
```

Field names from the draft contract (version 1). It is settled before launch and versioned after it.

The toolkit

## A contract, snippets and events.

Documented, and the same on every plan.

### The store contract

Name, kind, address with coordinates and time zone, phone, email, website, weekly hours with dated exceptions, services, amenities, photos, tags, pop-up dates and SEO fields, plus the merchant's own.

```
name           single_line_text_field
kind           store | stockist | popup
address_data   json (lines, city, postcode,
               country_code, latitude,
               longitude, timezone)
hours          json (weekly, exceptions)
starts_at      date_time (pop-ups)
```

### Liquid snippets

Ready-made snippets for opening hours, open now, a map link, a store card and the shopper's chosen store, to use as they are or as a starting point.

```
{%- comment -%} On a store page, metaobject is the store {%- endcomment -%}
<h1>{{ metaobject.name.value }}</h1>
{%- assign hours = metaobject.hours.value -%}
```

### JavaScript events

Events on document when shoppers search, choose a store or ask for directions, for your own analytics or interface.

```
document.addEventListener("storeful:select", (e) => {
  console.log("Store chosen", e.detail);
});
```

### A small client on window.storeful

Search, find the nearest stores, choose a store, and read or set the shopper's chosen store from your own code.

```
const near = await window.storeful.nearest();
window.storeful.select(near[0]);
```

Automation

## Shopify Flow, both ways.

Triggers when a location is added, a retailer lapses (Storeful Plus) or shoppers search an area with no store nearby. Actions to show or hide a store, set holiday hours and find the nearest store to an address.

Shopify Flow

Triggers

-   Location added
-   Retailer lapsed
-   Searched with no store nearby

Actions

-   Show or hide a store
-   Set holiday hours
-   Find the nearest store

For agencies

## Fair pricing for every client.

$9.99 a month for the whole locator, $24.99 with the wholesale tools, unlimited locations on both, the same on every Shopify plan, and free on development stores, so you can build and test before a client pays anything.

## Storeful is coming soon.

Leave your email and we'll tell you when Storeful is on the Shopify App Store.

 

Company 

Email address

 Join the waitlist

 I agree to the [privacy policy](https://storeful.app/privacy-policy).

One email when Storeful is listed. Unsubscribe any time.
