
Company News
Free Business Plan Upgrades for Open Source Maintainers
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.
@spines/sdk
Advanced tools
Official TypeScript SDK for the SPINES API — identify books from bookshelf photos and build structured, explorable collections.
npm install @spines/sdk
import { SpinesClient } from '@spines/sdk';
const spines = new SpinesClient({ apiKey: 'gtspn_live_...' });
// Search for books
const results = await spines.books.search({ query: 'Sapiens' });
console.log(results.data);
// List public collections
const collections = await spines.collections.list({ sort: 'popular', limit: 10 });
// Start a bookshelf recognition job
const job = await spines.recognition.start({
image_url: 'https://example.com/shelf.jpg',
title: 'My Bookshelf',
});
console.log(job.job_id); // poll with spines.recognition.status(job.job_id)
| Resource | Methods |
|---|---|
spines.books | search, get, pairings, collections |
spines.collections | list, get, create, update, delete, books, addBook, removeBook |
spines.personas | list, get |
spines.categories | list |
spines.readingLists | list, add, update, remove |
spines.recognition | start, status |
spines.profile | get, update, credits |
All API errors throw a SpinesError with structured details:
import { SpinesClient, SpinesError } from '@spines/sdk';
const spines = new SpinesClient({ apiKey: 'gtspn_live_...' });
try {
await spines.books.get('non-existent-id');
} catch (err) {
if (err instanceof SpinesError) {
console.error(err.status); // 404
console.error(err.code); // "NOT_FOUND"
console.error(err.message); // "Book not found"
console.error(err.requestId); // "req_abc123"
}
}
const spines = new SpinesClient({
apiKey: 'gtspn_live_...', // Required — your API key
baseUrl: 'https://getspines.com/api/v1', // Optional — defaults to production
});
List endpoints return cursor-based paginated responses:
let cursor: string | undefined;
do {
const page = await spines.collections.list({ limit: 20, cursor });
for (const collection of page.data) {
console.log(collection.title);
}
cursor = page.meta.has_more ? (page.meta.next_cursor ?? undefined) : undefined;
} while (cursor);
fetch)Full API reference and guides: getspines.com/developers
MIT
FAQs
Official TypeScript SDK for the SPINES API
The npm package @spines/sdk receives a total of 2 weekly downloads. As such, @spines/sdk popularity was classified as not popular.
We found that @spines/sdk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.

Security News
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.

Security News
During a UK cyber test, a Mythos 5 agent used sockpuppets, social engineering, and prompt injection to try to get a maintainer to merge malware.