Skip to content

michironoaware/aula.js

Repository files navigation

Ask DeepWiki

aula.js

aula.js is a robust, flexible, modular TypeScript library engineered for scalable Aula platform integrations. Framework-agnostic with full TypeScript support, it empowers developers to deliver reliable, maintainable applications.

✨ Features

  • Full support for both REST and Gateway APIs
  • Modular and extensible architecture
  • Strongly-typed methods and interfaces using TypeScript
  • Framework-agnostic: You can use aula.js in any environment that supports ES modules.

📦 Installation

Install via npm

npm install aula.js@alpha

Build from source

To build the library locally:

  1. Clone the repository:
git clone https://github.com/michironoaware/aula.js.git
  1. Go to the repository directory:
cd aula.js
  1. Restore the dependencies:
npm install
  1. Build the package:
npm run dist

Generate documentation

If you want to generate local API documentation using TypeDoc:

npm run docs

Or with expanded entry points:

npm run docs-expanded

Examples

A simple application that connects to the gateway API and logs user information:

import { GatewayClient } from "aula.js";

await using gateway = new GatewayClient()
	.withToken("<AUTH_TOKEN_PLACEHOLDER>")
	.withAddress(new URL("https://localhost:5018"))
	.withIntents(0);

gateway.on("Ready", async event =>
{
	console.log("Client is ready!");
	console.log(`Logged in as: ${event.user.displayName}`);
});

console.log("Connecting...");
await gateway.connect();
await gateway.waitForDisconnect();

About

A robust TypeScript toolkit for building reliable, flexible Aula integrations.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published