Skip to content

Installation

Package Manager

Installbash
npm install @spaceinvoices/js-sdk
# or
bun add @spaceinvoices/js-sdk
# or
yarn add @spaceinvoices/js-sdk

Use On Your Server

Use the JavaScript SDK from your backend or trusted server environment where your API key stays private.

If you need browser-side UI, use the Embed SDK or React UI instead of exposing API keys in client-side code.

Requirements

  • Node.js 18+ (for Node.js usage)
  • Bun or another modern JavaScript runtime if you are scripting outside a long-running server

TypeScript

TypeScript types are included in the package. No additional @types/* package is needed.

import SpaceInvoices from '@spaceinvoices/js-sdk';
import type { Invoice, Customer } from '@spaceinvoices/js-sdk';

Next Steps