Pattern
INT·Apr 26
Agent Text Artifact
Template-style text artifact with data-textDelta streaming, ProseMirror Markdown editor, in-memory versions, and quick prompts — no database persistence.
View Full Pattern on Desktop

Problems Solved
- Stream Markdown document updates with custom UI data parts
- Template-style Artifact class without a full chat backend
Use Cases
- Prototypes that mirror Vercel chat text artifacts
- Demos without database wiring
AI SDK APIs
streamTextcreateUIMessageStreamgatewaytool
Tags
aimarkdownprosemirrorstreamingai-sdkartifacts
Requirements
- Node.js
- 24+
- Memory
- 256MB
- Other
- Vercel AI Gateway API key
Environment Variables
AI_GATEWAY_API_KEYGet key →
External Services
openaiupstash
Ready to use?
View the full interactive pattern with live preview and copy the source code.
View Pattern on DesktopRelated Patterns


Agent Sheet Artifact
Template-style sheet artifact with data-sheetDelta streaming, CSV grid editor, in-memory versions, and quick prompts — no database persistence.
aispreadsheet+5
View →


Agent Slides Artifact
Template-style slide deck artifact with data-slidesDelta streaming, sortable slide list and preview, Markdown export, in-memory versions, and quick prompts — no database persistence.
aislides+5
View →
End of Pattern



