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

@edge-base/core

v0.2.6

Published

EdgeBase core SDK — platform-agnostic client for auth, database, storage, and functions

Readme


@edge-base/core is the low-level foundation used by the public EdgeBase SDKs.

Use it when you are:

  • building a custom runtime wrapper on top of EdgeBase
  • reusing the query builder, storage layer, or HTTP transport in internal tooling
  • implementing environment-specific SDK surfaces that should not depend on the browser or admin entry points

If you are building an application, you usually want a higher-level package instead:

EdgeBase is the open-source edge-native BaaS that runs on Edge, Docker, and Node.js.

This package is one part of the wider EdgeBase platform. For the full platform, CLI, Admin Dashboard, server runtime, docs, and all public SDKs, see the main repository: edge-base/edgebase.

Documentation Map

Use this README for the package boundary and shared primitives, then jump into the runtime docs:

  • SDK Overview Public package matrix and install entry points
  • Client SDK Higher-level browser query patterns built on these primitives
  • Admin SDK Reference Trusted-server APIs that reuse the same transport and storage layers
  • Database Admin SDK Query, pagination, batch writes, and raw SQL context
  • Storage Upload, download, metadata, and signed URL flows

For AI Coding Assistants

This package ships with an llms.txt file for AI-assisted development.

Use it when you want an agent or code assistant to:

  • stay on the low-level @edge-base/core surface instead of assuming browser or admin entry points
  • use the real HttpClient, DbRef, TableRef, and StorageClient APIs
  • keep custom wrappers aligned with the generated EdgeBase transports

You can find it:

  • in this package after install: node_modules/@edge-base/core/llms.txt
  • in the repository: llms.txt

Installation

npm install @edge-base/core

Quick Start

import {
  ContextManager,
  DbRef,
  FunctionsClient,
  HttpClient,
  StorageClient,
} from '@edge-base/core';

const contextManager = new ContextManager();
const http = new HttpClient({
  baseUrl: 'https://your-project.edgebase.fun',
  contextManager,
});

const db = new DbRef('app', undefined, http);
const posts = await db.table('posts').limit(10).getList();

const storage = new StorageClient(http);
const bucket = storage.bucket('avatars');
const url = bucket.getUrl('user-1.jpg');

const functions = new FunctionsClient(http);
const health = await functions.get('health');

console.log(posts.items, url, health);

Core API

These are the main primitives exported by @edge-base/core:

  • HttpClient Shared authenticated transport with token refresh and service-key support
  • DbRef, TableRef, DocRef Low-level database query builders and CRUD surfaces
  • StorageClient, StorageBucket Shared storage bucket primitives
  • FunctionsClient Function invocation helper
  • increment, deleteField Field operation helpers
  • ContextManager Shared request/user context container
  • EdgeBaseError Common SDK error type

Choose The Right Package

| Package | Use it for | | --- | --- | | @edge-base/core | Custom wrappers, low-level integrations, shared SDK primitives | | @edge-base/web | Browser and untrusted client apps | | @edge-base/react-native | React Native apps | | @edge-base/admin | Trusted server-side code with admin access |

License

MIT