Index of every page on this site: llms.txt
All skills
base44 avatar

/base44-sdk

@5bb6707
by base44base44/skills94 stars
21
Run it yourself

The base44 SDK is the library to communicate with base44 services. In projects, you use it to communicate with remote resources (entities, backend functions, realtime actors, ai agents, and the AI gateway for code agents, image, video, and speech generation, and AI decisions) and to write backend functions and actors. This skill is the place for learning about available modules and types, including actors — the realtime/WebSocket primitive for multiplayer, collaborative boards, presence and live cursors, in-room chat, and live auctions. When you plan or implement a feature, you must learn this skill

Use this Skill: https://skilld.dev/gh/base44/skills/base44-sdk

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencesapp.md

≈728 tokens on demand. Your agent reads this file only when SKILL.md points to it.

App Module

Read an app's own public configuration — currently just its visibility.

  • base44.app — Available in any authentication mode (anonymous, user, or service role). The client sends its token, if it has one, with the request.

Contents


Methods

Method Signature Description
getPublicSettings() Promise<AppPublicSettingsResponse> Retrieves the app's ID and visibility

getPublicSettings()

Retrieves the app's public settings. Use it to determine whether the current visitor can access the app, and to decide whether to redirect them to the login page.

Returns: Promise<AppPublicSettingsResponse> — { id, public_settings }, where public_settings is the app's visibility (see Type Definitions).

Throws: rejects with a Base44Error with status: 403 when the visitor can't access the app. Check error.data.extra_data.reason:

  • auth_required — the visitor must sign in.
  • user_not_registered — the visitor is signed in but doesn't have access.

Example:

// Redirect a visitor who isn't signed in
try {
  const { public_settings } = await base44.app.getPublicSettings();
  console.log("App visibility:", public_settings);
} catch (error) {
  if (error.status === 403 && error.data?.extra_data?.reason === "auth_required") {
    base44.auth.redirectToLogin("<URL to return to after login>");
  }
}

Notes

  • Frontend and backend: app works in any authentication mode — anonymous, user, or service role (base44.app is the same in all of them; there's no separate asServiceRole.app).
  • If the app requires login, use redirectToLogin() from the auth module to send the visitor to the login page.

Type Definitions

/**
 * The app's visibility. Supported values:
 * - `private_with_login`: Private — only invited users.
 * - `workspace_with_login`: Workspace — users in your Base44 workspace.
 * - `public_with_login`: Public (login required) — visitors must log in.
 * - `public_without_login`: Public (no login) — anyone.
 *
 * If your workspace enforces SSO for apps, apps set to `public_without_login` also require sign-in.
 */
type AppPublicSettings =
  | "private_with_login"
  | "public_with_login"
  | "public_without_login"
  | "workspace_with_login"
  | string;

/** The app's public settings. */
interface AppPublicSettingsResponse {
  /** The app's ID. */
  id: string;
  /** The app's visibility. See AppPublicSettings. */
  public_settings: AppPublicSettings;
}

/** App module for reading an app's public settings. Available in any authentication mode. */
interface AppModule {
  getPublicSettings(): Promise<AppPublicSettingsResponse>;
}

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 warningtoday5 checks · Risk SAFE
  • Gen Agent Trust Hub1d

    The skill provides a comprehensive documentation and reference library for the Base44 JavaScript SDK. It details how to use modules for authentication, database management (entities), real-time communication (actors), and AI integration. The analysis found that the skill uses structural instructions to guide the agent between SDK and CLI tools, and all external dependencies are either vendor-owned or well-known public libraries. No malicious patterns were detected.

  • Sockettoday

    No alerts

  • Snyk1d

    Risk: MEDIUM · 2 issues

  • Runlayer8mo

    2/12 files flagged

  • ZeroLeaks7mo

    2 findings · Score: 80/100

Signed by skilld at 5bb6707. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 days ago.

Activeupdated last week

README badge

README badge for base44/skills/base44-sdk