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

@jungvonmatt/contentful-client

v6.0.0

Published

Shared Contentful Management API client helpers

Downloads

213

Readme

NPM version

@jungvonmatt/contentful-client

Shared Contentful API toolkit (Management + Delivery + Helpers) for the JvM Contentful toolchain.

This is a low-level support package used by @jungvonmatt/contentful-ssg, @jungvonmatt/contentful-config, @jungvonmatt/contentful-fakes, and @jungvonmatt/contentful-typings. It is published so those packages can resolve their shared runtime dependency outside the pnpm workspace.

Note: This is an internal-only package published to npm for use by internal tools.

Install

npm install @jungvonmatt/contentful-client

Modules

Management API

import {
  getManagementClient,
  getSpaces,
  getEnvironment,
} from "@jungvonmatt/contentful-client";
  • getManagementClient(options) — create or reuse a Management API plain client
  • getSpaces(options) — fetch all accessible spaces
  • getSpace(options) — fetch a single space by spaceId
  • getEnvironments(options) — fetch all environments for a space
  • getEnvironment(options) — fetch and validate one environment by environmentId
  • getApiKey(options) — fetch the first delivery API key for a space
  • getPreviewApiKey(options) — fetch the first preview API key for a space
  • getOrganizations(options) — fetch accessible organizations
  • getWebhooks(options) — fetch webhooks for a space
  • addWebhook(options, id, data) — get or create a webhook with a deterministic ID
  • deleteWebhook(options, id) — delete a webhook by ID
  • resetManagementClient() — clear the cached client instance (for tests)

Delivery API

import {
  getClient,
  getContent,
  getLocales,
  getContentTypes,
} from "@jungvonmatt/contentful-client";
  • getClient(options) — create or reuse a Delivery/Preview API client
  • getContent(options) — fetch all entries and assets for a space/environment
  • getLocales(options) — fetch available locales
  • getContentTypes(options) — fetch all content types
  • getEntriesLinkedToEntry(options, entryId) — reverse-link lookup for entries
  • getEntriesLinkedToAsset(options, assetId) — reverse-link lookup for assets
  • resetClient() — clear the cached client instance (for tests)
  • MAX_ALLOWED_LIMIT — page-size constant used internally

Helpers

import {
  isEntry,
  isAsset,
  isLink,
  getContentTypeId,
  convertToMap,
} from "@jungvonmatt/contentful-client";
  • Type guards: isEntry, isAsset, isLink, isAssetLink, isEntryLink, isContentfulObject
  • ID extractors: getContentTypeId, getContentId, getEnvironmentId
  • Converters: convertToMap, getFieldSettings
  • Field-type constants: FIELD_TYPE_SYMBOL, FIELD_TYPE_TEXT, FIELD_TYPE_RICHTEXT, etc.

Related packages

| Package | Role | | -------------------------------- | ---------------------------------------------------------------- | | @jungvonmatt/contentful-config | Generates .contentfulrc.json (credentials + space/environment) | | @jungvonmatt/contentful-client | Uses config for API access (Management + Delivery) | | @jungvonmatt/contentful-ssg | Orchestrates SSG builds with content from contentful-client |