Skip to content

aptlogica/base-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

105 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

API Documentation

Full API documentation is auto-generated using TypeDoc. To generate and view docs locally:

npm run docs
open docs/index.html

Inline code is documented with JSDoc comments for clarity and IDE support.

Contributing

We welcome contributions! Please see CONTRIBUTING.md for guidelines, and use the provided issue and pull request templates. All contributors must follow our Code of Conduct.

serenibase-sdk - TypeScript SDK for SereniBase UI

Enterprise-grade TypeScript SDK and open source backend SDK for SereniBase platform integration. A comprehensive developer toolkit and API integration SDK providing type-safe API communication, authentication management, and complete service layer for workspace, database, and data operations.

Version TypeScript License

CI Coverage

Overview

Base SDK is an open-source SDK for backend integration that helps developers easily connect APIs, manage services, and build scalable applications faster. It’s designed to reduce complexity and improve development efficiency. Whether you're looking to build apps with SDK integrations, connect multiple APIs, or create scalable backend workflows, Sereni Base SDK provides a reliable foundation for modern development.

Key Features

  • Type-Safe API Client: Full TypeScript support with comprehensive type definitions
  • Authentication Management: Secure session handling with automatic token refresh
  • Database Operations: Complete CRUD operations for workspaces, bases, tables, and records
  • Error Handling: Comprehensive error management with detailed error types
  • Event System: Real-time event handling for collaborative features
  • Optimized for Production: Built specifically for SereniBase UI integration

Architecture

  • Modern TypeScript codebase
  • Axios-based HTTP client
  • Event-driven extensibility

Installation

npm install serenibase-sdk

Configuration

See .env.example for environment variables and configuration options.

Quick Start

import { SereniBaseClient } from 'serenibase-sdk';

// Initialize client
const client = new SereniBaseClient({
  baseURL: 'https://api.serenibase.com',
  auth: {
    type: 'bearer',
    token: 'your-api-token'
  }
});

// Authenticate user
const authResult = await client.auth.login({
  email: 'user@example.com',
  password: 'secure-password'
});

// Create a new workspace
const workspace = await client.workspace.create({
  name: 'My Project',
  description: 'Project workspace'
});

// Create a base within the workspace
const base = await client.baseService.create({
  title: 'Customer Database',
  description: 'Customer management system',
  workspace_id: workspace.id
});

// Add a table to the base
const table = await client.tableService.create(base.id, {
  name: 'customers',
  fields: [
    { name: 'name', type: 'text', required: true },
    { name: 'email', type: 'email', required: true },
    { name: 'created_at', type: 'datetime', defaultValue: 'now()' }
  ]
});

console.log('Setup complete:', { workspace, base, table });

Development

Local Setup

# Clone the repository
git clone https://github.com/aptlogica/base-sdk.git
cd base-sdk

# Install dependencies
npm install

# Set up environment
cp .env.example .env
# Configure API endpoints and keys

# Run in development mode
npm run dev

# Build for production
npm run build

Environment Configuration

SERENIBASE_BASE_URL=http://localhost:8080
SERENIBASE_API_TOKEN=replace-me
SERENIBASE_TIMEOUT_MS=30000

Testing

# Run unit tests
npm test

# Run tests with coverage
npm run test:coverage

# View coverage report
open coverage/lcov-report/index.html

# Run integration tests
npm run test:integration

Security

See SECURITY.md for reporting vulnerabilities.

License

MIT License. Copyright (c) 2026 Aptlogica Technologies.

About

A TypeScript SDK that enables developers to integrate with the Base platform and manage data through its APIs.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors