arpack

1.0.0 • Public • Published

Arpack: A Webpack plugin for uploading static assets to the permaweb

Arpack is a small webpack plugin to upload static assets to the Arweave permaweb. The user only needs to specify a path to an AR wallet and to the assets folder in the webpack config file.

Installation

It's as easy as:

sudo npm install arpack

Usage

You'll need an Arweave wallet for authenticating.

Use the following configuration in your webpack.config.js file:

const Arpack = require('arpack');
const path = require("path");

var config = {
 plugins: [
  new Arpack({
    walletPath: "./wallet.json", // path to your AR wallet
    uploadPath: "./static", // path to your assets folder
    appName: "Arpack-test" // App name to be used for tagging assets
  })
]
}

module.exports = config;

It can take up to 10 minutes before the data is available on the Blockchain.

Make sure your wallet file is included in your .gitignore file.

I created Arpack as a part of a Hackathon.

Dependents (0)

Package Sidebar

Install

npm i arpack

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

814 kB

Total Files

3

Last publish

Collaborators

  • merwane