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-logs.md

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

App Logs Module

Log user activity in your app via base44.appLogs.

Contents

Methods

Method Signature Description
logUserInApp(pageName) Promise<void> Log user activity on a page

fetchLogs(params?) and getStats(params?) also exist on base44.appLogs, but are marked @internal in the SDK source — they're not part of the module's documented public contract (no stable parameter/return shape is published), so avoid depending on them in app code. logUserInApp() is the one public method, and it's available in any authentication mode.

Examples

Log User Activity

// Log when user visits a page
await base44.appLogs.logUserInApp("dashboard");

// Log specific page visits
await base44.appLogs.logUserInApp("settings");
await base44.appLogs.logUserInApp("profile");

// Log feature usage
await base44.appLogs.logUserInApp("export-button-click");

The page name doesn't have to be an actual page - it can be any string you want to track.

Use Cases

Track Page Views in React

// Log page views on route change
useEffect(() => {
  base44.appLogs.logUserInApp(window.location.pathname);
}, [location.pathname]);

Track Feature Usage

// Log when user uses specific features
function handleExport() {
  base44.appLogs.logUserInApp("export-data");
  // ... export logic
}

function handleSettingsChange() {
  base44.appLogs.logUserInApp("settings-updated");
  // ... save settings
}

Notes

  • Logs appear in the Analytics page of your app dashboard
  • App logs track page-level and feature-level activity
  • Use analytics.track() for custom events with properties, appLogs.logUserInApp() for simple page/feature tracking
  • logUserInApp() silently no-ops when analytics consent isn't granted (it feeds App Analytics, so it follows the same consent gate)

Type Definitions

/** App Logs module for tracking app usage. Available in any authentication mode. */
interface AppLogsModule {
  /**
   * Log user activity in the app.
   * @param pageName - Name of the page or section being visited.
   * @returns Promise that resolves when the log is recorded.
   */
  logUserInApp(pageName: string): Promise<void>;

  /** @internal Not part of the module's public contract — avoid relying on this. */
  fetchLogs(params?: Record<string, any>): Promise<any>;

  /** @internal Not part of the module's public contract — avoid relying on this. */
  getStats(params?: Record<string, any>): Promise<any>;
}

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