1.23.0 • Published 8 months ago

@playbookmedia/backend-node-sdk v1.23.0

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

Vector Backend Node SDK

npm package Build Status Downloads Issues Code Coverage Semantic Release

Official Node.js SDK for interacting with the Vector API

Overview

This package provides a TypeScript/JavaScript client SDK for interacting with Vector's backend services. It's part of the Vector protobuf definitions repository which contains API definitions, SDKs, and related tooling for Vector's microservices architecture.

Features

  • Full TypeScript support with comprehensive type definitions
  • Promise-based API
  • Automatic request/response handling
  • Built-in error handling and retry logic
  • Semantic versioning and releases
  • Comprehensive test coverage
  • Modern ES6+ codebase

Installation

npm install @playbookmedia/backend-node-sdk

Or with yarn:

yarn add @playbookmedia/backend-node-sdk

Requirements

  • Node.js >= 12.0
  • npm or yarn package manager

Quick Start

import { VectorClient } from '@playbookmedia/backend-node-sdk';

// Initialize the client
const client = new VectorClient({
  // Add your configuration options here
});

// Example usage
async function example() {
  try {
    const response = await client.someEndpoint();
    console.log(response);
  } catch (error) {
    console.error('Error:', error);
  }
}

Development

Setup

  1. Clone the repository
  2. Install dependencies:
npm install

Available Scripts

  • npm run build - Builds the package using TypeScript
  • npm run clean - Removes build artifacts
  • npm run test - Runs tests with Jest
  • npm run lint - Lints code using ESLint
  • npm run format - Formats code using Prettier
  • npm run typecheck - Runs TypeScript type checking
  • npm run semantic-release - Handles semantic versioning and releases

Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes using conventional commits (npm run cm)
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Project Structure

├── src/           # Source code
├── lib/           # Compiled JavaScript
├── tests/         # Test files
└── types/         # TypeScript type definitions

Documentation

For detailed API documentation and examples, please visit our documentation site.

License

MIT © Vector Engineering

1.23.0

8 months ago

1.22.0

8 months ago

1.21.0

8 months ago

1.20.0

8 months ago

1.19.0

8 months ago

1.18.0

8 months ago

1.17.0

8 months ago

1.16.0

8 months ago

1.15.2

8 months ago

1.15.1

8 months ago

1.15.0

8 months ago

1.14.0

8 months ago

1.13.0

8 months ago

1.12.0

8 months ago

1.11.23

10 months ago

1.11.22

10 months ago

1.11.21

10 months ago

1.11.20

10 months ago

1.11.19

10 months ago

1.11.18

10 months ago

1.11.17

10 months ago

1.11.16

10 months ago

1.11.15

10 months ago

1.11.14

10 months ago

1.11.13

10 months ago

1.11.12

10 months ago

1.11.11

10 months ago

1.11.10

10 months ago

1.11.9

10 months ago

1.11.8

10 months ago

1.11.7

10 months ago

1.11.6

10 months ago

1.11.5

10 months ago

1.11.4

10 months ago

1.11.3

10 months ago

1.11.2

10 months ago

1.11.1

10 months ago

1.11.0

10 months ago

1.10.3

10 months ago

1.10.2

10 months ago

1.10.1

10 months ago

1.10.0

10 months ago

1.9.4

10 months ago

1.9.3

10 months ago

1.9.2

10 months ago

1.9.1

10 months ago

1.9.0

10 months ago

1.8.2

10 months ago

1.8.1

10 months ago

1.8.0

10 months ago

1.7.0

10 months ago

1.6.0

10 months ago

1.5.0

10 months ago

1.4.0

10 months ago

1.3.5

10 months ago

1.3.4

10 months ago

1.0.0

10 months ago