🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@spronta/sdk

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@spronta/sdk

Spronta CMS client SDK — fetch content from the Spronta platform or local files

latest
Source
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

@spronta/sdk

Client SDK for the Spronta CMS. Fetch content from the Spronta platform or local files.

Install

npm install @spronta/sdk

Quick start

import { createClient } from "@spronta/sdk";

const client = createClient({
  projectId: "your-project-id",
  apiKey: "your-api-key",
});

// Fetch a page
const page = await client.getEntry("home");

// List entries by content model
const posts = await client.listEntries("blog-post");

Modes

The SDK supports two data sources controlled by SPRONTA_SOURCE:

  • api (default) — fetches from the Spronta platform API
  • local — reads from local JSON files (for static site generation)
# .env
SPRONTA_SOURCE=local

React

import { SprontaContent } from "@spronta/sdk/react";

<SprontaContent entry={page} />

License

MIT

FAQs

Package last updated on 21 Mar 2026

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