Socket
Socket
Sign inDemoInstall

elarian

Package Overview
Dependencies
11
Maintainers
3
Versions
81
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    elarian

Elarian JavaScript SDK


Version published
Weekly downloads
3
increased by50%
Maintainers
3
Install size
5.17 MB
Created
Weekly downloads
 

Readme

Source

Elarian

NPM

A framework that helps you build scalable, personalized customer engagement applications.

Install

You can install the package from npm by running:

$ npm install elarian@latest

Usage


// on node
const { initializeClient }  = require('elarian');
/*
or in the browser
<script src="web.js"></script>
// or import { initializeClient } from 'elarian/web'
*/

// ...

const elarian = await initializeClient({
    apiKey: 'YOUR_API_KEY', // or authToken: 'YOUR_AUTH_TOKEN'
    orgId: 'YOUR_ORG_ID',
    appId: 'YOUR_APP_ID',
});

elarian.on('reminder', (data, customer) => {
    // ...
});

const humanId = 'abc';
const data = await elarian.leaseAppData(humanId);
await elarian.updateAppData(humanId, { ...data, status: 'good boy' });
await elarian.updateMetadata(humanId, { name: 'alice', age: 25 });
const { name } = await elarian.getMetadata(humanId);

See example for a full sample app.

Documentation

Take a look at the product documentation. For detailed info on this SDK, see the reference.

Development

Run all tests:

$ npm install
$ npm test

See SDK Spec for reference.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Read the contribution guide for more information.

Issues

If you find a bug, please file an issue on our issue tracker on GitHub.

Known Issues

  • resumable connection options prevents app from connecting

Keywords

FAQs

Last updated on 05 Jul 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc