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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@watzon/baserow

v0.2.14

Published

Baserow client library

Readme

Baserow JavaScript Client

A comprehensive TypeScript client library for the Baserow API. This client provides a clean interface to interact with all aspects of the Baserow API from JavaScript environments, including Node.js, Bun, Deno, and the browser.

Features

  • 🔄 Full TypeScript support with comprehensive type definitions
  • 🔌 Universal compatibility (Node.js, Bun, Deno, and browser environments)
  • 🧩 Modular API with logical operation grouping
  • 🔐 Built-in authentication handling
  • 🚦 Proper error handling with detailed error information

Installation

Node.js

# Using npm
npm install @watzon/baserow

# Using yarn
yarn add @watzon/baserow

# Using pnpm
pnpm add @watzon/baserow

Bun

bun install @watzon/baserow

Deno

// Import from npm registry in your script
import { BaserowClient } from "npm:@watzon/baserow";

Quick Start

import { BaserowClient } from "@watzon/baserow";

// Initialize the client
const client = new BaserowClient({
  url: "https://api.baserow.io",
  token: "YOUR_API_TOKEN",
  // Optional: tokenType defaults to "Token", can be "JWT" for JWT tokens
  tokenType: "Token",
});

// Basic example: Get workspace list
const workspaces = await client.workspace.getAll();
console.log(workspaces);

// Example: Create a row in a table
const newRow = await client.databaseRows.create(
  tableId, 
  { field_1: "Value 1", field_2: "Value 2" }
);

API Structure

The client is organized into logical operation groups that match Baserow's API structure:

// Health check operations
client.health.getFullHealthCheck();

// Admin operations
client.admin.getUserList();

// Workspace operations
client.workspace.getAll();

// Database row operations
client.databaseRows.getAll(tableId);

Roadmap

Core Infrastructure

  • [x] Base client with authentication handling
  • [x] Request/response handling with error management
  • [x] TypeScript type definitions
  • [ ] Comprehensive documentation
  • [ ] Full test coverage
  • [ ] Browser bundle optimization

API Operations

System & Administration

  • [x] Health Operations - Server health checks and diagnostics
  • [x] Admin Operations - User, instance and settings management
  • [ ] License Operations - License management
  • [ ] Job Operations - Background job management
  • [ ] Template Operations - Template management

User & Workspace Management

  • [x] Workspace Operations - Creating and managing workspaces/groups
  • [ ] User Operations - User profile and settings
  • [ ] Team Operations - Team management
  • [ ] Role Assignment Operations - Permissions and role management
  • [ ] SSO Operations - Single Sign-On integrations
  • [ ] User Source Operations - External user sources

Database Operations

  • [x] Database Row Operations - CRUD operations for table rows
  • [x] Database Table Operations - Table creation and management
  • [x] Database Field Operations - Field definition and customization
  • [ ] Database View Operations - View creation and configuration
  • [ ] Database Webhook Operations - Webhook management
  • [ ] Database Token Operations - API token management

File Operations

  • [ ] User File Operations - User file management
  • [ ] Secure File Operations - Secure file handling

Additional Features

  • [ ] Application Operations - Application management
  • [ ] Integration Operations - Third-party integrations
  • [ ] Builder Operations - Page builder functionality
  • [ ] Dashboard Operations - Dashboard creation and management
  • [ ] Notification Operations - User notifications
  • [ ] Trash Operations - Trash management and restoration

Platform Support

  • [x] Node.js compatibility
  • [x] Bun compatibility
  • [ ] Deno compatibility (needs testing)
  • [ ] Browser compatibility (needs testing)
  • [ ] React Native compatibility (needs testing)

Documentation

  • [ ] API Reference
  • [ ] Usage Examples
  • [ ] Migration Guide
  • [ ] Contributing Guide

Development

For development and testing instructions, please refer to the test directory README.

License

MIT

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.