Developer resources
Leviathan Systems SDK documentation
Official JavaScript and Python clients for the public, read-only content API. Search published titles, iterate cursor pages and retrieve a resource by its catalog ID. Credentials are not required.
JavaScript SDK
Install the official npm package. Version 1.0.1 includes TypeScript declarations. It includes the client and the command-line tool, with no install scripts or third-party runtime dependencies. Use Node.js 20 or later; the client module also works in modern browsers on the same origin.
npm install leviathan-public-content@1.0.1
import { LeviathanClient } from 'leviathan-public-content';
const client = new LeviathanClient();
const page = await client.listResources({ kind: 'service', limit: 10 });
if (page.items.length) {
const resource = await client.readResource(page.items[0].id);
console.log(resource.canonical, resource.markdown);
}npm package 1.0.1 · SDK source and examples · Signed website archive 1.0.0 · Read the client source
Python SDK
Use Python 3.10 or later. The pure Python wheel uses the standard library and has no runtime dependencies.
python -m pip install leviathan-public-content==1.0.1
from leviathan_public_content import LeviathanClient
client = LeviathanClient()
page = client.list_resources(kind='service', limit=10)
if page['items']:
resource = client.read_resource(page['items'][0]['id'])
print(resource['canonical'])Python package 1.0.1 on PyPI · Original signed wheel 1.0.0 · Read the Python source
The JavaScript package is published on npm by altssdb with Leviathan Systems metadata. The Python package is published on PyPI through the official repository’s trusted publishing workflow. Both clients and their local test harnesses are available in the public source repository.
Pagination and recovery
JavaScript resourcePages(options) is an async iterator; Python resource_pages(**options) is a generator. Both preserve the query and origin while following next_cursor. A cursor is tied to a content revision; begin a new search when it expires.
LeviathanAPIError exposes the HTTP status, stable error code and retry interval. JavaScript uses retryAfter; Python uses retry_after. The clients do not automatically retry. Honor 429 and Retry-After, correct invalid queries, and keep retrieval sequential. A resource may have a null Markdown body; follow its canonical HTML URL in that case.
Verify the publisher and downloads
For the original website-hosted 1.0.0 downloads, compare files with SHA-256 checksums. The discovery catalogs bind those original package bytes, OpenAPI specification and MCP server card to signed release metadata. Resolve did:web:leviathansystems.co at the public DID document; use its assertion key to verify the detached ES256 JWS over the canonicalized trust manifest, then compare the subject digest with the downloaded bytes.
These are publisher signatures. They verify domain control and artifact integrity; they do not represent an external certification, technical qualification or independent review. Public keys are published, and signing keys are kept outside the website repository and runtime.
API reference and request limits · OpenAPI 3.1 · CLI documentation