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

@geolens/sdk

v1.21.1

Published

Auto-generated TypeScript SDK for the GeoLens API. Typed clients with Bearer + API-key auth helpers.

Downloads

1,145

Readme

@geolens/sdk (TypeScript)

Auto-generated TypeScript SDK for the GeoLens API.

Apache-2.0 licensed. Native fetch client + typed request/response interfaces + Bearer-token + API-key auth helpers. Requires Node 18+ (or any runtime with native fetch).

See docs.getgeolens.com for installation, regeneration, and version-pin policy.

Quickstart

import { createGeolensClient } from '@geolens/sdk';

const sdk = createGeolensClient({
  // The deployed API is served under /api, so include that suffix in baseUrl.
  baseUrl: 'https://geolens.example.com/api',
  bearerToken: '...',
});
// See docs.getgeolens.com for endpoint usage examples.

createGeolensClient() returns a client scoped to that call (sdk.client). Pass it explicitly to every generated endpoint call — { client: sdk.client } — when you build more than one client in the same process (for example, one per request in a server), so concurrent callers cannot interfere with each other. Omitting client from a generated call falls back to a shared process-wide default that the most recent createGeolensClient() call configures; that default is fine for a single-client script but is last-caller-wins across concurrent clients.

Redirects

When a redirect leaves the GeoLens origin, which happens when a COG download is served from object storage, the SDK doesn't send credentials or client headers there. Only Range and the If-* precondition headers go along.

In Node the SDK follows GET and HEAD redirects itself. A hop that leaves the GeoLens origin goes through the global fetch, not the client's fetch option (a proxy set with undici's setGlobalDispatcher still applies).

In a browser, where a redirect's target can't be read, a request carrying Authorization or X-API-Key fails with RedirectError, and any other request is sent again, without cookies, for the browser to follow. To download a COG there, mint a download token (POST /auth/download-token/{dataset_id}) and fetch /datasets/{dataset_id}/download/cog?token=... without credentials.

This applies to the default redirect: 'follow'. Set redirect: 'manual' or 'error', per call or on the client, and you get what fetch gives: the redirect returned unfollowed, or a TypeError.