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

@qelos/web-sdk

v4.0.0

Published

Frontend Web SDK for Qelos API

Readme

@qelos/web-sdk

A package to manage communication between a Plugin MFE to a QELOS application host.

Installation

npm install @qelos/web-sdk

Usage

import { authorize, code } from "@qelos/web-sdk";

// authorize your micro-frontend application 
// to recognize the user and tenant of host application:
const { user, tenant } = authorize();


// add the "code" parameter given from this web-sdk
// it's a code created for this specific intercation with the user:
fetch('/api/you-own-api', {
  headers: { code }
})

Embeddable AI Chat Widget

Drop a Qelos AI agent chat into any web page.

Single script tag (CDN)

<script src="https://cdn.qelos.io/widget.js"
  data-agent-id="665a1b2c3d4e5f6a7b8c9d0e"
  data-app-url="https://my.qelos.io"
  data-api-token="qelos_pk_..."
  data-position="bottom-right"
  data-theme="light"
  data-header-text="Need help?"
  data-initial-message="Hi! How can I help today?">
</script>

The CDN bundle (dist/widget-cdn.js) reads its configuration from data-* attributes on its own <script> tag and auto-mounts a chat bubble. It also exposes window.QelosChatWidget for programmatic control.

Programmatic

import { QelosChatWidget } from '@qelos/web-sdk';

QelosChatWidget.init({
  agentId: '665a1b2c3d4e5f6a7b8c9d0e',
  appUrl: 'https://my.qelos.io',
  apiToken: 'qelos_pk_...',
  position: 'bottom-right',
  theme: 'light',
  headerText: 'Need help?',
  initialMessage: 'Hi! How can I help today?',
  recordThread: true,
});

Options

| Option | Default | Description | |---|---|---| | agentId | required | The Qelos AI agent (integration) ID | | appUrl | required | Base URL of the Qelos instance | | apiToken | — | Public API token (qelos_pk_...). Provide this or accessToken | | accessToken | — | Bearer access token for end-user-bound chats | | position | "bottom-right" | "bottom-right", "bottom-left", "top-right", "top-left" | | theme | "light" | "light" or "dark" | | accentColor | "#409eff" | Brand accent color (any CSS color) | | headerText | "AI Assistant" | Title shown in the panel header | | initialMessage | — | First assistant message shown when the panel opens | | inputPlaceholder | "Type your message…" | Placeholder for the input box | | recordThread | false | Persist the conversation as a Qelos thread | | threadId | — | Resume an existing thread | | autoOpen | false | Open the panel automatically on load | | chatContext | — | Object sent as context in every chat request | | container | document.body | Element to mount the widget into |

The widget is rendered inside a Shadow DOM, so it does not pick up or leak host page styles.

Enjoy!