create
Create an app/artifact from a model and spec.
tl;dr
createis app-first and data-only. Provide a model and aspec, and Popmelt returns artifact data for rendering. It does not return implementation code.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
spec | object | Yes | Artifact specification input. |
modelId | string | No | Preferred model identifier. |
name | string | No | Model name fallback. |
collection | string | No | "public" or "private" for model lookup. |
format | string | No | Optional 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
createresponses are intentionally slim and code-free.- Use
referencewithincludeCode: true(or code-targetedpath) when you explicitly need page implementation code. - Use
referencefirst when you need schema/path discovery before buildingspec.
Related
Better prototypes with less prompting
Start creating