Skip to main content
The recommended starting point for @juo/blocks is publishing store-owned blocks — the “store” group in the block picker — using the create-juo CLI. It scaffolds a package with defineBlock, registerBlock, schema/preset/locale conventions, and a build configured for publishing against the merchant’s storefront portal hosted by Juo.
Building a host application (a custom page shell, services, and routes) is a separate path — see Building a custom portal.

Scaffold a package

npm create juo@latest
Follow the prompts to name the package and choose a framework (plain DOM, Vue, React, or Preact). Then:
cd my-blocks
npm install
npm run dev

Add to an existing project

To add @juo/blocks to an existing package:
npm install @juo/blocks
@juo/blocks lists vue, react, and preact as optional peer dependencies. Install only the one the host application already runs on — or none, if rendering with plain DOM. From here, see Blocks to start defining blocks.