npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@base44/sdk

v0.8.19

Published

JavaScript SDK for Base44 API

Readme

Base44 JavaScript SDK

The Base44 SDK provides a JavaScript interface for building apps on the Base44 platform.

You can use it in two ways:

  • Inside Base44 apps: When Base44 generates your app, the SDK is already set up and ready to use.
  • External apps: Use the SDK to build your own frontend or backend that uses Base44 as a backend service.

Installation

Inside Base44 apps: The SDK is already available. No installation needed.

External apps: Install the SDK via npm:

npm install @base44/sdk

Modules

The SDK provides access to Base44's functionality through the following modules:

  • agents: Interact with AI agents and manage conversations.
  • analytics: Track custom events in your app.
  • app-logs: Access and query app logs.
  • auth: Manage user authentication, registration, and session handling.
  • connectors: Manage OAuth connections and access tokens for third-party services.
  • entities: Work with your app's data entities using CRUD operations.
  • functions: Execute backend functions.
  • integrations: Access pre-built and third-party integrations.

Quickstarts

How you get started depends on whether you're working inside a Base44-generated app or building your own.

Inside Base44 apps

In Base44-generated apps, the client is pre-configured. Just import and use it:

import { base44 } from "@/api/base44Client";

// Create a new task
const newTask = await base44.entities.Task.create({
  title: "Complete project documentation",
  status: "pending",
  dueDate: "2024-12-31",
});

// Update the task
await base44.entities.Task.update(newTask.id, {
  status: "in-progress",
});

// List all tasks
const tasks = await base44.entities.Task.list();

External apps

When using Base44 as a backend for your own app, install the SDK and create the client yourself:

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

// Create a client for your Base44 app
const base44 = createClient({
  appId: "your-app-id", // Find this in the Base44 editor URL
});

// Read public data
const products = await base44.entities.Products.list();

// Authenticate a user (token is automatically set)
await base44.auth.loginViaEmailPassword("[email protected]", "password");

// Access user's data
const userOrders = await base44.entities.Orders.list();

Service role

By default, the client operates with user-level permissions, limiting access to what the current user can see and do. The service role provides elevated permissions for backend operations and is only available in Base44-hosted backend functions. External backends can't use service role permissions.

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

Deno.serve(async (req) => {
  const base44 = createClientFromRequest(req);

  // Access all data with admin-level permissions
  const allOrders = await base44.asServiceRole.entities.Orders.list();

  return Response.json({ orders: allOrders });
});

Learn more

The best way to get started with the JavaScript SDK is to have Base44 build an app for you. Once you have an app, you can explore the generated code and experiment with the SDK to see how it works in practice. You can also ask Base44 to demonstrate specific features of the SDK.

For a deeper understanding, check out these guides:

  1. Base44 client - Work with the client in frontend, backend, and external app contexts.
  2. Work with data - Create, read, update, and delete data.
  3. Common SDK patterns - Authentication, integrations, functions, and error handling.

For the complete documentation and API reference, visit the Base44 Developer Docs.

Development

Build the SDK

Build the SDK from source:

npm install
npm run build

Run tests

Run the test suite:

# Run all tests
npm test

# Run unit tests only
npm run test:unit

# Run with coverage
npm run test:coverage

For E2E tests, create a tests/.env file with:

BASE44_APP_ID=your_app_id
BASE44_AUTH_TOKEN=your_auth_token

Generate documentation

Generate API documentation locally:

# Process and preview locally
npm run create-docs
cd docs
mintlify dev