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

@lekoarts/clerk-loader

v1.0.6

Published

Astro content loader for Clerk

Readme

Astro Clerk loader

This package provides a Clerk content loader for Astro's content layer. You can access a selection of Clerk Backend APIs by simply providing the method name.

Want to see an overview of all my loaders? Visit astro-loaders.lekoarts.de

npm version npm downloads license

Prerequisites

Installation

# npm
npm install @lekoarts/clerk-loader
# yarn
yarn add @lekoarts/clerk-loader
# pnpm
pnpm install @lekoarts/clerk-loader

Usage

Import @lekoarts/clerk-loader into src/content.config.ts and define your collections.

Important: You need to either define the Clerk Secret Key as an environment variable (CLERK_SECRET_KEY) or pass it as the secretKey option inside clientOptions.

import { clerkLoader } from '@lekoarts/clerk-loader'

const clerk = defineCollection({
  loader: clerkLoader({
    method: {
      name: 'users.getUserList',
    },
  }),
})

Options

method (required)

You must pass method.name to the loader. The available method names are generated through the PublicLoaderAPI and stored in dot notation (api.method). If the endpoint takes parameters, you can define them through method.options.

Use your IDE's autocompletion to discover all available options and method names.

import { clerkLoader } from '@lekoarts/clerk-loader'

const clerk = defineCollection({
  loader: clerkLoader({
    method: {
      name: 'users.getUserList',
      options: {
        last_active_at_since: 1234567890,
      }
    },
  }),
})

clientOptions (optional)

You can configure the underlying createClerkClient() call by passing in these options.