@1990webarchive/cli LATEST

Command-line interface and Node.js SDK for archiving, querying, and restoring early web content (1990–1999) from the 1990 Web Archive database. Built for historians, developers, and digital preservationists.

web-archive preservation node-js cli 1990s geoCities

Installation

npm install @1990webarchive/cli

Or use pnpm / yarn:

pnpm add @1990webarchive/cli

Quick Start

Archive a single URL from the 1990s web:

1990wa archive --url "http://example.geocities.com/1997" --year 1997

Query the archive programmatically:

import { ArchiveClient } from '@1990webarchive/cli'; const client = new ArchiveClient({ apiKey: process.env.'1990WA_KEY' }); const results = await client.search({ era: '1995-1999', type: 'geoCities' }); console.log(results);

API Reference

MethodDescriptionReturns
client.archive(url, options)Captures and stores a webpage snapshot with metadataArchiveResult
client.search(query)Searches archived pages by era, type, or keywordsSearchResultSet
client.restore(id, format)Downloads archived content as HTML, PDF, or MHTMLBuffer
client.timeline(range)Returns chronological archive statistics and diffsTimelineData

Configuration

Create a .1990wa.json in your project root:

{ "apiKey": "your_api_key", "archiveDir": "./1990-archives", "renderEngine": "netscape-navigator", "maxConcurrency": 4 }

License

MIT © 2024 1990 Web Archive. Preserving digital history, one node at a time.

Requires Node.js 18+ or Deno 1.35+. For enterprise support and private archive instances, contact dev@1990webarchive.com.

}