# Leviathan Systems SDK documentation

Developers

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.

01JavaScript SDK

## JavaScript SDK

Install the official npm package. Version 1.0.1 includes TypeScript declarations. It includes the client and the [command-line tool](https://www.leviathansystems.co/developers/cli), 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](https://www.npmjs.com/package/leviathan-public-content) · [SDK source and examples](https://github.com/leviathansystems-gpu/public-content/blob/main/SDK.md) · [Signed website archive 1.0.0](https://www.leviathansystems.co/downloads/leviathan-public-content-1.0.0.tgz) · [Read the client source](https://www.leviathansystems.co/downloads/leviathan-content.mjs)

02Python SDK

## 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](https://pypi.org/project/leviathan-public-content/) · [Original signed wheel 1.0.0](https://www.leviathansystems.co/downloads/leviathan_public_content-1.0.0-py3-none-any.whl) · [Read the Python source](https://www.leviathansystems.co/downloads/leviathan_public_content.py)

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.

03Pagination

## 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.

04Verify downloads

## Verify the publisher and downloads

For the original website-hosted 1.0.0 downloads, compare files with [SHA-256 checksums](https://www.leviathansystems.co/downloads/SHA256SUMS). 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](https://www.leviathansystems.co/.well-known/did.json); 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](https://www.leviathansystems.co/developers)
-   [OpenAPI 3.1](https://www.leviathansystems.co/openapi.json)
-   [CLI documentation](https://www.leviathansystems.co/developers/cli)

Contact

## Discuss Your Infrastructure Project

Tell us about your project, and our team will follow up to discuss the scope, requirements and availability.

[Book a Call](https://www.leviathansystems.co/book-a-call)[Request Deployment Team](https://www.leviathansystems.co/project-inquiry?intent=deployment-team)

Email

[info@leviathansystems.co](mailto:info@leviathansystems.co?subject=Physical%20infrastructure%20project%20scope&body=Requested%20service%3A%20Physical%20infrastructure%20installation%0ASite%20location%3A%20%0AEquipment%20and%20project%20inputs%3A%20%0ATarget%20window%3A%20%0AHow%20did%20you%20find%20us%3F%20\(optional%2C%20including%20ChatGPT%2FAI%20assistant\)%3A%20%0AOriginating%20page%3A%20%0A)

[Canonical page](https://www.leviathansystems.co/developers/sdk)
