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

@vunora/sdk

v0.2.0

Published

Official JavaScript/TypeScript SDK for Vunora, the agentic CMS. Typed read client for pages, posts, media, and localized content.

Readme

@vunora/sdk

Official JavaScript/TypeScript SDK for Vunora — the agentic CMS. Read your workspace content (pages, posts, media, and more) from any frontend or server with a typed client.

npm i @vunora/sdk
# or: pnpm add @vunora/sdk / yarn add @vunora/sdk

Quick start

import { createClient } from '@vunora/sdk'

const vunora = createClient({
  baseUrl: 'https://your-workspace.vunora.ai', // your Vunora API base URL
  publicKey: process.env.VUNORA_PUBLIC_KEY!,   // a publishable key: pk_live_…
})

// List documents in a collection
const { docs, totalDocs } = await vunora.collection('posts').find({
  where: { featured: { equals: true } },
  sort: '-publishedAt',
  limit: 10,
})

// Read one document by id or slug
const page = await vunora.collection('pages').findById('home')

Keys

  • Publishable key (pk_live_…) — read-only, safe to ship in client-side code. Use it with this SDK for reads.
  • Secret key (sk_live_…) — server-only, can write. Never expose it in a browser bundle.

Create keys in your Vunora dashboard under Settings → API tokens. Each key is scoped to specific collections and environments.

Reading content

collection(name).find(options)

type FindOptions = {
  where?: Record<string, unknown> // Payload-style query, e.g. { status: { equals: 'published' } }
  sort?: string                   // e.g. '-publishedAt' (prefix '-' for descending)
  limit?: number                  // 1–100, default 10
  page?: number                   // 1-based
  depth?: number                  // relationship depth, 0–2
  locale?: string                 // 'es', 'ja', … or 'all' — see Localization
}
// → { docs, totalDocs, limit, totalPages, page }

collection(name).findById(id, options)

const post = await vunora.collection('posts').findById('42', { depth: 1, locale: 'es' })

id accepts the document id or its slug (for pages/posts).

Localization

Sites imported into Vunora carry per-locale content. Pass locale to read a specific language; omit it for the site's default locale.

const es = await vunora.collection('pages').findById('home', { locale: 'es' })
// es.contentFields hold the Spanish values

Surface API

surface() returns the resolved region/locale/country configuration plus content, integrations, logos, and reviews for the current site — useful for building localized, region-aware storefronts.

const surface = await vunora.surface({ region: 'eu', locale: 'de', country: 'DE' })

React (optional)

The /react subpath ships a headless RegionSelector. It has no hard React dependency in the core client; react is an optional peer.

import { RegionSelector } from '@vunora/sdk/react'

Local development

Set VUNORA_IS_LOCAL=true (or VITE_/PUBLIC_/NEXT_PUBLIC_ variants) to return mock data without a live API — handy for prototyping UI before your keys are ready.

Error handling

Read failures throw an Error whose message is Vunora <status>: <body>. A 401 means a missing or wrong key; a 404 from surface() resolves to null rather than throwing.

License

MIT