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

@open-xchange/soap-client

v0.0.12

Published

SOAP client for OX App Suite

Readme

@open-xchange/soap-client

This project provides an API facade for the OX App Suite Middleware SOAP API, making it easy to interact with provisioning endpoints such as contexts, users, secondary accounts, and more.

Features

  • API Facade: Programmatically access and manage OX App Suite resources via a simple JavaScript API.
  • Provisioning Script: Easily create, update, and delete contexts, users, and secondary accounts from the command line.
  • Configurable: Uses .env files for environment-specific configuration.

Usage

CLI Provisioning

You can use the built-in provisioning script to automate resource creation. Simply run:

npx @open-xchange/soap-client

If you already have installed the package in your project, you can run the script directly:

pnpm provision.js

This will execute the provisioning tool, which reads configuration from a JSON file (default: ./provisioning.json). You can specify a different file with the -f option:

npx @open-xchange/soap-client -f example-provisioning.json

The JSON file should contain the resources to provision. For example:

{
  "contexts": [
    {
      "data": {
        "name": "test",
        "capabilities": "foo,bar",
        "config": {
          "entries": [{
            "key": "config",
            "value": {
              "entries": [
                { "key": "io.ox/core//foobar", "value": "false" }
              ]
            }
          }]
        }
      },
      "users": [
        {
          "name": "testuser",
          "primaryEmail": "[email protected]",
          "display_name": "Test User",
          "imapLogin": "testuser-123",
          "imapServer": "main-dovecot",
          "smtpServer": "main-postfix",
          "email1": "[email protected]",
          "password": "supersecret",
          "sur_name": "User",
          "given_name": "Test"
        }
      ],
      "secondaryAccount":
        {
          "name": "info",
          "login": "[email protected]",
          "primaryAddress": "[email protected]",
          "mailEndpointSource": "primary",
          "transportEndpointSource": "primary",
          "personal": "Info"
        }
    }
  ]
}

Example: Creating Resources

The CLI supports creating contexts, users, and secondary accounts:

npx @open-xchange/soap-client create context --name my-context
npx @open-xchange/soap-client create user --context-id 123 --email [email protected] --name myuser
npx @open-xchange/soap-client create account --context-id 123 --name info --email [email protected] --users 1,2,3

Example: Deleting Resources

npx @open-xchange/soap-client delete context --id 123
npx @open-xchange/soap-client delete user --context-id 123 --id 456
npx @open-xchange/soap-client delete account --context-id 123 --email [email protected] --users 1,2,3

API Usage

You can also use the API programmatically in your Node.js projects and choose between either the common or the reseller API when doing so by importing the respective service:

import { contextService, userService } from '@open-xchange/soap-client/common'

const context = await contextService.create({ name: 'my-context' })
const user = await userService.create(context, { name: 'myuser', email1: '[email protected]' })

Configuration

Set up your .env file with the required environment variables. See .env.default for an example.


For more details, see the bin/provision.js script and the services directory.