Logochanges.page

Core SDK

Framework-agnostic JavaScript SDK for fetching changelog data.

Installation

npm install @changespage/core

Usage

import { createChangesPageClient } from "@changespage/core";

const client = createChangesPageClient({
  baseUrl: "https://your-page.changes.page",
});

const { posts, totalCount, hasMore } = await client.getPosts({ limit: 10 });

const latestPost = await client.getLatestPost();

const pinnedPost = await client.getPinnedPost();

API

createChangesPageClient(config)

Creates a client instance.

OptionTypeDescription
baseUrlstringYour changes.page URL

Client Methods

getPosts(options?)

Fetches paginated posts.

OptionTypeDefaultDescription
limitnumber10Number of posts (max: 50)
offsetnumber0Pagination offset

Returns { posts, totalCount, hasMore }.

getLatestPost()

Returns the most recent post or null.

getPinnedPost()

Returns the pinned post or null.

getTagLabel(tag)

Converts a tag to display label (e.g., "fix""Fix").

On this page