Entry points
The Platform SDK has three entry points:@base44/platform:createPlatformClient()opens the browser connection, and itschatmodule follows the AI chat of up to eight apps over one connection.@base44/platform/react:useChat()runs the whole AI chat for one app in your own UI. It’s headless, so your components render the conversation.@base44/platform/server:createPlatformServer()gives your backend thewebhooksmodule, which verifies and handles the events Base44 sends.
Installation
Install the Platform SDK via npm:@base44/platform/react needs React 18 or later in your app.
Quick start
Your server keeps the workspace credential. The browser calls your own API routes, and your server calls the Apps API for it, so no credential reaches the browser. PassuseChat() the functions that reach Base44 through your backend, and render what it returns:
onAppCreated keeps its ID, so the next prompts go to that app instead of creating another one.
When the AI asks a question, the step it belongs to carries it in step.question, with its answer actions already bound. See Questions for each kind.
Not using React? Use
createPlatformClient() and its chat module directly, as Live updates shows. The connection is read-only, so prompts and answers still go from your server to the Apps API.See also
- Live updates: Open a session on your server, follow the AI chat in the browser, and apply snapshots and events.
- The build turn: What happens between a prompt and a finished build.
useChat(): Every option, field, and action of the chat.chat: Sessions, subscriptions, and the events the chat sends.webhooks: Verify and handle the events Base44 sends your server.