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

web-ardrive

v2.0.2

Published

A CLI tool to deploy web apps to Arweave using ArDrive

Readme

web-ardrive

Table of Contents

About

Web Ardrive is a CLI tool to deploy web apps to Arweave using ArDrive. ArDrive isn't just another cloud storage service. ArDrive is built on the Arweave network whose permanent data storage lets to upload any files which will outlive you! Learn more about ArDrive and Arweave.

Note: Deploy using ArLocal first to check everything is working.

Installing

Install the package using npm or yarn as desired to get started.

npm install -g web-ardrive

OR

yarn add global web-ardrive

Usage

Let's deploy applications created with popular libraries and frameworks using ArDrive.

Note: Use hash router in react, vue, and nuxt based apps. For next apps there is no hash based routing so manifest is adjusted for routes to work on reload but dynamic routes may not work on reload.

ReactJS & NextJS


ReactJS

Note: Use HashRouter from react-router-dom in react apps. Check project examples

Nextjs Static Export:

Learn about it here for the supported and unsupported features in static html export.

If you are having problems regarding images in nextjs html export, see here.

VueJS & NuxtJS


VueJS

Note: Use router in hash mode in vue apps.

Modify vue.config.js or vue.config.ts to include the following config:

publicPath: "./" // default is /

NuxtJS

Modify nuxt.config.js or nuxt.config.ts to include the following config:

target: 'static', // default is 'server'
router: {
  mode: 'hash',
  base:  './'
}

Read more about going full static mode in nuxtjs [Going Full Static (https://nuxtjs.org/announcements/going-full-static/)

ViteJS


Note: Use hash router for react, vue and svelte accordingly.

Examples of react, vue and svelte using vite is included in the examples folder.

Configuration

And now you have to add config file for web-ardrive to upload the production build to arweave.

Run this command to add configuration file for web-ardrive.

web-ardrive init

Now modify the configuration file (web-ardrive.config.js) as per your need from the following:

| Name | Type | Description | | ------------ | ------------ | ------------ | | walletPath | string | wallet json file path | | folderPath? | string | folderPath of the build folder to be deployed. Auto discovered for app using vue, nuxt, react, next and vite if not provided. It may be needed for simple JS/TS app. | | appType? | string | Possible values: 'react', 'next', 'vue', 'nuxt', 'vite' and '' | | destFolderName | string | Folder name for the folder where all the app files are stored. A folder with destFolderName is created on parent folder with parentFolderID | | parentFolderID? | string | ArDrive folder ID where app is to be deployed. It is required when production is true | | production? | boolean | ArLocal can be used when production is false. Default is true. | | dryRun? | boolean | dryRun if true runs all the steps but will skip sending the actual transactions. This can be very useful for gathering price estimations or to confirm that you've copy-pasted your entity IDs correctly before committing to an upload. Default is false. |

Example of web-ardrive.config.js can be:

/** @type {import('web-ardrive').WebArDriveConfig} */

const WebArDriveConfig = {
  walletPath: 'wallet.json',
  folderPath: 'build',
  appType: 'react',
  parentFolderID: 'e6cb2f0d-91d7-4acc-9772-72c514263908',
  destFolderName: 'public-square',
  production: false,
};

export default WebArDriveConfig;

This configuration deploys build folder to the folder with name public-square where public-square folder is created on parent folder with ID parentFolderID. Production is false so the application is not deployed to Arweave but to local testnet ArLocal.

If you want to check if the application is working as expected or not, the application can be deployed to local testnet ArLocal using production as false and running the local testnet. Run arlocal with the following from the terminal.

npx arlocal

After the configuration, run web-ardrive command from the root folder of the project.

web-ardrive deploy

After apps are deployed, configure ArNS from Permapages for the deployed app.

Author

👤 Pawan Paudel

🤝 Contributing

Contributions, issues and feature requests are welcome!Feel free to check issues page.

Show your support

Give a ⭐️ if this project helped you!

Copyright © 2022 Pawan Paudel.