@shoppexio/theme-control-client
v0.4.0
Published
Shared Shoppex theme control plane client
Downloads
2,625
Maintainers
Readme
@shoppexio/theme-control-client
Shared JavaScript client for the Shoppex Theme Control Plane.
Use this package if you want to call the Shoppex theme Dev API from your own tooling.
What It Covers
The client wraps:
- theme inspect and diff
- file read and search
- apply, validate, preview, and publish
- source export and source upload for local
pullandpush
Example
Install from npm:
bun add @shoppexio/theme-control-clientimport { ShoppexThemeControlClient } from '@shoppexio/theme-control-client';
const client = new ShoppexThemeControlClient({
apiUrl: 'https://api.shoppex.io',
apiKey: process.env.SHOPPEX_API_KEY,
});
const inspection = await client.inspectTheme('theme_123');
console.log(inspection);Auth
Use a Shoppex API key with the scopes you need.
Common scope sets:
themes.readfor inspect, diff, search, read, and backupsthemes.writefor source uploads, apply, preview, publish, and rollback
Related Docs
- Hosted local sync:
https://docs.shoppex.io/themes/hosted-theme-sync - Theme Control Plane:
https://docs.shoppex.io/themes/theme-control-plane
