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

aether-support-sdk

v1.0.0

Published

JavaScript SDK for Aether Support - AI-powered customer support platform

Readme

Aether Support JavaScript SDK

The official JavaScript/TypeScript SDK for integrating Aether Support into your applications.

Installation

npm install @aether-support/sdk
# or
yarn add @aether-support/sdk
# or
pnpm add @aether-support/sdk

Quick Start

Vanilla JavaScript

import { createAetherSupport } from '@aether-support/sdk';

const support = createAetherSupport({
  appId: 'your-app-id',
  user: {
    email: '[email protected]',
    name: 'John Doe',
    plan: 'pro',
  },
});

// Initialize the widget
support.init();

// Open the support widget
support.open();

// Close the widget
support.close();

// Update user information
support.identify({
  email: '[email protected]',
  metadata: { company: 'Acme Inc' },
});

React

import { AetherProvider, useAetherSupport, SupportButton, useTickets } from '@aether-support/sdk/react';

function App() {
  return (
    <AetherProvider
      config={{
        appId: 'your-app-id',
        position: 'bottom-right',
        theme: 'auto',
      }}
    >
      <YourApp />
    </AetherProvider>
  );
}

function SupportSection() {
  const { open, identify } = useAetherSupport();
  const { tickets, loading, createTicket } = useTickets(authToken);

  // Identify user on login
  useEffect(() => {
    identify({
      email: user.email,
      name: user.name,
      plan: user.subscription,
    });
  }, [user]);

  return (
    <div>
      <SupportButton>Need Help?</SupportButton>

      {/* Or programmatically */}
      <button onClick={open}>Open Support</button>

      {/* Display tickets */}
      {loading ? (
        <p>Loading tickets...</p>
      ) : (
        <ul>
          {tickets.map((ticket) => (
            <li key={ticket.ticket_id}>{ticket.subject}</li>
          ))}
        </ul>
      )}
    </div>
  );
}

Script Tag (CDN)

<script src="https://cdn.aether-support.com/sdk/v1/aether-support.min.js"></script>
<script>
  const support = new AetherSupport({
    appId: 'your-app-id',
  });
  support.init();
</script>

Configuration Options

| Option | Type | Default | Description | |--------|------|---------|-------------| | appId | string | Required | Your Aether Support App ID | | apiUrl | string | Production URL | Custom API endpoint | | user | object | undefined | Pre-fill user information | | position | 'bottom-right' \| 'bottom-left' | 'bottom-right' | Widget position | | primaryColor | string | App default | Custom primary color | | theme | 'light' \| 'dark' \| 'auto' | 'auto' | Theme mode | | onOpen | () => void | undefined | Callback when widget opens | | onClose | () => void | undefined | Callback when widget closes | | onMessageSent | (message: string) => void | undefined | Callback when message is sent | | onTicketCreated | (ticketId: string) => void | undefined | Callback when ticket is created |

API Methods

Widget Control

// Open the widget
support.open();

// Close the widget
support.close();

// Toggle the widget
support.toggle();

User Identification

// Identify user
support.identify({
  id: 'user-123',
  email: '[email protected]',
  name: 'John Doe',
  plan: 'enterprise',
  metadata: {
    company: 'Acme Inc',
    role: 'Admin',
  },
});

// Clear user data (logout)
support.logout();

Ticket Management

// Get user's tickets
const tickets = await support.getTickets(authToken);

// Get specific ticket
const ticket = await support.getTicket(authToken, 'ticket-id');

// Create new ticket
const newTicket = await support.createTicket(authToken, {
  subject: 'Help needed',
  description: 'I need assistance with...',
  category: 'technical',
});

// Reply to ticket
const updatedTicket = await support.replyToTicket(authToken, 'ticket-id', {
  content: 'Thanks for the response!',
});

Cleanup

// Remove widget and cleanup
support.destroy();

React Hooks

useAetherSupport()

Access the SDK instance and widget controls.

const { sdk, isLoaded, open, close, toggle, identify, logout } = useAetherSupport();

useTickets(token)

Manage user tickets with built-in loading states.

const {
  tickets,      // Ticket[]
  loading,      // boolean
  error,        // Error | null
  refetch,      // () => Promise<void>
  createTicket, // (request) => Promise<Ticket>
  replyToTicket // (ticketId, request) => Promise<Ticket>
} = useTickets(authToken);

TypeScript Support

The SDK is written in TypeScript and provides full type definitions:

import type {
  AetherConfig,
  Ticket,
  TicketMessage,
  CreateTicketRequest,
  ReplyRequest,
} from '@aether-support/sdk';

License

MIT