Skip to content

Documentation / Exports and sharing

Exports and sharing

Use local JSON, generated source, and immutable public codes.

Choose an export format

Preset JSON
A portable global theme for init --preset, theme add, or a preset-scoped Button.
Recipe JSON
A portable customized component for add --recipe.
Token CSS and family CSS
Palette/design variables and family style rules. Use both for the complete visual treatment; CSS alone does not create component source.
Generated source and usage
Inspect component TSX, scoped CSS, dependencies, and imports in the component editor’s Code panel.

Downloads work without publication. Export buttons require successful compilation of the current draft. JSON is the portable install input; the browser’s saved draft envelope is recovery data, not a CLI preset or recipe.

Publish an exact shareable code

  1. Finish editing and wait for compilation.
  2. Choose Get code and review the public publication information.
  3. Publish explicitly. The service returns a preset ps_…@1 or recipe rc_…@1 reference and read-only share page.
  4. Copy the command shown for your target: new project, existing project theme, scoped Button, or recipe.

Published content is publicly readable by exact reference. Do not put secrets in preset names or component content. Ombelle currently has no accounts or private sharing. Drafts stay local until you choose publication; visiting an editor does not publish them.

A code is immutable: later edits do not update an existing share link. Publish the edited content again to get a new snapshot. The code-page revision identifies the stored snapshot; the export’s own ID and revision still matter for installation conflicts.

Install a published snapshot

Use the exact full code from the share page. These placeholders must be replaced:

Install a code
npx @ombelle-ui/cli@1.1.2 init --preset PRESET_CODE
npx @ombelle-ui/cli@1.1.2 theme add PRESET_CODE
npx @ombelle-ui/cli@1.1.2 add button --preset PRESET_CODE
npx @ombelle-ui/cli@1.1.2 add --recipe RECIPE_CODE

Bare codes resolve at the official Ombelle service. The CLI validates the content and records its provenance. A withdrawn or unavailable snapshot can block a network install; preserve downloaded JSON when you need a local install path.

Local files, custom origins, and offline use

A local JSON export does not require the snapshot service; installing missing dependencies may still need package registry access. Prefix local filenames beginning with ps_ or rc_ with ./ to distinguish them from codes.

For a custom snapshot service, the CLI requires both --snapshot-origin and an exact --preset-hash or --recipe-hash. HTTPS is required except for literal loopback HTTP. --offline also requires those explicit pins and a previously verified cache entry; it cannot discover later snapshot withdrawals. Use the service-provided full command and hash rather than guessing either value.

If publication fails, keep your JSON export and retry using the editor’s recovery flow. A temporary sharing-service failure does not remove valid local exports. See privacy and data retention for storage details.