create

Create an app/artifact from a model and spec.

tl;dr create is app-first and data-only. Provide a model and a spec, and Popmelt returns artifact data for rendering. It does not return implementation code.

Parameters

ParameterTypeRequiredDescription
specobjectYesArtifact specification input.
modelIdstringNoPreferred model identifier.
namestringNoModel name fallback.
collectionstringNo"public" or "private" for model lookup.
formatstringNoOptional output hint: "app", "code", "html" (response remains data-only).

Examples

  • create { modelId: "pub_123", spec: { sections: [{ type: "hero", props: { title: "Hello" } }] } }
  • create { name: "Rabbit", collection: "private", spec: { sections: [...] } }

Notes

  • create responses are intentionally slim and code-free.
  • Use reference with includeCode: true (or code-targeted path) when you explicitly need page implementation code.
  • Use reference first when you need schema/path discovery before building spec.

Better prototypes with less prompting

Start creating