Skip to main content
The Platform SDK is in beta and is for white-label platforms that run Base44 inside their own product. Ask your onboarding contact to turn it on for your workspace.
The Platform SDK is the package a platform uses to put Base44’s app editor and its AI chat inside its own product. Your builders’ browsers use it to follow each build as it happens, and your server uses it to receive and verify Base44’s webhooks.
Building inside one Base44 app, with its entities, functions, and users? Use the App SDK instead. See Base44 SDKs to compare the two.

Entry points

The Platform SDK has three entry points:
  • @base44/platform: createPlatformClient() opens the browser connection, and its chat module 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 the webhooks module, 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. Pass useChat() the functions that reach Base44 through your backend, and render what it returns:
The first prompt creates the app. 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.