Skip to content

feat(platform): add server entrypoint with Base44PlatformServer - #316

Open
ozsay wants to merge 1 commit into
mainfrom
feat/platform-server-entrypoint
Open

ozsay wants to merge 1 commit into
mainfrom
feat/platform-server-entrypoint

Conversation

@ozsay

@ozsay ozsay commented Oct 11, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Restructure packages/platform/src into client/ and server/ entrypoints (each with its own index.ts and modules/); shared origin validation moved to src/shared/server-url.ts.
  • Add Base44PlatformServer ({ serverUrl, apiKey }), exposed as @base44/platform/server. No server modules yet.
  • package.json: ./server export plus typesVersions for classic node resolution; main entry now dist/client/index.*; typedoc covers both entrypoints.
  • Tests: unit tests for the server class; package test checks the tarball, runtime import and declarations under NodeNext/Bundler/Node resolution.

Test plan

  • npm test -w @base44/platform (types, unit, typedoc, packed-package checks)

🤖 Generated with Claude Code

Split src into client/ and server/ entrypoints, exposed as
@base44/platform and @base44/platform/server.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

🚀 Package Preview Available!


Install this PR's preview build with npm:

npm i @base44-preview/sdk@0.8.53-pr.316.b8bbaa9

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.53-pr.316.b8bbaa9"

Or add it to your package.json dependencies:

{
  "dependencies": {
    "@base44/sdk": "npm:@base44-preview/sdk@0.8.53-pr.316.b8bbaa9"
  }
}

Preview published to npm registry — try new features instantly!

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.

1 participant