agastya
TypeScript icon, indicating that this package has built-in type declarations

4.2.0 • Public • Published

♿ Agastya

Travis CI Dependencies Dev dependencies License Vulnerabilities Bundle size

📦 Get Started

yarn add agastya
// Import or require Agastya
import Agastya from "agastya";
 
// Initialize Agastya with your API key
const agastya = new Agastya("API_KEY");

Optionally, you can use a specific channel:

const agastya = new Agastya("API_KEY", "production"); // Production (default)
const agastya = new Agastya("API_KEY", "beta"); // Beta (stable)
const agastya = new Agastya("API_KEY", "dev"); // Nighly/development (breaking changes)

You can also use the official CDN instead:

<script async src="https://platform.oswaldlabs.com/_/API_KEY.js"></script>

Once you've created the Agastya object, you can start using the API:

agastya.open(); // Open the Agastya widget
agastya.api("enableMode", "read-aloud"); // Start read aloud mode
agastya.secureTrack({ hello: "world" }); // Track a custom event

API Documentation

Readme

Keywords

none

Package Sidebar

Install

npm i agastya

Weekly Downloads

2

Version

4.2.0

License

MIT

Unpacked Size

12.1 kB

Total Files

11

Last publish

Collaborators

  • anandchowdhary