New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@wisp-cms/client

Package Overview
Dependencies
Maintainers
0
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wisp-cms/client

A JavaScript client for wisp - a delightfully simple blogging CMS.

  • 0.0.21
  • latest
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

WISP CMS JS Client

A JavaScript client for wisp - a delightfully simple blogging CMS.

Installation

npm i @wisp-cms/client

Documentation

For more detailed information about wisp and its features:

  • Visit wisp website
  • Read the JavaScript SDK documentation
  • If you prefer to use the API directly, check out the Content API documentation

Basic Usage

Initializing the client

First, import and initialize the wisp client:

import { buildWispClient } from "@wisp-cms/client";

export const wisp = buildWispClient({
  baseUrl: process.env.NEXT_PUBLIC_SITE_URL || "https://www.wisp.blog",
  blogId: process.env.NEXT_PUBLIC_BLOG_ID!,
});

Listing All Blog Posts

const blogPostResult = await wisp.getPosts({ limit: "all" });

Fetching a Single Blog Post

const post = await wisp.getPost({ slug: "your-post-slug" });

More functions

To see the full list of supported function, read the JS SDK Documentation

License

This project is licensed under the MIT License.

FAQs

Package last updated on 26 Nov 2024

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc