Documentation sections
On this page
The Atlas SDK: typed readers for .atls archives
The Atlas SDK (@caifrazier/atls-sdk) is a TypeScript library for reading and validating Atlas archives. It gives you a typed reader per dataset, safe resource limits, and archive validation, so you can go from a .atls file to structured records in a few lines.
Two packages make up the open side of the ecosystem:
@caifrazier/atls-sdk: the reader library (Apache-2.0). Current version: 1.0.0-rc.1.@caifrazier/atls-spec: the specification, JSON Schemas, TypeScript types, and validators behind the format.
Availability: both packages are published on npm as release candidates. Install the SDK and its spec dependency with one command:
npm install @caifrazier/atls-sdk
The source repository is being prepared for public release under github.com/CaiFrazier. You do not need the SDK to work with archives, though: the format is deliberately simple, and reading it in any language takes a ZIP reader, a Zstandard decoder, and a JSON parser. There is no required SDK.
Quick example
import { openAtlas } from '@caifrazier/atls-sdk';
const atlas = await openAtlas('./crawl.atls');
console.log(atlas.manifest.atlasVersion);
console.log([...atlas.datasets]);
for await (const page of atlas.readers.pageMetadata()) {
console.log(page.url);
}
atlas.close();
The reader surface
openAtlas() returns an AtlasReader exposing the archive’s root metadata and one typed async iterable per dataset:
manifest,summary,datasets,packs, the archive’s identity and contentshasDataset(name), check whether a dataset is present before iteratinggetBlob(ref), fetch a content-addressed page body by itsbodyBlobRefstats, counters such as corrupted records tolerated in non-strict modeclose(): release the underlying ZIP handle
Scroll horizontally to read all columns.
| Reader | Dataset |
|---|---|
readers.pageMetadata() |
On-page SEO signals: titles, descriptions, indexing, social tags |
readers.navigation() |
Link graph edges with anchor text and location |
readers.content() |
Full page text, headings, and outlines |
readers.structuredData() |
JSON-LD, microdata, Open Graph, Twitter cards |
readers.accessibility() |
WCAG 2.2 audit results per page |
readers.performance() |
Performance timing (prerender and full modes) |
readers.security() |
Security headers and HTTPS posture |
readers.responses() |
HTTP response metadata and redirect chains |
readers.assets() |
Images, scripts, fonts, stylesheets per page |
readers.technology() |
Detected technology stack per page |
readers.events() |
Crawl lifecycle events |
readers.renderState() |
Render state (full mode only) |
readers.pipelineFailures() / readers.pipelineAlerts() |
Hard failures and non-fatal warnings from the crawl |
readers.dataset<T>(name) |
Generic accessor for any dataset by key |
Records join across datasets on pageId, exactly as described in identity and join keys.
Beyond reading
select(), filtered, projected reads over a single datasetvalidate(), schema validation of an archive or staging directorydiffManifests()/formatManifestDiff(): compare two archives, for example before and after a migration- Low-level primitives (
readManifest,readSummary,iterateParts,readBlob,openZipHandle) when you want the pieces without the reader
Safe by default
All read APIs apply bounded ZIP, Zstandard, and JSON Lines limits by default. Oversized entries, dataset parts, blobs, and lines throw AtlasResourceLimitError instead of exhausting memory: an archive from an untrusted source cannot decompress its way into your RAM. Trusted local workflows can raise the limits explicitly through the limits option. Malformed records raise MalformedRecordError in strict mode, or are counted and skipped when strict is off.
Related
The archives themselves come from Cartographer. The format the SDK reads is documented in the Atlas docs: anatomy, datasets, manifest, and schema versioning.