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

@qaecy/cue-sdk

v0.0.1

Published

Headless JavaScript SDK for building apps on the QAECY platform

Readme

@qaecy/cue-sdk

Headless JavaScript SDK for building apps on the QAECY platform. A framework-agnostic client that handles authentication and API access — the programmatic counterpart to the @qaecy/cue-widget.

Installation

npm install @qaecy/cue-sdk firebase

firebase is a peer dependency and must be installed alongside the SDK.

Quick start

import { Cue } from '@qaecy/cue-sdk';

const cue = new Cue({
  apiKey: 'YOUR_FIREBASE_API_KEY',
  appId: 'YOUR_FIREBASE_APP_ID',
  measurementId: 'YOUR_MEASUREMENT_ID',
});

// Listen for auth state changes
cue.auth.onAuthStateChanged((user) => {
  console.log(user ? `Signed in as ${user.displayName}` : 'Signed out');
});

// Sign in
await cue.auth.signIn('google');
// or
await cue.auth.signIn('microsoft');
// or
await cue.auth.signIn('password', { email: '[email protected]', password: 'secret' });

// Search documents
const results = await cue.api.search({
  term: 'What are the fire safety requirements?',
  projectId: 'my-project-id',
});

console.log(results.response);
console.log(results.sources);

// Sign out
await cue.auth.signOut();

Configuration

| Option | Type | Required | Description | |---|---|---|---| | apiKey | string | ✅ | Firebase API key | | appId | string | ✅ | Firebase App ID | | measurementId | string | ✅ | Firebase Measurement ID | | gatewayUrl | string | — | Override the default API gateway URL | | useEmulator | boolean | — | Connect to local emulators (default: false) |

Auth

cue.auth.signIn(provider)

Sign in with Google or Microsoft via a browser popup:

const user = await cue.auth.signIn('google');
const user = await cue.auth.signIn('microsoft');

cue.auth.signIn('password', credentials)

Sign in with email and password:

const user = await cue.auth.signIn('password', {
  email: '[email protected]',
  password: 's3cr3t',
});

cue.auth.signOut()

await cue.auth.signOut();

cue.auth.currentUser

Returns the currently signed-in Firebase User, or null.

cue.auth.onAuthStateChanged(listener)

Subscribe to auth state changes. Returns an unsubscribe function.

const unsubscribe = cue.auth.onAuthStateChanged((user) => {
  if (user) startApp(user);
});

// Later:
unsubscribe();

cue.auth.getToken(forceRefresh?)

Get the Firebase ID token for the current user:

const token = await cue.auth.getToken();

API

All API methods require the user to be authenticated first.

cue.api.search(request)

Search project documents using natural language:

const results = await cue.api.search({
  term: 'fire resistance requirements',
  projectId: 'my-project-id',
  categories: ['buildings', 'regulations'], // optional
});

// results.response  — AI-generated answer
// results.sources   — source documents

cue.api.sparql(query, projectId)

Execute a SPARQL query against the project's triplestore:

const data = await cue.api.sparql(
  `SELECT ?s ?p ?o WHERE { ?s ?p ?o } LIMIT 10`,
  'my-project-id',
);

Advanced

Access the raw Firebase Auth instance for advanced use cases:

const firebaseAuth = cue.auth.firebaseAuth;

License

MIT