← Base44CONTENT HISTORY

Update to Base44

Snapshot Sep 30, 2026 · 23:18 UTC · version 4.0.1

Collection source: not recorded for this historical snapshot. These snapshots do not have a confirmed matching collection source. Differences in file lists alone do not establish changes to the package.

WHAT CHANGED · RULE-BASED ANALYSIS

Supporting file metadata differs

Newly listed paths: agents/openai.yaml. This compares saved file lists, not package contents; a different collection source can change the list.

Observed in package metadata. These changes alone do not establish a new customer-facing feature.

Supporting files

Before

[{"relative_path":"references/QUICK_REFERENCE.md","size_in_bytes":5035},{"relative_path":"references/analytics.md","size_in_bytes":2508},{"relative_path":"references/app-logs.md","size_in_bytes":2941},{"relative_path":"references/auth.md...

After

[{"relative_path":"agents/openai.yaml","size_in_bytes":247},{"relative_path":"references/QUICK_REFERENCE.md","size_in_bytes":5035},{"relative_path":"references/analytics.md","size_in_bytes":2508},{"relative_path":"references/app-logs.md"...

Compare saved observations

Download comparison JSON
Full technical diff · 1 changed fields

changed /included_files

BEFORE
[
  {
    "relative_path": "references/QUICK_REFERENCE.md",
    "size_in_bytes": 5035
  },
  {
    "relative_path": "references/analytics.md",
    "size_in_bytes": 2508
  },
  {
    "relative_path": "references/app-logs.md",
    "size_in_bytes": 2941
  },
  {
    "relative_path": "references/auth.md",
    "size_in_bytes": 20983
  },
  {
    "relative_path": "references/base44-agents.md",
    "size_in_bytes": 11157
  },
  {
    "relative_path": "references/client.md",
    "size_in_bytes": 8303
  },
  {
    "relative_path": "references/connectors.md",
    "size_in_bytes": 5105
  },
  {
    "relative_path": "references/entities.md",
    "size_in_bytes": 11896
  },
  {
    "relative_path": "references/functions.md",
    "size_in_bytes": 7807
  },
  {
    "relative_path": "references/integrations.md",
    "size_in_bytes": 10894
  },
  {
    "relative_path": "references/sso.md",
    "size_in_bytes": 2219
  },
  {
    "relative_path": "references/users.md",
    "size_in_bytes": 2201
  }
]
AFTER
[
  {
    "relative_path": "agents/openai.yaml",
    "size_in_bytes": 247
  },
  {
    "relative_path": "references/QUICK_REFERENCE.md",
    "size_in_bytes": 5035
  },
  {
    "relative_path": "references/analytics.md",
    "size_in_bytes": 2508
  },
  {
    "relative_path": "references/app-logs.md",
    "size_in_bytes": 2941
  },
  {
    "relative_path": "references/auth.md",
    "size_in_bytes": 20983
  },
  {
    "relative_path": "references/base44-agents.md",
    "size_in_bytes": 11157
  },
  {
    "relative_path": "references/client.md",
    "size_in_bytes": 8303
  },
  {
    "relative_path": "references/connectors.md",
    "size_in_bytes": 5105
  },
  {
    "relative_path": "references/entities.md",
    "size_in_bytes": 11896
  },
  {
    "relative_path": "references/functions.md",
    "size_in_bytes": 7807
  },
  {
    "relative_path": "references/integrations.md",
    "size_in_bytes": 10894
  },
  {
    "relative_path": "references/sso.md",
    "size_in_bytes": 2219
  },
  {
    "relative_path": "references/users.md",
    "size_in_bytes": 2201
  }
]
Full snapshot data
{
  "name": "base44-sdk",
  "description": "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",
  "included_files": [
    {
      "relative_path": "agents/openai.yaml",
      "size_in_bytes": 247
    },
    {
      "relative_path": "references/QUICK_REFERENCE.md",
      "size_in_bytes": 5035
    },
    {
      "relative_path": "references/analytics.md",
      "size_in_bytes": 2508
    },
    {
      "relative_path": "references/app-logs.md",
      "size_in_bytes": 2941
    },
    {
      "relative_path": "references/auth.md",
      "size_in_bytes": 20983
    },
    {
      "relative_path": "references/base44-agents.md",
      "size_in_bytes": 11157
    },
    {
      "relative_path": "references/client.md",
      "size_in_bytes": 8303
    },
    {
      "relative_path": "references/connectors.md",
      "size_in_bytes": 5105
    },
    {
      "relative_path": "references/entities.md",
      "size_in_bytes": 11896
    },
    {
      "relative_path": "references/functions.md",
      "size_in_bytes": 7807
    },
    {
      "relative_path": "references/integrations.md",
      "size_in_bytes": 10894
    },
    {
      "relative_path": "references/sso.md",
      "size_in_bytes": 2219
    },
    {
      "relative_path": "references/users.md",
      "size_in_bytes": 2201
    }
  ],
  "skill_md_contents": "---\nname: base44-sdk\ndescription: \"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\"\n---\n\n# Base44 Coder\n\nBuild apps on the Base44 platform using the Base44 JavaScript SDK.\n\n## ⚡ IMMEDIATE ACTION REQUIRED - Read This First\n\nThis skill activates on ANY mention of \"base44\" or when a `base44/` folder exists. **DO NOT read documentation files or search the web before acting.**\n\n**Your first action MUST be:**\n1. Check if `base44/config.jsonc` exists in the current directory\n2. If **YES** (existing project scenario):\n   - This skill (base44-sdk) handles the request\n   - Implement features using Base44 SDK\n   - Do NOT use base44-cli unless user explicitly requests CLI commands\n3. If **NO** (new project scenario):\n   - Transfer to base44-cli skill for project initialization\n   - This skill cannot help until project is initialized\n\n## When to Use This Skill vs base44-cli\n\n**Use base44-sdk when:**\n- Building features in an **EXISTING** Base44 project\n- `base44/config.jsonc` already exists in the project\n- Base44 SDK imports are present (`@base44/sdk`)\n- Writing JavaScript/TypeScript code using Base44 SDK modules\n- Implementing functionality, components, or features\n- User mentions: \"implement\", \"build a feature\", \"add functionality\", \"write code for\"\n- User says \"create a [type] app\" **and** a Base44 project already exists\n\n**DO NOT USE base44-sdk for:**\n- ❌ Initializing new Base44 projects (use `base44-cli` instead)\n- ❌ Empty directories without Base44 configuration\n- ❌ When user says \"create a new Base44 project/app/site\" and no project exists\n- ❌ CLI commands like `npx base44 create`, `npx base44 deploy`, `npx base44 login` (use `base44-cli`)\n\n**Skill Dependencies:**\n- `base44-sdk` assumes a Base44 project is **already initialized**\n- `base44-cli` is a **prerequisite** for `base44-sdk` in new projects\n- If user wants to \"create an app\" and no Base44 project exists, use `base44-cli` first\n\n**State Check Logic:**\nBefore selecting this skill, verify:\n- IF (user mentions \"create/build app\" OR \"make a project\"):\n  - IF (directory is empty OR no `base44/config.jsonc` exists):\n    → Use **base44-cli** (project initialization needed)\n  - ELSE:\n    → Use **base44-sdk** (project exists, build features)\n\n## Quick Start\n\n```javascript\n// In Base44-generated apps, base44 client is pre-configured and available\n\n// CRUD operations\nconst task = await base44.entities.Task.create({ title: \"New task\", status: \"pending\" });\nconst tasks = await base44.entities.Task.list();\nawait base44.entities.Task.update(task.id, { status: \"done\" });\n\n// Get current user\nconst user = await base44.auth.me();\n```\n\n```javascript\n// External apps\nimport { createClient } from \"@base44/sdk\";\n\n// IMPORTANT: Use 'appId' (NOT 'clientId' or 'id')\nconst base44 = createClient({ appId: \"your-app-id\" });\nawait base44.auth.loginViaEmailPassword(\"user@example.com\", \"password\");\n```\n\n## ⚠️ CRITICAL: Do Not Hallucinate APIs\n\n**Before writing ANY Base44 code, verify method names against this table or [QUICK_REFERENCE.md](references/QUICK_REFERENCE.md).**\n\nBase44 SDK has unique method names. Do NOT assume patterns from Firebase, Supabase, or other SDKs.\n\n### Authentication - WRONG vs CORRECT\n\n| ❌ WRONG (hallucinated) | ✅ CORRECT |\n|------------------------|-----------|\n| `signInWithGoogle()` | `loginWithProvider('google')` |\n| `signInWithProvider('google')` | `loginWithProvider('google')` |\n| `auth.google()` | `loginWithProvider('google')` |\n| `signInWithEmailAndPassword(email, pw)` | `loginViaEmailPassword(email, pw)` |\n| `signIn(email, pw)` | `loginViaEmailPassword(email, pw)` |\n| `createUser()` / `signUp()` | `register({email, password})` |\n| `onAuthStateChanged()` | `me()` (no listener, call when needed) |\n| `currentUser` | `await auth.me()` |\n\n### Functions - WRONG vs CORRECT\n\n| ❌ WRONG (hallucinated) | ✅ CORRECT |\n|------------------------|-----------|\n| `functions.call('name', data)` | `functions.invoke('name', data)` |\n| `functions.run('name', data)` | `functions.invoke('name', data)` |\n| `callFunction('name', data)` | `functions.invoke('name', data)` |\n| `httpsCallable('name')(data)` | `functions.invoke('name', data)` |\n\n### Integrations - WRONG vs CORRECT\n\n| ❌ WRONG (hallucinated) | ✅ CORRECT |\n|------------------------|-----------|\n| `ai.generate(prompt)` | `integrations.Core.InvokeLLM({prompt})` |\n| `openai.chat(prompt)` | `integrations.Core.InvokeLLM({prompt})` |\n| `llm(prompt)` | `integrations.Core.InvokeLLM({prompt})` |\n| `sendEmail(to, subject, body)` | `integrations.Core.SendEmail({to, subject, body})` |\n| `email.send()` | `integrations.Core.SendEmail({to, subject, body})` |\n| `uploadFile(file)` | `integrations.Core.UploadFile({file})` |\n| `storage.upload(file)` | `integrations.Core.UploadFile({file})` |\n\n### Entities - WRONG vs CORRECT\n\n| ❌ WRONG (hallucinated) | ✅ CORRECT |\n|------------------------|-----------|\n| `entities.Task.find({...})` | `entities.Task.filter({...})` |\n| `entities.Task.findOne(id)` | `entities.Task.get(id)` |\n| `entities.Task.insert(data)` | `entities.Task.create(data)` |\n| `entities.Task.remove(id)` | `entities.Task.delete(id)` |\n| `entities.Task.onChange(cb)` | `entities.Task.subscribe(cb)` |\n\n## SDK Modules\n\n| Module | Purpose | Reference |\n|--------|---------|-----------|\n| `entities` | CRUD operations on data models | [entities.md](references/entities.md) |\n| `auth` | Login, register, user management | [auth.md](references/auth.md) |\n| `agents` | AI conversations and messages | [base44-agents.md](references/base44-agents.md) |\n| `functions` | Backend function invocation | [functions.md](references/functions.md) |\n| `integrations` | AI, email, file uploads, custom APIs | [integrations.md](references/integrations.md) |\n| `analytics` | Track custom events and user activity | [analytics.md](references/analytics.md) |\n| `appLogs` | Log user activity in app | [app-logs.md](references/app-logs.md) |\n| `users` | Invite users to the app | [users.md](references/users.md) |\n| `asServiceRole.connectors` | App-scoped OAuth tokens (service role only) | [connectors.md](references/connectors.md) |\n| `asServiceRole.sso` | SSO token generation (service role only) | [sso.md](references/sso.md) |\n\nFor client setup and authentication modes, see [client.md](references/client.md).\n\n### TypeScript and type registries\n\nEach reference file includes a \"Type Definitions\" section with TypeScript interfaces and types for the module's methods, parameters, and return values.\n\n**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.\n\n**Manual augmentation:** You can instead augment the registries yourself in a `.d.ts` file; see the Type Definitions sections in [entities.md](references/entities.md), [functions.md](references/functions.md), and [base44-agents.md](references/base44-agents.md).\n\n## Installation\n\nInstall the Base44 SDK:\n\n```bash\nnpm install @base44/sdk\n```\n\n**Important:** Never assume or hardcode the `@base44/sdk` package version. Always install without a version specifier to get the latest version.\n\n## Creating a Client (External Apps)\n\nWhen creating a client in external apps, **ALWAYS use `appId` as the parameter name**:\n\n```javascript\nimport { createClient } from \"@base44/sdk\";\n\n// ✅ CORRECT\nconst base44 = createClient({ appId: \"your-app-id\" });\n\n// ❌ WRONG - Do NOT use these:\n// const base44 = createClient({ clientId: \"your-app-id\" });  // WRONG\n// const base44 = createClient({ id: \"your-app-id\" });        // WRONG\n```\n\n**Required parameter:** `appId` (string) - Your Base44 application ID\n\n**Optional parameters:**\n- `token` (string) - Pre-authenticated user token\n- `options` (object) - Configuration options\n  - `options.onError` (function) - Global error handler\n\n**Example with error handler:**\n```javascript\nconst base44 = createClient({\n  appId: \"your-app-id\",\n  options: {\n    onError: (error) => {\n      console.error(\"Base44 error:\", error);\n    }\n  }\n});\n```\n\n## Module Selection\n\n**Working with app data?**\n- Create/read/update/delete records → `entities`\n- Import data from file → `entities.importEntities()`\n- Realtime updates → `entities.EntityName.subscribe()`\n\n**User management?**\n- Login/register/logout → `auth`\n- Get current user → `auth.me()`\n- Update user profile → `auth.updateMe()`\n- Invite users → `users.inviteUser()`\n\n**AI features?**\n- Chat with AI agents → `agents` (requires logged-in user)\n- Create new conversation → `agents.createConversation()`\n- Manage conversations → `agents.getConversations()`\n- Generate text/JSON with AI → `integrations.Core.InvokeLLM()`\n- Generate images → `integrations.Core.GenerateImage()`\n\n**Custom backend logic?**\n- Run server-side code → `functions.invoke()`\n- Need admin access → `base44.asServiceRole.functions.invoke()`\n\n**External services?**\n- Send emails → `integrations.Core.SendEmail()`\n- Upload files → `integrations.Core.UploadFile()`\n- Custom APIs → `integrations.custom.call()`\n- App-scoped OAuth (app builder's account) → `asServiceRole.connectors.getConnection()` (backend only)\n\n**Tracking and analytics?**\n- Track custom events → `analytics.track()`\n- Log page views/activity → `appLogs.logUserInApp()`\n\n## Common Patterns\n\n### Filter and Sort Data\n\n```javascript\nconst pendingTasks = await base44.entities.Task.filter(\n  { status: \"pending\", assignedTo: userId },  // query\n  \"-created_date\",                             // sort (descending)\n  10,                                          // limit\n  0                                            // skip\n);\n```\n\n### Protected Routes (check auth)\n\n```javascript\nconst user = await base44.auth.me();\nif (!user) {\n  // Navigate to your custom login page\n  navigate('/login', { state: { returnTo: window.location.pathname } });\n  return;\n}\n```\n\n### Backend Function Call\n\n```javascript\n// Frontend\nconst result = await base44.functions.invoke(\"processOrder\", {\n  orderId: \"123\",\n  action: \"ship\"\n});\n\n// Backend function (Deno)\nimport { createClientFromRequest } from \"npm:@base44/sdk\";\n\nDeno.serve(async (req) => {\n  const base44 = createClientFromRequest(req);\n  const { orderId, action } = await req.json();\n  // Process with service role for admin access\n  const order = await base44.asServiceRole.entities.Orders.get(orderId);\n  return Response.json({ success: true });\n});\n```\n\n### Service Role Access\n\nUse `asServiceRole` in backend functions for admin-level operations:\n\n```javascript\n// User mode - respects permissions\nconst myTasks = await base44.entities.Task.list();\n\n// Service role - full access (backend only)\nconst allTasks = await base44.asServiceRole.entities.Task.list();\nconst token = await base44.asServiceRole.connectors.getAccessToken(\"slack\");\n```\n\n## Frontend vs Backend\n\n| Capability | Frontend | Backend |\n|------------|----------|---------|\n| `entities` (user's data) | Yes | Yes |\n| `auth` | Yes | Yes |\n| `agents` | Yes | Yes |\n| `functions.invoke()` | Yes | Yes |\n| `functions.fetch()` | Yes | Yes |\n| `integrations` | Yes | Yes |\n| `analytics` | Yes | Yes |\n| `appLogs` | Yes | Yes |\n| `users` | Yes | Yes |\n| `asServiceRole.*` | No | Yes |\n| `asServiceRole.connectors` (app OAuth) | No | Yes |\n| `asServiceRole.sso` | No | Yes |\n\nBackend functions use `Deno.serve()` and `createClientFromRequest(req)` to get a properly authenticated client.\n"
}

SHA-256: 4ab4c2aa0be5ea13ef5a9f880cd12bd30612c37e9ac04f9421ca7a99f8f2877c