Client Library
Process workspace data by using Pine's API client.
npm install @pinecards/clientimport { connectSDKClient } from "@pinecards/client";
const client = connectSDKClient({ debug: false }) Cards
const card = await client.cards.read({ where: { id: "..." } });
const { data: cards } = await client.cards.list({ where: { limit: 100 } });const createdCard = await client.cards.create({
data: { title: [], body: [] },
});
const updatedCard = await client.cards.update({
where: { id: "..." },
data: { title: [], body: [] },
});
await client.cards.delete({ where: { id: "..." } });Decks
Fields
Field type
Value type
Routes
Storage
Context
Last updated