Skip to content

Add @base44/platform, the browser client for white-label sockets - #301

Merged
amitbardos merged 1 commit into
mainfrom
feat/platform-package
Oct 4, 2026
Merged

amitbardos merged 1 commit into
mainfrom
feat/platform-package

Conversation

@amitbardos

@amitbardos amitbardos commented Oct 4, 2026 •

Copy link
Copy Markdown
Contributor

Step 2 of 2, stacked on the monorepo PR (feat/monorepo-layout). Adds the Platform SDK as its own package, @base44/platform, instead of the @base44/sdk/platform/client subpath from #286. The client code is Oz's from #286 (co-authored), moved as-is. #286 doesn't need to merge first.

import { Base44PlatformClient } from "@base44/platform";
  • packages/platform: @base44/platform@0.1.0, depends only on socket.io-client. It has unit tests, type tests, typedoc (warnings as errors) and a package test that packs it and checks the tarball, a runtime import, and declarations under NodeNext / Bundler / Node.
  • Versioning. Each package keeps its own version. Manual Package Publish gets a package input (sdk / platform) that builds, bumps, publishes, commits and tags only that package (v… / platform-v…). The skills-repo notification stays SDK-only. Preview publish still covers only the SDK.
  • publishConfig.access: public, so the first publish of the scoped package is public.
  • Unit-tests CI runs the platform tests. The lockfile change only adds the workspace link.

Before release: @base44/platform isn't on npm yet. An npm org admin has to do the first publish (or register a trusted publisher against manual-publish.yml).

Follow-ups: base44/base44-platform-starter#50 and base44-dev/mintlify-docs#2323 switch to @base44/platform.

Tested locally: build, lint, 315 SDK unit tests; platform type tests, 27 unit tests, typedoc, package test; check_wix_proxy_steps.py.

🤖 Generated with Claude Code

@github-actions

github-actions Bot commented Oct 4, 2026 •

Copy link
Copy Markdown
Contributor

🚀 Package Preview Available!


Install this PR's preview build with npm:

npm i @base44-preview/sdk@0.8.52-pr.301.27f07c6

Prefer not to change any import paths? Install using npm alias so your code still imports @base44/sdk:

npm i "@base44/sdk@npm:@base44-preview/sdk@0.8.52-pr.301.27f07c6"

Or add it to your package.json dependencies:

{
  "dependencies": {
    "@base44/sdk": "npm:@base44-preview/sdk@0.8.52-pr.301.27f07c6"
  }
}

Preview published to npm registry — try new features instantly!

@amitbardos

Copy link
Copy Markdown
Contributor Author

Follow-up: a full monorepo layout

This PR keeps @base44/sdk at the repo root and adds only packages/platform. That keeps the SDK's publish workflows, docs scripts and deep imports untouched. The two packages are versioned independently.

In the next PR we'll finish the layout:

  • move the SDK to packages/sdk and make the root a private workspace root
  • per-package versioning and releases (e.g. changesets), with v… / platform-v… tags
  • update the preview and manual publish workflows for both packages

@amitbardos
amitbardos force-pushed the feat/platform-package branch from a208157 to e8f726b Compare October 4, 2026 08:57
@amitbardos
amitbardos changed the base branch from codex/platform-client-entry to main October 4, 2026 08:57
@amitbardos amitbardos changed the title Ship the platform client as @base44/platform Add @base44/platform, the browser client for white-label sockets Oct 4, 2026
@amitbardos
amitbardos force-pushed the feat/platform-package branch from e8f726b to 24b35b2 Compare October 4, 2026 09:03
@amitbardos
amitbardos changed the base branch from main to feat/monorepo-layout October 4, 2026 09:03
Comment thread eslint.config.js Outdated
Comment thread package.json Outdated
@amitbardos
amitbardos force-pushed the feat/monorepo-layout branch from 1b28a9e to 7df686f Compare October 4, 2026 09:23
@amitbardos
amitbardos force-pushed the feat/platform-package branch from 24b35b2 to 020ab8d Compare October 4, 2026 09:23
@amitbardos
amitbardos force-pushed the feat/monorepo-layout branch from 7df686f to 523de80 Compare October 4, 2026 09:41
@amitbardos
amitbardos force-pushed the feat/platform-package branch from 020ab8d to 1c796d8 Compare October 4, 2026 09:41
@amitbardos
amitbardos force-pushed the feat/monorepo-layout branch from 523de80 to a66b81e Compare October 4, 2026 10:37
@amitbardos
amitbardos force-pushed the feat/platform-package branch from 1c796d8 to 4e77bfe Compare October 4, 2026 10:37
@amitbardos
amitbardos marked this pull request as ready for review October 4, 2026 11:38
…bel sockets

Add the Platform SDK as its own workspace package in packages/platform.
Base44PlatformClient lets a partner's browser watch the builder chat of
its apps over the platform socket with a session token from its backend.
The manual publish workflow gets a package input, so each package is
versioned and tagged on its own (v… for the SDK, platform-v… for the
Platform SDK).

The client is Oz Sayag's work from #286, moved from the
@base44/sdk/platform/client subpath into its own package.

Co-Authored-By: Oz Sayag <ozs@wix.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@amitbardos
amitbardos changed the base branch from feat/monorepo-layout to main October 4, 2026 11:40
@amitbardos
amitbardos force-pushed the feat/platform-package branch from 4e77bfe to 4c7ade7 Compare October 4, 2026 11:40
@amitbardos
amitbardos merged commit e5c8713 into main Oct 4, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants