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

@alhwyn/luma

v0.1.2

Published

Unofficial TypeScript SDK for the Luma API

Readme

Unofficial Luma SDK

Under construction — not ready for production use.

A TypeScript client for the Luma public API. Not affiliated with or maintained by Luma.

Note: You need a Luma Plus organization to use the API. See the Getting Started guide for setup and authentication.

Documentation: alhwyn.mintlify.site — install, authentication, API guides, webhooks, and CLI.

Install

bun add @alhwyn/luma

If npm returns a 404, install from GitHub instead (no token required):

bun add github:Alhwyn/luma

Both install as @alhwyn/luma in node_modules.

CLI (optional)

bun add @alhwyn/luma-cli

Setup

Get an API key from Luma API keys (Luma Plus required).

# add LUMA_API_KEY=your-key-here

Usage

import { Luma } from "@alhwyn/luma";

const luma = new Luma(process.env.LUMA_API_KEY!);

await luma.events.guests.add("evt-abc123", {
  guests: [
    { email: "[email protected]", name: "Jane Doe" },
  ],
});

Webhooks

Add to .env (see .env.example):

LUMA_WEBHOOK_SECRET=whsec_...
LUMA_WEBHOOK_EVENT_TYPES=guest.updated,guest.registered

Register an endpoint

import { Luma } from "@alhwyn/luma";

const luma = new Luma(process.env.LUMA_API_KEY!);

const endpoint = await luma.webhooks.create({
  url: "https://myapp.com/api/luma-webhook",
  event_types: ["guest.updated", "guest.registered"],
});

// Save endpoint.secret as LUMA_WEBHOOK_SECRET

event_types also reads from LUMA_WEBHOOK_EVENT_TYPES via webhookEventTypesFromEnv().

Verify incoming events

import { Luma } from "@alhwyn/luma";

const webhook = new Luma(process.env.LUMA_API_KEY!).webhooks.client({
  secret: process.env.LUMA_WEBHOOK_SECRET!,
});

// In your HTTP handler — pass the raw body, not re-serialized JSON
const event = webhook.verify({
  body: await req.text(),
  headers: req.headers,
});

Inbound-only handlers do not need an API key:

import { WebhookInboundClient } from "@alhwyn/luma";

const webhook = new WebhookInboundClient({
  secret: process.env.LUMA_WEBHOOK_SECRET!,
});

Handle an event

if (event.type === "guest.updated") {
  const checkedIn = event.data.event_tickets.some((t) => t.checked_in_at !== null);
  if (checkedIn) {
    // e.g. send welcome email to event.data.user_email
  }
}

Luma has no dedicated check-in webhook — check-in arrives as guest.updated with event_tickets[].checked_in_at set. See the Guest Updated docs.

CLI

After installing @alhwyn/luma-cli:

luma users get
luma events list
luma --help