Superinterface logo
Superinterface
ProductPricingExamplesDocsBlog
GitHub
Discord
Book a demoSign in
Getting started
AI Provider Setup
FAQ
Assistants
Create assistant
Functions
Interfaces
Create interface
Interaction Modes
AI Builder
Publish interface
Components
Annotations
Concepts
Why Superinterface
How it works
Tasks
Overview
API reference
React
Installation
Components
Hooks
Contexts
Utils
optimisticId
isOptimistic
serializeMessage
enqueueJson
Thread ID storage
filesFieldAccept
Server
JavaScript
REST

Utils

Helper functions for building custom Superinterface React clients.
optimisticIdGenerate temporary IDs for optimistic messages
isOptimisticCheck if an ID is optimistic
serializeMessageConvert OpenAI messages into serializable form
enqueueJsonStream JSON chunks
Thread ID storageHelpers for storing thread IDs
filesFieldAcceptAccepted MIME types for file inputs