Skip to main content
Home

Built and signed on GitHub Actions

A client for the Memento Protocol.

This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
100%
Published
2 months ago (0.3.0)

@j3lte/mementoweb

JSR GitHub Release NPM Version NPM Downloads License

A client for the Memento Protocol.

✨ Features

  • Create clients for the archive and wayback domains. (e.g. archive.today and web.archive.org)
  • Check the archives for the given URL

🚀 Installation

Deno (Recommended)

deno add @j3lte/mementoweb

NPM

npm install @j3lte/mementoweb

📦 Documentation

📖 Usage

import { checkArchives, createArchiveClient } from "@j3lte/mementoweb";

// Check the archives for the given URL
const result = await checkArchives("https://www.thisnewswebsite.com/newsitem/article/234585");
console.log(result);

// Create a client for Archive.today
const archiveClient = createArchiveClient();
const archiveTimeMap = await archiveClient.getTimeMap("https://www.thisnewswebsite.com/newsitem/article/234585");
console.log(archiveTimeMap);

⚠️ Notes

1.) Somehow checkArchives is very slow

When using checkArchives, this is best used on a specific webpage, NOT a domain. If you do this for a domain (like https://google.com), it tries to fetch all archive urls from both, which can take a while.

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

Built and signed on
GitHub Actions

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@j3lte/mementoweb

Import symbol

import * as mementoweb from "@j3lte/mementoweb";
or

Import directly with a jsr specifier

import * as mementoweb from "jsr:@j3lte/mementoweb";

Add Package

pnpm i jsr:@j3lte/mementoweb
or (using pnpm 10.8 or older)
pnpm dlx jsr add @j3lte/mementoweb

Import symbol

import * as mementoweb from "@j3lte/mementoweb";

Add Package

yarn add jsr:@j3lte/mementoweb
or (using Yarn 4.8 or older)
yarn dlx jsr add @j3lte/mementoweb

Import symbol

import * as mementoweb from "@j3lte/mementoweb";

Add Package

vlt install jsr:@j3lte/mementoweb

Import symbol

import * as mementoweb from "@j3lte/mementoweb";

Add Package

npx jsr add @j3lte/mementoweb

Import symbol

import * as mementoweb from "@j3lte/mementoweb";

Add Package

bunx jsr add @j3lte/mementoweb

Import symbol

import * as mementoweb from "@j3lte/mementoweb";