NodeHive JavaScript Client / SDK
NodeHive Client (https://www.npmjs.com/package/nodehive-js) is the offical JavaScript client library for JavaScript client library for NodeHive Headless CMS.
Goal
The client library exists to make data access to the backend super easy. It offers several helper functions which allow you to load nodes, menus, taxonomies and much more without understanding the underlaying details.
How to use
Install
Most basic example
Code example with React and Tailwind
Enable debug mode
When debug mode is enabled, the client will log all requests and responses to the console including full context.
Load articles
Load the last 10 articles with sorting, limit and tag filter
NextJS
We recomment you to use the official starterkit for NextJS https://github.com/NETNODEAG/nodehive-nextjs-starter.
Other frameworks
The NodeHive client library is designed to work with any frontend framework.