{"library":"storyblok-js-client","title":"Storyblok JS Client","type":"library","description":"Universal JavaScript SDK for Storyblok's Content Delivery and Management APIs. Version 7.3.0 supports Node.js 18+ and modern browsers, with full TypeScript types included. Released as part of the monoblok monorepo, this package is the core client for fetching and manipulating Storyblok content. It provides a thin wrapper around the REST APIs, with built-in caching, rich text rendering, and component resolver support. Key differentiators: isomorphic (works in Node and browser without polyfills), first-class TypeScript support, and seamless integration with Storyblok's visual editor and preview features. Alternatives like @storyblok/js offer framework-agnostic helpers, but this client is the foundational SDK.","language":"javascript","status":"active","last_verified":"Sat Apr 25","install":{"commands":["npm install storyblok-js-client"],"cli":null},"imports":["import StoryblokClient from 'storyblok-js-client'","import { StoryblokClient } from 'storyblok-js-client'","import { RichTextResolver } from 'storyblok-js-client'"],"auth":{"required":false,"env_vars":[]},"links":{"homepage":"https://www.storyblok.com","github":"https://github.com/storyblok/monoblok","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/storyblok-js-client","openapi_spec":null,"status_page":null,"smithery":null},"quickstart":{"code":"import StoryblokClient from 'storyblok-js-client';\n\nconst client = new StoryblokClient({\n  accessToken: process.env.STORYBLOK_ACCESS_TOKEN ?? '',\n  cache: { type: 'memory', clear: 'auto' },\n});\n\nasync function main() {\n  try {\n    const response = await client.getStory('home', { version: 'draft' });\n    console.log('Story:', response.data.story);\n  } catch (error) {\n    console.error('Error:', error);\n  }\n}\n\nmain();","lang":"typescript","description":"Initializes the Storyblok client with an access token and in-memory caching, then fetches a story by slug in draft version.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}