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

@clarity.surf/sdk

v0.12.0

Published

Universal SDK for Clarity Search, Jobs, Indexing and News

Readme

Clarity SDK

External clients use new ClarityClient({ apiKey }) with a scoped Oxy API key. API keys retain their external scopes and quotas even when issued for an Oxy app.

Own backend integrations use the shared workload transport:

import { clarityForOxyService } from '@clarity.surf/sdk/server';

const clarity = clarityForOxyService(oxyServer);
await clarity.search({ query: 'public information' });

oxyServer is the caller's existing OxyServer. The factory selects Clarity's recipient audience, oxy-service:01a0648b-8d73-70ad-8e67-1c07ddc5eb6e. Oxy owns workload attestation, bearer refresh, origin restrictions and retries. No key or scope list belongs in this integration.

Frontend integrations use the current provider's oxyServices:

import { clarityForOxySession } from '@clarity.surf/sdk';

const clarity = clarityForOxySession(oxyServices);
await clarity.experience.list(profileAccountId);
// On the owning component/client's disposal:
clarity.dispose();

The linked transport retains session switching and refresh. Do not read or copy http.getAccessToken() or wrap fetch with application-local Authorization logic. Personal Experience writes still require the authenticated account; workload identity does not select a person's account. Public and external client APIs remain available through ClarityClient.

The factories are source changes pending release. Deploy the matching Clarity receiver and Oxy authority API before adopting the service factory in callers.

Public reads need no credential at all. Discover's news is the same for every reader, so a screen with no reason to identify anyone (a photo frame, a kiosk) reads it with a client constructed with none:

import { ClarityClient } from '@clarity.surf/sdk';

const stories = await new ClarityClient().publicNews({ languages: ['es', 'en'], limit: 10 });
const [article] = stories[0]?.articles ?? [];
// article.imageUrl is Clarity's copy of the image; article.imageSeeds, once
// known, are its seed colours (`#rrggbb`, best first) to theme a card with.