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

@kon10/client

v1.5.0

Published

Kon10 headless delivery client — framework-agnostic SDK over the public content API.

Readme

@kon10/client

The framework-agnostic headless delivery client for Kon10 — a thin, typed wrapper over the public content API (@kon10/start's /api/v1 surface). It has zero framework imports, so it runs unchanged in a TanStack loader, a React Server Component, a Vue app, or a plain Node script.

Install

pnpm add @kon10/client

Usage

import { createDeliveryClient } from '@kon10/client'

const kon10 = createDeliveryClient({
  baseUrl: 'https://cms.example.com', // origin hosting /api/v1
  apiKey: process.env.KON10_API_KEY,  // optional; anonymous = Public role
})

// A page of documents from a `many` entity.
const { data, pagination } = await kon10.list('contents/posts', {
  page: 1,
  pageSize: 20,
  sort: '-createdAt',
  where: { status: 'published' },
})

// One document by id (null when it doesn't exist).
const post = await kon10.get('contents/posts', id)

// A singleton entity.
const settings = await kon10.single('site/settings')

Typed results

Pass a Zod schema per call to validate and type the result. The forthcoming kon10 typegen output plugs in here:

import { z } from 'zod'

const postSchema = z.object({ id: z.string(), title: z.string(), body: z.string() })
const { data } = await kon10.list('contents/posts', { schema: postSchema })
//      ^? { id: string; title: string; body: string }[]

Without a schema, documents come back as JsonDoc (Record<string, unknown>) and are still validated to match the response envelope.

Errors

  • get / single return null on a NOT_FOUND (404).
  • Every other failure throws a DeliveryError carrying the envelope's code, the HTTP status, and the requestId (when the server logged one).

Related

  • @kon10/client-react — React hooks over this client.
  • Envelope contract: @kon10/client/envelope (shared with @kon10/start).