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

@gurulu/node

v1.0.3

Published

Gurulu server SDK. Outcome verification (purchase_completed, signup_completed). Express/Fastify/Next.js Route Handler + webhook helpers (Stripe/Shopify/Lemon Squeezy/custom). K16 4-kanal producer compliant.

Readme

@gurulu/node

Server SDK for Gurulu — Truth Layer for product analytics.

Outcome verification, webhook ingestion, and framework middleware for Node.js / Bun.

Install

npm install @gurulu/node
# or
bun add @gurulu/node

Quick start

import { createGurulu } from '@gurulu/node';

const gurulu = createGurulu({
  workspace: 'pk_xxxxxxxxxxxx',
  apiKey: process.env.GURULU_API_KEY,
});

// Server-truth event (verified outcome, not client-claimed)
await gurulu.track('purchase.completed', {
  user_id: 'u_42',
  order_id: 'o_123',
  total: 49.99,
  currency: 'USD',
});

Framework middleware

// Express
import { guruluMiddleware } from '@gurulu/node/middleware/express';
app.use(guruluMiddleware({ workspace: 'pk_xxx' }));

// Fastify
import { guruluPlugin } from '@gurulu/node/middleware/fastify';
fastify.register(guruluPlugin, { workspace: 'pk_xxx' });

// Next.js (Route Handler)
import { guruluHandler } from '@gurulu/node/middleware/next';
export const POST = guruluHandler({ workspace: 'pk_xxx' });

Webhook helpers

Signature-verified, automatically mapped to canonical events:

import { handleStripeWebhook } from '@gurulu/node/webhooks/stripe';
// Also: /webhooks/shopify, /webhooks/lemonsqueezy, /webhooks/custom

app.post('/webhooks/stripe', async (req, res) => {
  const event = await handleStripeWebhook(req, {
    secret: process.env.STRIPE_WEBHOOK_SECRET,
    workspace: 'pk_xxx',
  });
  res.json({ ok: true });
});

Features

  • Outcome verification — browser claims purchase_initiated; server confirms purchase.completed as truth.
  • Webhook helpers — Stripe, Shopify, Lemon Squeezy with signature verify + canonical event mapping.
  • Framework middleware — Express 4/5, Fastify 4/5, Next.js 14/15 Route Handlers.
  • Type-safe — registry-bound event types via codegen.

Documentation

gurulu.io/docs

License

MIT — see LICENSE.

Copyright © 2026 MONAFY LTD (UK Company No. 17031485).