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

@orbclub/modules

v0.1.1

Published

Auth-first plugin SDK for apps built on Orb and Lens primitives.

Readme

@orbclub/modules

Auth-first TypeScript modules for Orb login, Lens session refresh, media primitives, uploads, and optional backend transport.

The package surface is intentionally small:

  • root export: createSDK
  • happy-path login entrypoint: auth
  • lower-level plugin entrypoints: auth/qr, auth/lens, media, upload/grove, transport/backend
  • no UI framework state in the core package
  • browser-direct Orb login by default

Install

npm install @orbclub/modules

Quick Start

import { createOrbLogin } from "@orbclub/modules/auth";

const orb = createOrbLogin();
const qrImage = document.querySelector<HTMLImageElement>("#orb-qr");
const orbLink = document.querySelector<HTMLAnchorElement>("#orb-link");

const session = await orb.connectWithQr({
  onInit: ({ qrCode, deepLink }) => {
    if (qrImage) qrImage.src = qrCode;
    if (orbLink && deepLink) orbLink.href = deepLink;
  },
});

createOrbLogin() uses browser-direct defaults for Orb QR sign-in and Lens session refresh. No app auth proxy routes are required for the default flow. Session persistence is an app-level security decision; the package does not read or write browser storage.

Plugins

| Import | Purpose | Runtime | | --- | --- | --- | | @orbclub/modules/auth | Browser-direct Orb login plus session helpers | Browser or server | | @orbclub/modules/auth/qr | Lower-level QR auth helpers | Browser client | | @orbclub/modules/auth/lens | Lens GraphQL refresh helpers layered onto sdk.auth | Browser or server | | @orbclub/modules/media | Media URL parsing and gateway-aware resolution | Browser or server | | @orbclub/modules/upload/grove | Browser-side Grove upload plugin with progress tracking | Browser only | | @orbclub/modules/transport/backend | Minimal JSON backend caller with header injection | Trusted browser/server runtime |

Runtime Boundaries

  • createOrbLogin() uses direct Orb QR and Lens GraphQL defaults.
  • createSDK is available for custom plugin composition. Import only what you need.
  • The package does not read environment variables directly. Resolve config in your app and pass it into plugin factories.
  • Media parsing resolves ipfs://, ar://, lens://, embedded storage URIs, and existing thumbnailDimension... proxy URLs before optional image or audio gateway wrapping.
  • Bare media paths without a recognized URI scheme are returned as-is.
  • upload/grove requires browser upload APIs such as File, FormData, and XMLHttpRequest.
  • transport/backend is intended for trusted app infrastructure or explicit proxy routes.
  • Framework adapters and UI state are not part of the v1 core package surface.

Docs

Development

bun install
bun run check
bun run test
bun run lint

CI runs typechecking, runtime tests, type tests, linting, build, and package dry-run checks. Update README.md, llms.txt, and the relevant files under docs/ whenever the public API or examples change.