Skip to content

PSkinnerTech/Arweave-Custom-HashRouting

Repository files navigation

Arweave Multipage Website Starter Kit

This starter kit provides a foundation for creating multipage websites with custom hash routing, utilizing a recursive Svelte component, and featuring basic custom Vite configuration for seamless deployment to the Arweave Mainnet.

Features

  • Multipage functionality through custom hash routing (not reliant on any additional packages like tinro or Reach Router)
  • A Recursive Svelte Component
  • Basic custom Vite configuration for easy deployment to Arweave Mainnet

Requirements

  • Customize the page(s) however you want, just keep the entire build under 100kb. (Run npm run build to see build size)
  • No $AR token or even an Arweave wallet is required as long as you keep the build under 100kb.

Pros & Cons

Pros:

  • Extremely simple to use and implement.
  • No need to use any additional packages like tinro or Reach Router.
  • Very easy to update the website with basic text-based content.
  • Very easy to update the CSS.
  • Using basic Javascript and Svelte.

Cons:

  • For free deployment, you need to keep the build under 100kb, which restricts the amount of content and styling you can deploy.
  • This style of hashrouting may be difficult to manage for those unfamiliar with it.
  • Many may find editing the content beyond the basic text-based content to be difficult.

Usage

  1. Clone the Repository:
git clone https://github.com/PSkinnerTech/Arweave-Custom-HashRouting.git
  1. Navigate to the Project Directory:
cd Arweave-Custom-Hashrouting
  1. Install Dependencies:
npm install
  1. Customize Your Website:

    • Edit the pages as per your requirements.
  2. Build Your Website:

npm run build
  1. Deploy to Arweave:
arkb deploy dist --use-bundler https://node2.bundlr.network --tag-name DEPLOY --tag-value Your-MultiPage-AppName --auto-confirm

Note: Replace Your-MultiPage-AppName with the name of your multipage application.

An Arweave URL will be printed when the deployment is successful. It may take up to 30 seconds for the content to publish to the link, so please be patient.

You're all set! Congrats!

HMU if you have questions. @PSkinnerTech