Documentation

Type-safe access with @aso/sdk

Read, validate, verify, resolve, and load ASO resources without coupling to a rendering engine.

Read and verify

import { ASOClient, verifyIntegrity } from '@aso/sdk';

const aso = new ASOClient({ baseUrl: 'https://your-host/api/v1' });
const page = await aso.listObjects({ q: 'chair', tag: 'furniture', limit: 20 });
const object = await aso.getObject(page.items[0].id, page.items[0].version);
const representation = object.representations[0];
const bytes = await aso.fetchRepresentation(representation);
if (!await verifyIntegrity(bytes, representation.hash)) throw new Error('Integrity failure');

Client surface

ASOClient provides list/get/version methods, representation fetching, integrity checks, runtime registration and resolution, plus authenticated object/world publication. Runtime providers stay application-owned.