
Security News
Insecure Agents Podcast: Certified Patches, Supply Chain Security, and AI Agents
Socket CEO Feross Aboukhadijeh joins Insecure Agents to discuss CVE remediation and why supply chain attacks require a different security approach.
@onebeyond/agnostic-cms-harmonizer
Advanced tools
Library to manage the communication with any CMS agnostic to the user
An agnostic library to handle communication with multiple CMS in an agnostic way.
Find the latest package version on the One Beyond NPM Registry
Install the library via npm:
npm i @onebeyond/agnostic-cms-harmonizer
Use the harmonized providers:
import { ContentfulClient } from '@onebeyond/agnostic-cms-harmonizer';
const client = new ContentfulClient({
accessToken,
space,
environment,
});
await client.init();
const entry = await client.getEntry<MyEntry>({ entryId: '123' });
const collection = await client.getCollection<MyCollection>({ collectionId: '123' });
The library exposes a common interface for multiple CMSs and outputs harmonized data instead raw responses.
Each CMS provider exposes the getEntry and getCollection methods to request one or multiple entries accordingly.
First, supply the vendor-related configuration parameters to the constructor:
const cmsClient = new CmsClient(vendorConfigurationObject)
The client instance must call the init() method to configure the provider before attempting to request data from the CMS:
await client.init();
Now use the harmonizer methods of the cmsCLient.
const entry = await client.getEntry<MyEntry>({ entryId: '123' });
const collection = await client.getCollection<MyCollection>({ collectionId: '123' });
Enjoy!
Install Contentful CLI or alternatively use npx contentful-cli
.env file as followsCONTENTFUL_ACCESS_TOKEN=your_access_token
CONTENTFUL_ENVIRONMENT=your_environment
CONTENTFUL_SPACE=your_space
CONTENTFUL_ENTRY=your_entry
CONTENTFUL_CONTENT_TYPE=your_content_type
To run the e2e tests you need to be authenticated in your contentful account and import the dummy content into the space you created before. The content you need to import is located at __tests__/exports/contentful/agnostic-cms-harmonizer_space.json and should not be updated.
Login to Contentful and import test content with the CLI:
contentful login
contentful space import --content-file __tests__/exports/contentful/agnostic-cms-harmonizer_space.json --space-id <your-contentful-space-id> --environment-id <your-contentful-environment-id>
Or by using NPX:
npx contentful-cli login
npx contentful-cli space import --content-file __tests__/exports/contentful/agnostic-cms-harmonizer_space.json --space-id <your-contentful-space-id> --environment-id <your-contentful-environment-id>
To update the test content you need to export the updated content from Contentful.
Export the content using the CLI
contentful space export --config ./__tests__/exports/contentful/config.json --space-id <your-contentful-space-id> --environment-id <your-contentful-environment-id>
Or by using NPX:
npx contentful-cli space export --config ./__tests__/exports/contentful/config.json --space-id <your-contentful-space-id> --environment-id <your-contentful-environment-id>
The pipeline is configured to use the Contentful space managed by the agnostic.cms.harmonizer@proton.me account during the E2E tests execution. If the content of these tests needs to be updated in the provider, you must have access to this vault, otherwise, you can open an issue referencing the new content exported.
npm run test
npm run test:e2e
The project uses tsdoc to generate the technical documentation from the source code.
npm run docs:build
npm run docs:build:watch
npm run docs:serve
Thanks goes to these wonderful people (emoji key):
Íñigo Marquínez Prado 💻 📖 👀 | Àlex Serra 💻 ⚠️ 📖 👀 | Matyas Angyal 👀 💻 📖 ⚠️ | Ulises Gascón 👀 | Roberto Hernández 💻 ⚠️ 📖 👀 |
This project follows the all-contributors specification. Contributions of any kind welcome!
FAQs
Library to manage the communication with any CMS agnostic to the user
The npm package @onebeyond/agnostic-cms-harmonizer receives a total of 2 weekly downloads. As such, @onebeyond/agnostic-cms-harmonizer popularity was classified as not popular.
We found that @onebeyond/agnostic-cms-harmonizer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket CEO Feross Aboukhadijeh joins Insecure Agents to discuss CVE remediation and why supply chain attacks require a different security approach.

Security News
Tailwind Labs laid off 75% of its engineering team after revenue dropped 80%, as LLMs redirect traffic away from documentation where developers discover paid products.

Security News
The planned feature introduces a review step before releases go live, following the Shai-Hulud attacks and a rocky migration off classic tokens that disrupted maintainer workflows.