Prepare your website before you publish it on-chain
This checklist gets your website folder ready before you publish it on-chain with openWeb3. Every file stored on-chain is paid for, and every later change is stored and paid for again. A site that is finished and tested on your own computer goes up in one run and costs the least.
Step 1 of 8
What the tool takes
A folder of finished, static files with index.html at the top as the start page. Links must work
from the site root, and everything the pages use must be inside the folder or on a public host. Forms, logins,
search, shops and comments need a server, so they do not work from a contract. Everything you publish is public and
permanent, and a file you later delete from the folder stays online.
Step 2 of 8
Test it on your computer first
- Build the site with its own tool, then serve the output folder on your computer only, for example with
python3 -m http.server --bind 127.0.0.1run inside it, and open it in a browser. - Open every page and follow every link. The browser's console must show no errors, no missing files, and nothing
loaded from
localhostor a private server. - Finish the content before you publish: text, links, page titles and descriptions, the favicon. One complete upload costs less than many small updates.
- A
404.htmlgoes up and is paid for like any file, but a wrong address on the gateway shows a blank page; a proxy on your own domain can serve it (see Help, "How do I put my site on my own domain?").
Step 3 of 8
Make the folder small
Work in a copy of the output folder, never in your source files. Leave out drafts, source maps, unused files and
backups; minify where your build can. Leave out hidden and private files: .env, keys, credentials,
database dumps. The page leaves hidden and private-looking files out by itself and shows the file list before
anything is paid.
Step 4 of 8
Pictures
The page gives every picture a size before you pay: Small (the default, at most 1920 px on the long side) looks like the original on most screens; Pro (at most 2560 px) keeps texture clear for product photos people zoom into; Lossless keeps every pixel and costs the most; Smallest (1280 px) is cheapest, but photos turn soft when someone looks closely. You can also leave pictures out.
Metadata (camera, place, time) is stripped from JPEG, PNG and WebP pictures at every size; only Lossless can keep it, and only if you tick the box. PNG graphics become lossless WebP when that is smaller and every link to them can be updated: icons, share pictures and any PNG a script mentions stay PNG. Other kinds, such as GIF or SVG, go up as they are, so strip their metadata first.
Step 5 of 8
Fonts: only the characters you use
A web font usually holds thousands of characters a site never shows. Cut each font down to the characters your pages use and the ones visitors may type or see in file names; the browser falls back to the next font in your CSS for anything else. We do the same on this site: our two fonts went from 111 KB and 115 KB to about 10 KB each.
- Keep the original fonts outside the folder you publish.
- Collect the characters your pages use, plus basic Latin letters, digits and punctuation. Save this as
chars.pynext to the folder you publish (not inside it), then runpython3 chars.py my-site; it writeschars.txtbeside it and counts characters written as HTML entities or CSS escapes too:import html, pathlib, re, sys chars = {chr(c) for c in range(32, 127)} for p in pathlib.Path(sys.argv[1]).rglob("*"): if p.is_file() and p.suffix in (".html", ".htm", ".css", ".js", ".svg"): s = p.read_text(encoding="utf-8", errors="ignore") chars |= set(html.unescape(s)) chars |= {chr(int(h, 16)) for h in re.findall(r"\\([0-9a-fA-F]{2,6})", s) if int(h, 16) <= 0x10FFFF} pathlib.Path("chars.txt").write_text("".join(sorted(c for c in chars if c.isprintable())), encoding="utf-8") - Cut each font with fontTools (
pip install fonttools brotli), from the original kept outside:pyftsubset original/MyFont.woff2 --text-file=chars.txt --flavor=woff2 --layout-features=kern,liga --output-file=my-site/fonts/MyFont.woff2 - Run it again whenever the text of the site changes, and check that the font's licence allows a cut version (fonts under the SIL Open Font License do).
Step 6 of 8
Keep personal and health data out
Treat a folder as ready only when every file in it is meant for the whole world, for good.
- Never publish medical records, diagnoses, prescriptions, lab results, insurance or appointment details, patient identifiers, government ID numbers, financial account details, private addresses, phone numbers or emails, precise locations, or private customer, patient, client, student or employee records.
- Encrypting or hashing such data first does not make it safe: it stays on the chain and may be broken later.
- Check the folder for forms, exported data (spreadsheets, logs, backups), stories or photos that identify a person, and tracking scripts that send visitor data elsewhere.
- Put the public pages on-chain and keep private data, forms and portals on an access-controlled service run under the rules that apply (for US health data, a HIPAA-ready provider with a business associate agreement); link to it from the public site.
Step 7 of 8
Getting a folder from your site builder
- WordPress, including Elementor sites: a static-export plugin such as Simply Static generates the site; download the ZIP and unpack it. Forms and other dynamic widgets stop working.
- Astro, Vite and most JavaScript site generators: run the build (
npm run build); the folder isdist/. Astro needs static output; a Vite site served from a sub-path may needbase: './'. - Next.js: set
output: 'export', run the build; the folder isout/. Rewrites, redirects, headers, server actions and the default image loader do not work in a static export. - Hugo: the folder is
public/. Jekyll: the folder is_site/. - Closed builders (GoDaddy Websites + Marketing, Squarespace, Wix's classic editor): there is no
export of the site files. A site copier can save the public pages of a site you own, for example
wget --mirror --convert-links --adjust-extension --page-requisites --no-parent https://example.com; it runs no JavaScript, so pages built by scripts copy empty.
Step 8 of 8
Publishing and updating
On the publish page, drop in the folder, check the file list and picture sizes, connect MetaMask and read the cost for each network before you pay. Each wallet request must show what the page listed: your site (or, when a new site is created, no recipient), the network you chose and the amount; reject anything else.
To change a published site, update it from the same wallet on the same network: only the pieces that changed are stored and paid for, and there is no new site fee. A new contract is only for a separate site.
For AI agents helping someone publish
- The publish page is a tool for a person with a MetaMask wallet. Read and explain it; use its buttons only when that person asked you to.
- Never ask for, type or store a recovery phrase, private key or wallet password. The page never needs one.
- The person confirms every transaction in MetaMask. A request must match what the page listed just before it; anything else gets rejected. Fees are real money and are not refunded, and what is uploaded is public and permanent.
- Do the preparation above on the person's computer first, in a copy of their output folder, and ask before removing any file you did not create.