@semble.so/api
v0.0.5
Published
A fully-typed Semble API client
Downloads
624
Readme
@semble.so/api
A fully-typed client for the Semble API.
Install
npm install @semble.so/apiThe client uses ts-rest and zod under the hood. They are declared as peer dependencies and will be installed automatically by modern package managers; if you need to install them explicitly:
npm install @ts-rest/core zodUsage
import { createSembleClient } from '@semble.so/api';
const semble = createSembleClient({
apiKey: process.env.SEMBLE_API_KEY!,
});
const result = await semble.cards.addUrlToLibrary({
body: { url: 'https://semble.so' },
});By default the client targets https://api.semble.so/xrpc. Override with the baseUrl option:
const semble = createSembleClient({
apiKey: '...',
baseUrl: 'https://anotherappview.com/xrpc',
});API reference
See the full API reference at https://docs.cosmik.network.
License
ISC
