npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

permaloom

v0.2.4

Published

Node.js API that archives webpages, links, and sources to Arweave from URLs.

Downloads

15

Readme

Permaloom

Node.js package that archives webpages to Arweave.

Installation

Using npm:

npm install permaloom

Usage

For a better understanding, read the Yukikaki documentation.

You can import Permaloom using require:

(async () => {
    const permaloom = new require("permaloom")("arweave.net", 443, "https");
})();

Or with import:

(async () => {
    import Permaloom from "permaloom";
    await const permaloom = new Permaloom("arweave.net", 443, "https");
})();

You need to provide values for host, port and protocol.

Other class parameters

headless

Bool

Optional. Default is true. If false, starts crawling in headful mode.

.archive(options)

Scrapes data from webpages according to options, and archives it to arweave.

options.url

String

The URL to start crawling from.

options.func(i, maxFee, res, page)

Function

.archive() will run options.func on every webpage it crawls and returns vals.

i and maxFee equate to the current values of options.i and options.maxFee.

Note: i will be decremented based on how many links or sources away the page is from the starting page.

res <HTTPResponse>

Puppeteer response from the current page.

page <Page>

Puppeteer page of the current page.

options.maxFee

Int

The maximum fee to pay for the archive, in winston. The archive will cancel if the amount is exceeded.

options.i

Int

Optional. Default is 1. Determines when to stop archiving trees of links and sources. If options.i > 1, options.hrefs will automatically be set to true.

options.srcs

Bool

Optional. If true, scrape sources of the starting page.

options.hrefs

Bool

Optional. If true, scrape links, links of links, so on, stemming from the starting page. It will stop when options.i is depleted. Will automatically be set to true if options.i > 1.

options.uploadOnGen

Bool

Optional. If true, transactions will be uploaded one by one, on generation. This means that options.maxFee will be applied to each transaction singularly, instead of summing up the fees of all tranactions. Also, upload of transactions will be skipped if the transaction's webpage has already been archived after options.after, otherwise skip generation of transactions if the transaction's webpage has already been archived after options.after.

options.after

Int

Optional. Default is 0. Represents a Unix timestamp in milliseconds. If options.uploadOnGen is not set to false, upload of transactions will be skipped if the transaction's webpage has already been archived after options.after, otherwise skip generation of transactions if the transaction's webpage has already been archived after options.after.

options.robots

Bool

Optional. If true, only scrape pages in accordance with robots.txt.

options.robotsNeutral

Bool

Optional. Default is true. Crawl pages that are neutral according to robots.txt.

options.robotsSrcsHrefs

Bool

Optional. Default is true. Crawl links and sources even if the current page is not compatible with robots.txt.

draftTx(options, res, page)

Generates a draft transaction.

options.url

options.key

res

<HTTPResponse>

Contains webpage data to archive.

page

<Page>

Contains webpage data to archive.

options.after

options.uploadOnGen

License

Copyright (c) Moogamouth 2022

AGPL-3.0