A simple but performant REST client for Contentful that transforms API responses into flat JavaScript objects, stripping metadata and recursively folding linked entries and assets without cloning. Version 4.0.2 is the current stable release, supporting TypeScript 5, React Native, and full Content Delivery API features including custom environments and preview servers. It differentiates from the official Contentful SDK by providing cleaner data structures and built-in asset URL transforms for caching or rewriting.
npm install contentfullyNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initializes a Contentfully client and fetches entries of a specific content type with pagination.
Add 'include: 10' to your query object (or desired depth).
Explicitly set 'host' to 'preview.contentful.com' if using preview mode.
Remove 'secure' option; connection is always HTTPS.
Use the official Contentful SDK for management operations.
Deep clone if you need independent copies.
Run 'npm install contentfully' and import using 'import { Contentfully } from 'contentfully'.Use 'const { Contentfully } = require('contentfully')' or 'import { Contentfully } from 'contentfully'.Use 'contentfully.getEntries<MyModel>()' where MyModel matches the entry shape.
Import createClient from 'contentful' instead.
Ensure accessToken is passed to the Contentfully constructor or set via environment variable.