Source profileQuality 91/100Review permissions

base44/skills/skills/base44-sdk/SKILL.md

base44-sdk

The base44 SDK is the library to communicate with base44 services. In projects, you use it to communicate with remote resources (entities, backend functions, ai agents) and to write backend functions. This skill is the place for learning about available modules and types. When you plan or implement a feature, you must learn this skill

Source repository stars
88
Declared platforms
0
Static risk flags
2
Last source update
2026-08-17
Source checked
2026-08-25

Decision brief

What it does: where it fits

Build apps on the Base44 platform using the Base44 JavaScript SDK.

Best for

  • Building features in an EXISTING Base44 project
  • base44/config.jsonc already exists in the project
  • Base44 SDK imports are present (@base44/sdk)

Not for

  • Tasks that require unconfirmed production actions or broad system permissions.
  • Environments where the pinned source and install steps cannot be inspected.

Compatibility matrix

Platform support, with evidence labels

PlatformStatusEvidenceWhat to check
CodexNot declaredNo explicit evidencePortability before use
Claude CodeNot declaredNo explicit evidencePortability before use
CursorNot declaredNo explicit evidencePortability before use
Gemini CLINot declaredNo explicit evidencePortability before use
Open the compatibility checker

Installation

Inspect first. Install second.

The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.

Source-detected install commandSource
npx skills add https://github.com/base44/skills --skill "skills/base44-sdk"
Safe inspection promptEditorial

Inspect the Agent Skill "base44-sdk" from https://github.com/base44/skills/blob/773a301cfb79112141add32d19c024f2bafc44ee/skills/base44-sdk/SKILL.md at commit 773a301cfb79112141add32d19c024f2bafc44ee. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.

Workflow

What the source asks the agent to do

  1. 01

    Quick Start

    Review the “Quick Start” section in the pinned source before continuing.

    Review and apply the “Quick Start” source section.
  2. 02

    ⚡ IMMEDIATE ACTION REQUIRED - Read This First

    This skill activates on ANY mention of "base44" or when a base44/ folder exists. DO NOT read documentation files or search the web before acting.

    Check if base44/config.jsonc exists in the current directoryIf YES (existing project scenario):This skill (base44-sdk) handles the request
  3. 03

    When to Use This Skill vs base44-cli

    Use base44-sdk when: - Building features in an EXISTING Base44 project - base44/config.jsonc already exists in the project - Base44 SDK imports are present (@base44/sdk) - Writing JavaScript/TypeScript code using Base44 SDK modules - Implementing functionality, components, or fe…

    Building features in an EXISTING Base44 projectbase44/config.jsonc already exists in the projectBase44 SDK imports are present (@base44/sdk)
  4. 04

    ⚠️ CRITICAL: Do Not Hallucinate APIs

    Before writing ANY Base44 code, verify method names against this table or QUICKREFERENCE.md.

    Before writing ANY Base44 code, verify method names against this table or QUICKREFERENCE.md.Base44 SDK has unique method names. Do NOT assume patterns from Firebase, Supabase, or other SDKs.Exception: an OpenAI-compatible client (e.g. the Vercel AI SDK) is correct when pointed at base44.aiGateway.connection() — that's how you build code agents (agent loops with tools). Use InvokeLLM only for a single call…
  5. 05

    Authentication - WRONG vs CORRECT

    Review the “Authentication - WRONG vs CORRECT” section in the pinned source before continuing.

    Review and apply the “Authentication - WRONG vs CORRECT” source section.

Permission review

Static risk signals and limitations

Network access

medium · line 7

The documentation includes network, browsing, or remote request actions.

This skill activates on ANY mention of "base44" or when a `base44/` folder exists. **DO NOT read documentation files or search the web before acting.**

Runs scripts

medium · line 155

The documentation asks the agent to run terminal commands or scripts.

npm install @base44/sdk

Evidence record

Why each signal appears

EvidenceSourceComputedTestedEditorial
SignalValueEvidence typeMeaning
Quality score91/100ComputedDocumentation, specificity, maintenance, and trust rules
Repository stars88SourceRepository attention, not individual Skill quality
Compatibility0 platformsSourceDeclared in the catalog source record
Usage guideautomated source guideEditorialGenerated or reviewed according to the visible evidence level

Pinned source

Provenance and original SKILL.md

Repository
base44/skills
Skill path
skills/base44-sdk/SKILL.md
Commit
773a301cfb79112141add32d19c024f2bafc44ee
License
MIT
Collected
2026-08-25
Default branch
main
View the original SKILL.md

Base44 Coder

Build apps on the Base44 platform using the Base44 JavaScript SDK.

⚡ IMMEDIATE ACTION REQUIRED - Read This First

This skill activates on ANY mention of "base44" or when a base44/ folder exists. DO NOT read documentation files or search the web before acting.

Your first action MUST be:

  1. Check if base44/config.jsonc exists in the current directory
  2. If YES (existing project scenario):
    • This skill (base44-sdk) handles the request
    • Implement features using Base44 SDK
    • Do NOT use base44-cli unless user explicitly requests CLI commands
  3. If NO (new project scenario):
    • Transfer to base44-cli skill for project initialization
    • This skill cannot help until project is initialized

When to Use This Skill vs base44-cli

Use base44-sdk when:

  • Building features in an EXISTING Base44 project
  • base44/config.jsonc already exists in the project
  • Base44 SDK imports are present (@base44/sdk)
  • Writing JavaScript/TypeScript code using Base44 SDK modules
  • Implementing functionality, components, or features
  • User mentions: "implement", "build a feature", "add functionality", "write code for"
  • User says "create a [type] app" and a Base44 project already exists

DO NOT USE base44-sdk for:

  • ❌ Initializing new Base44 projects (use base44-cli instead)
  • ❌ Empty directories without Base44 configuration
  • ❌ When user says "create a new Base44 project/app/site" and no project exists
  • ❌ CLI commands like npx base44 create, npx base44 deploy, npx base44 login (use base44-cli)

Skill Dependencies:

  • base44-sdk assumes a Base44 project is already initialized
  • base44-cli is a prerequisite for base44-sdk in new projects
  • If user wants to "create an app" and no Base44 project exists, use base44-cli first

State Check Logic: Before selecting this skill, verify:

  • IF (user mentions "create/build app" OR "make a project"):
    • IF (directory is empty OR no base44/config.jsonc exists): → Use base44-cli (project initialization needed)
    • ELSE: → Use base44-sdk (project exists, build features)

Quick Start

// In Base44-generated apps, base44 client is pre-configured and available

// CRUD operations
const task = await base44.entities.Task.create({ title: "New task", status: "pending" });
const tasks = await base44.entities.Task.list();
await base44.entities.Task.update(task.id, { status: "done" });

// Get current user
const user = await base44.auth.me();
// External apps
import { createClient } from "@base44/sdk";

// IMPORTANT: Use 'appId' (NOT 'clientId' or 'id')
const base44 = createClient({ appId: "your-app-id" });
await base44.auth.loginViaEmailPassword("[email protected]", "password");

⚠️ CRITICAL: Do Not Hallucinate APIs

Before writing ANY Base44 code, verify method names against this table or QUICK_REFERENCE.md.

Base44 SDK has unique method names. Do NOT assume patterns from Firebase, Supabase, or other SDKs.

Authentication - WRONG vs CORRECT

❌ WRONG (hallucinated)✅ CORRECT
signInWithGoogle()loginWithProvider('google')
signInWithProvider('google')loginWithProvider('google')
auth.google()loginWithProvider('google')
signInWithEmailAndPassword(email, pw)loginViaEmailPassword(email, pw)
signIn(email, pw)loginViaEmailPassword(email, pw)
createUser() / signUp()register({email, password})
onAuthStateChanged()me() (no listener, call when needed)
currentUserawait auth.me()

Functions - WRONG vs CORRECT

❌ WRONG (hallucinated)✅ CORRECT
functions.call('name', data)functions.invoke('name', data)
functions.run('name', data)functions.invoke('name', data)
callFunction('name', data)functions.invoke('name', data)
httpsCallable('name')(data)functions.invoke('name', data)

Integrations - WRONG vs CORRECT

❌ WRONG (hallucinated)✅ CORRECT
ai.generate(prompt)integrations.Core.InvokeLLM({prompt})
openai.chat(prompt)integrations.Core.InvokeLLM({prompt})
llm(prompt)integrations.Core.InvokeLLM({prompt})
sendEmail(to, subject, body)integrations.Core.SendEmail({to, subject, body})
email.send()integrations.Core.SendEmail({to, subject, body})
uploadFile(file)integrations.Core.UploadFile({file})
storage.upload(file)integrations.Core.UploadFile({file})

Exception: an OpenAI-compatible client (e.g. the Vercel AI SDK) is correct when pointed at base44.aiGateway.connection() — that's how you build code agents (agent loops with tools). Use InvokeLLM only for a single call with no tools. See ai-gateway.md.

Entities - WRONG vs CORRECT

❌ WRONG (hallucinated)✅ CORRECT
entities.Task.find({...})entities.Task.filter({...})
entities.Task.findOne(id)entities.Task.get(id)
entities.Task.insert(data)entities.Task.create(data)
entities.Task.remove(id)entities.Task.delete(id)
entities.Task.onChange(cb)entities.Task.subscribe(cb)

SDK Modules

ModulePurposeReference
entitiesCRUD operations on data modelsentities.md
authLogin, register, user managementauth.md
agentsAI conversations and messagesbase44-agents.md
functionsBackend function invocationfunctions.md
integrationsAI, email, file uploads, custom APIsintegrations.md
aiGatewayConnect an OpenAI-compatible SDK to Base44's AI gatewayai-gateway.md
analyticsTrack custom events and user activityanalytics.md
appLogsLog user activity in appapp-logs.md
usersInvite users to the appusers.md
asServiceRole.connectorsApp-scoped OAuth tokens (service role only)connectors.md
asServiceRole.ssoSSO token generation (service role only)sso.md

For client setup and authentication modes, see client.md.

TypeScript and type registries

Each reference file includes a "Type Definitions" section with TypeScript interfaces and types for the module's methods, parameters, and return values.

Getting typed entities, functions, and agents: The Base44 CLI generates types from your project resources (entities, functions, agents), including augmentations to EntityTypeRegistry, FunctionNameRegistry, and AgentNameRegistry, and wires them into your project so you get autocomplete and type checking without manual setup. For how to generate types, use the base44-cli skill.

Manual augmentation: You can instead augment the registries yourself in a .d.ts file; see the Type Definitions sections in entities.md, functions.md, and base44-agents.md.

Installation

Install the Base44 SDK:

npm install @base44/sdk

Important: Never assume or hardcode the @base44/sdk package version. Always install without a version specifier to get the latest version.

Creating a Client (External Apps)

When creating a client in external apps, ALWAYS use appId as the parameter name:

import { createClient } from "@base44/sdk";

// ✅ CORRECT
const base44 = createClient({ appId: "your-app-id" });

// ❌ WRONG - Do NOT use these:
// const base44 = createClient({ clientId: "your-app-id" });  // WRONG
// const base44 = createClient({ id: "your-app-id" });        // WRONG

Required parameter: appId (string) - Your Base44 application ID

Optional parameters:

  • token (string) - Pre-authenticated user token
  • options (object) - Configuration options
    • options.onError (function) - Global error handler

Example with error handler:

const base44 = createClient({
  appId: "your-app-id",
  options: {
    onError: (error) => {
      console.error("Base44 error:", error);
    }
  }
});

Module Selection

Working with app data?

  • Create/read/update/delete records → entities
  • Import data from file → entities.importEntities()
  • Realtime updates → entities.EntityName.subscribe()

User management?

  • Login/register/logout → auth
  • Get current user → auth.me()
  • Update user profile → auth.updateMe()
  • Invite users → users.inviteUser()

AI features?

  • Chat with AI agents → agents (requires logged-in user)
  • Create new conversation → agents.createConversation()
  • Manage conversations → agents.getConversations()
  • Generate text/JSON with AI → integrations.Core.InvokeLLM()
  • Generate images → integrations.Core.GenerateImage()
  • Build a custom agent with tools (backend, agent SDK on the AI gateway) → aiGateway (see ai-gateway.md)

Custom backend logic?

  • Run server-side code → functions.invoke()
  • Need admin access → base44.asServiceRole.functions.invoke()

External services?

  • Send emails → integrations.Core.SendEmail()
  • Upload files → integrations.Core.UploadFile()
  • Custom APIs → integrations.custom.call()
  • App-scoped OAuth (app builder's account) → asServiceRole.connectors.getConnection() (backend only)

Tracking and analytics?

  • Track custom events → analytics.track()
  • Log page views/activity → appLogs.logUserInApp()

Common Patterns

Filter and Sort Data

const pendingTasks = await base44.entities.Task.filter(
  { status: "pending", assignedTo: userId },  // query
  "-created_date",                             // sort (descending)
  10,                                          // limit
  0                                            // skip
);

Protected Routes (check auth)

const user = await base44.auth.me();
if (!user) {
  // Navigate to your custom login page
  navigate('/login', { state: { returnTo: window.location.pathname } });
  return;
}

Backend Function Call

// Frontend
// ⚠️ invoke() returns the RAW axios response — your function's JSON is on `.data`,
//    NOT the top-level object. It also THROWS on non-2xx (error body at err.response.data).
const res = await base44.functions.invoke("processOrder", {
  orderId: "123",
  action: "ship"
});
const result = res.data; // ✅ e.g. res.data.success  (res itself is { data, status, headers, … })

// Backend function
import { createClientFromRequest } from "npm:@base44/sdk";

export default async function (req) {
  const base44 = createClientFromRequest(req);
  const { orderId, action } = await req.json();
  // Process with service role for admin access
  const order = await base44.asServiceRole.entities.Orders.get(orderId);
  return Response.json({ success: true });
}

Service Role Access

Use asServiceRole in backend functions for admin-level operations:

// User mode - respects permissions
const myTasks = await base44.entities.Task.list();

// Service role - full access (backend only)
const allTasks = await base44.asServiceRole.entities.Task.list();
const token = await base44.asServiceRole.connectors.getAccessToken("slack");

Frontend vs Backend

CapabilityFrontendBackend
entities (user's data)YesYes
authYesYes
agentsYesYes
functions.invoke()YesYes
functions.fetch()YesYes
integrationsYesYes
aiGatewayNoYes
analyticsYesYes
appLogsYesYes
usersYesYes
asServiceRole.*NoYes
asServiceRole.connectors (app OAuth)NoYes
asServiceRole.ssoNoYes

Backend functions export default an async request handler and use createClientFromRequest(req) to get a properly authenticated client.

Frequently asked questions

What to verify before installation and use

What does the base44-sdk source document cover?

Build apps on the Base44 platform using the Base44 JavaScript SDK.

How do I install base44-sdk?

The source record exposes this install command: npx skills add https://github.com/base44/skills --skill "skills/base44-sdk". Inspect the command and pinned source before running it.

Which permission-related actions were detected?

Static rules flagged network, exec-script in the source; the page lists the matching lines and excerpts.

Alternatives

Compare before choosing

Computed 10045,511

coreyhaines31/marketingskills

ab-testing

When the user wants to plan, design, or implement an A/B test or experiment, or build a growth experimentation program. Also use when the user mentions "A/B test," "split test," "experiment," "test this change," "variant copy," "multivariate test," "hypothesis," "should I test this," "which version is better," "test two versions," "statistical significance," "how long should I run this test," "growth experiments," "experiment velocity," "experiment backlog," "ICE score," "experimentation program

Computed 10029,034

garrytan/gbrain

bulk-ingestion

End-to-end discipline for turning any large data source (audio libraries, email takeouts, document corpora, chat exports, API dumps) into brain pages at scale. The lifecycle spine: SCHEMA → ACCESS → TRIAL → EVALUATE → IMPROVE → CODIFY → TEST → SKILLIFY → BULK → MONITOR. State is tracked in a durable JSON manifest (see MANIFEST-PATTERN.md) so any crash, session boundary, or subagent fan-out resumes from ground truth instead of memory.

Computed 10024,921

alirezarezvani/claude-skills

app-store-optimization

App Store Optimization (ASO) toolkit for researching keywords, analyzing competitor rankings, generating metadata suggestions, and improving app visibility on Apple App Store and Google Play Store. Use when the user asks about ASO, app store rankings, app metadata, app titles and descriptions, app store listings, app visibility, or mobile app marketing on iOS or Android. Supports keyword research and scoring, competitor keyword analysis, metadata optimization, A/B test planning, launch checklist

Computed 1005,241

dotnet/skills

migrate-vstest-to-mtp

Migrates .NET test projects from VSTest to Microsoft.Testing.Platform (MTP). Use when user asks to "migrate to MTP", "switch from VSTest", "enable Microsoft.Testing.Platform", "use MTP runner", set OutputType=Exe only for test projects in Directory.Build.props, or mentions EnableMSTestRunner, EnableNUnitRunner, or UseMicrosoftTestingPlatformRunner. USE FOR: MTP behavioral differences vs VSTest (exit code 8, zero tests discovered, --ignore-exit-code, TESTINGPLATFORM_EXITCODE_IGNORE); centralizing