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

@helixdev/sdk

v0.1.0

Published

HELIX Instant SDK — identity, and later multiplayer/voice/wallet, for worlds running on HELIX Instant

Readme

@helixdev/sdk

The HELIX Instant SDK. Worlds running on HELIX Instant use it for player identity today, and multiplayer / voice / wallet / inventory in upcoming versions. It is the only way a world talks to the platform — worlds never call platform APIs or internal services directly.

This document is the SDK contract. It is written to be sufficient for an AI agent to integrate a world without reading the SDK source.

Install

npm install @helixdev/sdk

Core concepts

  1. Your world runs in a sandboxed iframe inside the HELIX shell (the portal play page, or the helix dev shell during local development). The SDK talks to the shell via postMessage; the shell talks to the platform.
  2. Identity is granted, not taken. Your world receives a short-lived, world-scoped session that only unlocks the permissions declared in your helix.json manifest. You never see the player's platform credentials.
  3. Login UI belongs to the shell. Your world cannot render a login form — it requests login, and the shell overlays its own UI. This is deliberate (anti-phishing) and means you never handle passwords.
  4. Standalone mode. When the world is opened directly (e.g. vite dev without a shell), init() resolves with embedded: false and all identity APIs return null/false. Your world should still run — treat identity as an enhancement.

Quick start

import { Helix } from '@helixdev/sdk';

const { embedded, user, world } = await Helix.init(); // call once, before anything else

if (user) {
  greet(user.displayName ?? user.username);
}

// React to login/logout at any time (e.g. update the HUD):
Helix.auth.onAuthChanged((user) => updateHud(user));

// Prompt login at a moment that makes sense in your world:
saveButton.onclick = async () => {
  try {
    const user = await Helix.auth.requestLogin(); // shell overlay; no page reload
    await saveProgress(user.id);
  } catch {
    // player dismissed the login — keep playing, nothing is lost
  }
};

API

Helix.init(): Promise<HelixInitResult>

Performs the shell handshake. Must be called once before any other API. Safe to call again (returns the same state). Resolves within ~3s even with no shell present.

type HelixInitResult = {
  embedded: boolean;              // false when running standalone (local dev)
  world: { id: string; slug: string; title: string } | null;
  user: HelixUser | null;         // null when not logged in
};

Helix.auth.getUser(): Promise<HelixUser | null>

The current player, or null when unauthenticated. Requires the auth.profile permission in your manifest.

type HelixUser = {
  id: string;          // stable player id (UUID) — use this as your save key
  username: string;    // unique handle
  displayName: string | null;
};

Helix.auth.isAuthenticated(): boolean

Synchronous check.

Helix.auth.requestLogin(): Promise<HelixUser>

Asks the shell to show its login overlay. Resolves with the user on success. Rejects when: the player dismisses the overlay ('dismissed'), no shell is present (standalone), or the request times out. The world keeps running throughout — there is no reload, and your state is preserved. If already logged in, resolves immediately.

Helix.auth.onAuthChanged(cb: (user: HelixUser | null) => void): () => void

Subscribes to login/logout. Fires with the user on login and null on logout. Returns an unsubscribe function.

Helix.getSessionToken(): string | null

The raw world-scoped session token (JWT, aud: helixb-world). Most worlds never need this; later SDK modules use it internally.

Manifest requirements

Your bundle root must contain a helix.json manifest (see @helixdev/manifest). To use the identity APIs, declare the permission:

{
  "helixVersion": "0.1",
  "title": "My World",
  "slug": "my-world",
  "entry": "index.html",
  "permissions": ["auth.profile"]
}

Calling an API whose permission is not declared returns an error — permissions are enforced server-side on the session token, not just in the SDK.

Coming in later versions

Helix.multiplayer (instances), Helix.voice, Helix.wallet, Helix.inventory, Helix.cloudSave, Helix.leaderboards. The shapes follow the same pattern: capability declared in the manifest → granted on the session → exposed as a namespace.