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

@extrahorizon/javascript-sdk

v8.8.1

Published

This package serves as a JavaScript wrapper around all Extra Horizon cloud services.

Downloads

479

Readme

Extra Horizon JavaScript SDK

This package serves as a JavaScript wrapper around all Extra Horizon cloud services.

Features

  • Auth: Provides authentication functionality. The Authentication service supports both OAuth 1.0a and OAuth 2.0 standards.
  • Users: The user service stands in for managing users themselves, as well as roles related to users and groups of users.
  • Data: A flexible data storage for structured data. Additionally, the service enables you to configure a state machine for instances of the structured data. You can couple actions that need to be triggered by the state machine, when/as the entities (instance of structured data) change their state. Thanks to these actions you can define automation rules (see later for more in depth description). These actions also make it possible to interact with other services.
  • Files: A service that handles file storage, metadata & file retrieval based on tokens.
  • Tasks: Start functions on demand, directly or at a future moment.
  • Templates: The template service manages templates used to build emails. It can be used to retrieve, create, update or delete templates as well as resolving them.
  • Mails: Provides mail functionality for other services.
  • Configurations: Provides storage for custom configuration objects. On different levels (general, groups, users, links between groups and users).
  • Dispatchers: Configure actions that need to be invoked when a specific event is/was triggered.
  • Payments: A service that provides payment functionality.
  • Profiles: Storage service of profiles. A profile is a separate object on its own, comprising medical information like medication and medical history, as well as technical information, like what phone a user is using.
  • Notifications: A service that handles push notifications.
  • Localizations: Storage and retrieval of text snippets, translated into multiple languages.
  • Events: Service that provides event (publish/subscribe) functionality for other services.

Getting started

To get started with the ExtraHorizon SDK you'll need to install it, and then get credentials which will allow you to access the backend.

Installation

Using npm:

npm install @extrahorizon/javascript-sdk

Using yarn:

yarn add @extrahorizon/javascript-sdk

Quick Start

import { createOAuth2Client } from '@extrahorizon/javascript-sdk';

(async () => {
  const exh = createOAuth2Client({
    host: '',
    clientId: '',
  });

  await exh.auth.authenticate({
    password: '',
    username: '',
  });

  console.log('exh.users.health()', await exh.users.health());
  console.log('exh.users.me()', await exh.users.me());
})();

Please see authentication examples for more options.

Interceptors

The data returned from the backend is mapped using interceptors:

  • Timestamps will be of type Date
  • Keys in objects will be camelCased
  • records_affected will be replaced by affected_records

Documentation

🔑 License

The MIT License (MIT). Please see License File for more information.

Developer Notes

Throughout the different services we use this for easy access to other functions in each service. The usage of this as first parameter is explained here: https://www.typescriptlang.org/docs/handbook/2/functions.html#declaring-this-in-a-function. This parameter is excluded from all exported types.

find(
  this: DataSchemasService,
  options?: { rql?: RQLString }
): Promise<PagedResult<Schema>>;

Migration Guides

Migrating to v8.0.0

Swagger files