hive-cms
v1.2.1
Published
Type-safe Node.js SDK for Hive CMS public API.
Downloads
435
Readme
hive-cms
Type-safe SDK for consuming Hive CMS public API endpoints from Node.js runtimes.
Documentation
- https://hivecms.online/docs
Status
Early development.
Runtime
- Node.js 20+
- Server-side usage only
Quick Start
Set your API key in server environment:
HIVE_API_KEY=your_public_api_keyThen initialize the SDK without passing apiKey manually:
import { Hive } from "hive-cms";
const hive = new Hive();
const posts = await hive.posts.list({ limit: 10 });If you use a different variable name:
const hive = new Hive({
apiKeyEnvVarName: "MY_HIVE_KEY",
});You can still pass apiKey directly when needed.
Build
pnpm buildDev Watch
pnpm dev